Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Are you sure that the image is in the right directory, spelled correctly, the path is correct and that it is not corrupted. Try moving the image to your working directory where you are issuing you command and where you are saving the output. Does that work as:
gdb magick
GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from magick...(no debugging symbols found)...done.
(gdb) run sea_ocean_sand_stone_splash_93546_2560x1080.jpg -resize 25% test1.jpg
Starting program: /usr/bin/magick sea_ocean_sand_stone_splash_93546_2560x1080.jpg -resize 25% test1.jpg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe96bf700 (LWP 8874)]
[New Thread 0x7fffe8d7d700 (LWP 8875)]
[New Thread 0x7fffe3fff700 (LWP 8876)]
[New Thread 0x7fffe37fe700 (LWP 8877)]
[New Thread 0x7fffe2ffd700 (LWP 8878)]
[New Thread 0x7fffe27fc700 (LWP 8879)]
[New Thread 0x7fffe1ffb700 (LWP 8880)]
[New Thread 0x7fffe17fa700 (LWP 8881)]
[New Thread 0x7fffe0ff9700 (LWP 8882)]
[New Thread 0x7fffbffff700 (LWP 8883)]
[New Thread 0x7fffbf7fe700 (LWP 8884)]
[New Thread 0x7fffbeffd700 (LWP 8885)]
[New Thread 0x7fffbe7fc700 (LWP 8886)]
[New Thread 0x7fffbdffb700 (LWP 8887)]
[New Thread 0x7fffbd7fa700 (LWP 8888)]
[New Thread 0x7fffbcff9700 (LWP 8889)]
[New Thread 0x7fff9ffff700 (LWP 8890)]
[New Thread 0x7fff97fff700 (LWP 8891)]
[New Thread 0x7fff9f7fe700 (LWP 8892)]
[New Thread 0x7fff9effd700 (LWP 8893)]
[Thread 0x7fff9f7fe700 (LWP 8892) exited]
[Thread 0x7fff9effd700 (LWP 8893) exited]
[Thread 0x7fff97fff700 (LWP 8891) exited]
[Thread 0x7fff9ffff700 (LWP 8890) exited]
[Thread 0x7fffbcff9700 (LWP 8889) exited]
[Thread 0x7fffbd7fa700 (LWP 8888) exited]
[Thread 0x7fffbdffb700 (LWP 8887) exited]
[Thread 0x7fffbe7fc700 (LWP 8886) exited]
[New Thread 0x7fff9effd700 (LWP 8894)]
[New Thread 0x7fff9f7fe700 (LWP 8895)]
[New Thread 0x7fff97fff700 (LWP 8896)]
[New Thread 0x7fff9ffff700 (LWP 8897)]
[New Thread 0x7fff9e7fc700 (LWP 8898)]
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Error: 4 unsupported relocations
Thread 1 "magick" received signal SIGSEGV, Segmentation fault.
0x00007ffff7a17a6e in _int_malloc () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7a17a6e in _int_malloc () from /usr/lib/libc.so.6
#1 0x00007ffff7a19ada in malloc () from /usr/lib/libc.so.6
#2 0x00007ffff3d8e5fd in operator new (sz=240) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/new_op.cc:50
#3 0x00007ffff11c7231 in ?? () from /usr/lib/libMesaOpenCL.so.1
#4 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#5 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#6 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#7 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#8 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#9 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#10 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#11 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#12 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#13 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#14 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#15 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#16 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#17 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#18 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#19 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#20 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#21 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#22 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#23 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#24 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#25 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#26 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#27 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#28 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#29 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#30 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#31 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#32 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#33 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#34 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#35 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#36 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#37 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#38 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#39 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#40 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#41 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#42 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#43 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#44 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#45 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#46 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#47 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#48 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#49 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#50 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#51 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#52 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#53 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#54 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#55 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#56 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#57 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#58 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#59 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#60 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#61 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#62 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#63 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#64 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#65 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#66 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#67 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#68 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#69 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#70 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
#71 0x00007ffff11e175e in ?? () from /usr/lib/libMesaOpenCL.so.1
#72 0x00007ffff11e2160 in ?? () from /usr/lib/libMesaOpenCL.so.1
#73 0x00007ffff11c7252 in ?? () from /usr/lib/libMesaOpenCL.so.1
#74 0x00007ffff12a9f49 in clSetEventCallback () from /usr/lib/libOpenCL.so
#75 0x00007ffff7dea84d in ?? () from /usr/lib/libMagickCore-7.Q16HDRI.so.6
--Type <RET> for more, q to quit, c to continue without paging--