I don't know why I can't see this backtrace. The symbols from my own binary are loaded, and the package libc6-dbg
is installed. Do I need to tell gdb where to find the libc symbols?
Program received signal SIGSEGV, Segmentation fault.
__memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:74
74 ../sysdeps/i386/i686/multiarch/../memcpy.S: No such file or directory.
(gdb) bt full
#0 __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:74
No locals.
#1 0x00000000 in ?? ()
No symbol table info available.
(gdb)
-O0
disables optimization and avoid this possibility. On the other hand, from number of lines in the backtrace, I would bet for a stack corruption. I'll try to add an answer to try to help on this.