On Sat, Nov 13, 2004 at 09:50:02AM +0100, Mirar @ Pike developers forum wrote:
You might want to compile without --fomit-frame-pointer, in case that optimization is on. It's a sure stack-eater. Also you can try with --without-machine-code to get better stacks.
Well, the funny thing is that it is compiled with all debugging options enabled - with frame pointers, --with-cdebug, --with-rtldebug, --with-checker, etc... And still, gdb is not able to use backtrace. Finally, in single-step mode, I hit the place:
(gdb) 2213 OPCODE1(F_CALL_BUILTIN, "call builtin", I_UPDATE_ALL, { (gdb)
Program received signal SIGSEGV, Segmentation fault. eval_instruction_without_debug (pc=Cannot access memory at address 0x8 ) at interpreter.h:119 119 instr = pc[0];
and:
(gdb) bt #0 eval_instruction_without_debug (pc=Cannot fetch general-purpose registers for thread -1209796096: generic error ) at interpreter.h:119 Error accessing memory address 0x4: No such process.
The code wasn't (really) designed to aid debugging... A lot of macros, etc... It will take some time to find the reason...
Regards, /Al