While testing a program I hit a segmentation fault which dumped the required core.
I'm using gdb to debug a core file as: gdb /path/to/exec path/to/core
I realized after looking at the core file (and the source code) that the issue is actually a NULL pointer dereference that happened while using the "strcmp" function.
However, the core-file backtrace gives the below error message:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:32
32 ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0 __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:32
#1 0x00000000004041f1 in main (argc=1, argv=0x7ffced1f8ae8) at main.c:1144
Now this is a weird message that I can't make any sense of. I'm not sure why gdb is printing this message "../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such file or directory".
I should be getting some message related to NULL pointer de-reference but instead got this. What does that mean?