Compilation error leads to "strange instruction" fatal
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1676
Reported by Martin Stjernholm mast@roxen.com
Quite often when I have some kind of compilation error in a pike module, Pike dumps core after compiling the file. So far I haven't been able to minimize a test case for it.
An example:
Rx.pmod/FSA.pmod:1953:Bad argument 1 to shift_shear.
Rx.pmod/FSA.pmod:1953:Expected: function(int, int : void)
Rx.pmod/FSA.pmod:1953:Got : function(function({ Arc = int } : { Node =
int }), int : void | mixed)
Rx.pmod/FSA.pmod:2001:Class definition failed.
/home/mast/Pike/devel/src/interpreter.h:222: Fatal error:
Strange instruction 249
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
Line not found:0:
create(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:210:master()->compile_file("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod",0,FSA,FSA())
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:448:master()->low_findprog("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod","",0,1)
/home/mast/Pike/devel/build/linux-2.2.14-i686/master.pike:493:master()->findprog("/.qt3/home/mast/exjobb/rx/Rx.pmod/FSA.pmod",".pmod",0,1)
/.../
Gdb backtrace:
#0 0x400b2921 in kill () from /lib/libc.so.6
#1 0x4005bef9 in pthread_kill () from /lib/libpthread.so.0
#2 0x4005c375 in raise () from /lib/libpthread.so.0
#3 0x400b3c61 in abort () from /lib/libc.so.6
#4 0x80b6b39 in debug_fatal () at /home/mast/Pike/devel/src/error.c:535
#5 0x807e67e in eval_instruction_without_debug (pc=0x83526dd "\a")
at /home/mast/Pike/devel/src/interpreter.h:222
#6 0x808058d in mega_apply (type=APPLY_LOW, args=0, arg1=0x833a9f4,
arg2=0x2)
at /home/mast/Pike/devel/src/interpret.c:797
#7 0x808130a in apply_lfun (o=0x833a9f4, fun=1, args=0)
at /home/mast/Pike/devel/src/interpret.c:1642
#8 0x80e3aa1 in call_pike_initializers (o=0x833a9f4, args=0)
at /home/mast/Pike/devel/src/object.c:257
#9 0x810b974 in compile (prog=0x83bff88, handler=0x0, major=-1, minor=-1,
target=0x8333260,
placeholder=0x833a9f4) at /home/mast/Pike/devel/src/program.c:4104
#10 0x814e707 in f_compile (args=6) at
/home/mast/Pike/devel/src/builtin_functions.c:3337
#11 0x807ef32 in low_mega_apply (type=APPLY_SVALUE, args=6, arg1=0x839e608,
arg2=0x0)
at /home/mast/Pike/devel/src/interpret.c:979
/.../