Encode problem after compilation failure
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4284
Reported by Martin Stjernholm mast@roxen.com
/home/mast/Pike/frozen/src/encode.c:1465: Fatal error:
[Switching to Thread 46912506866400 (LWP 15206)]
Breakpoint 1, debug_fatal (fmt=0x67b147 "Unknown identifier type.\n")
at /home/mast/Pike/frozen/src/error.c:386
386 {
(gdb) bt
#0 debug_fatal (fmt=0x67b147 "Unknown identifier type.\n")
at /home/mast/Pike/frozen/src/error.c:386
#1 0x00000000004aada7 in encode_value2_ (val=<value optimized out>,
data=0x7fffffc087a0,
force_encode=<value optimized out>) at
/home/mast/Pike/frozen/src/encode.c:1465
#2 0x00000000004acd31 in f_encode_value (args=2)
at /home/mast/Pike/frozen/src/encode.c:1698
#3 0x0000000000436845 in eval_instruction_without_debug (
pc=0xbb4f49
"�\fJ\003\033\006'\002��\033\a(\002\003\021�\r��}\001\001\"\020&")
at interpret_functions.h:2178
#4 0x000000000043378d in o_catch (pc=0xc5b334 "!\001(")
at /home/mast/Pike/frozen/src/interpret.c:1383
#5 0x00000000004399a0 in eval_instruction_without_debug (pc=0xc5b32f "k\f")
at interpret_functions.h:1243
#6 0x000000000043378d in o_catch (pc=0xe612b4 "!\001\034\005�\a[\017")
at /home/mast/Pike/frozen/src/interpret.c:1383
#7 0x00000000004399a0 in eval_instruction_without_debug (pc=0xe612af "kz")
at interpret_functions.h:1243
#8 0x000000000043378d in o_catch (pc=0xe61465 "\022\021�\016E\001[\016")
at /home/mast/Pike/frozen/src/interpret.c:1383
#9 0x00000000004399a0 in eval_instruction_without_debug (pc=0xe61460 "k6")
at interpret_functions.h:1243
#10 0x000000000043378d in o_catch (pc=0xf955e4 "&\003�amE\004Z!")
at /home/mast/Pike/frozen/src/interpret.c:1383
#11 0x00000000004399a0 in eval_instruction_without_debug (pc=0xf955df "k\t")
at interpret_functions.h:1243
#12 0x000000000043378d in o_catch (pc=0xc5ab09 "&")
at /home/mast/Pike/frozen/src/interpret.c:1383
#13 0x00000000004399a0 in eval_instruction_without_debug (pc=0xc5ab04 "k\v")
at interpret_functions.h:1243
#14 0x000000000044bd56 in mega_apply (type=<value optimized out>,
args=<value optimized out>, arg1=<value optimized out>, arg2=<value
optimized out>)
at /home/mast/Pike/frozen/src/interpret.c:1383
#15 0x00000000004a036b in backend_do_call_outs (me=0x9ac8c0) at
backend.cmod:1359
#16 0x00000000004a4705 in low_backend_once (me=0x9ac8c0,
timeout=0x7fffffc0acd0)
at backend.cmod:2888
#17 0x00000000004a5164 in f_Backend_cq__backtick_28_29 (args=1) at
backend.cmod:2932
#18 0x0000000000431238 in low_mega_apply (type=APPLY_SVALUE, args=1,
arg1=<value optimized out>, arg2=<value optimized out>) at apply_low.h:214
#19 0x0000000000436fe5 in eval_instruction_without_debug (
pc=0xa1d36f
"�3Q\031R�3X����J\rO�S'\r�\232k����Q\031R�3Q\031R�3X����\001\001!l'")
at interpret_functions.h:1956
---Type <return> to continue, or q <return> to quit---q
Quit
(gdb) fr 1
#1 0x00000000004aada7 in encode_value2_ (val=<value optimized out>,
data=0x7fffffc087a0,
force_encode=<value optimized out>) at
/home/mast/Pike/frozen/src/encode.c:1465
1465 Pike_fatal ("Unknown identifier type.\n");
(gdb) p id->identifier_flags
$1 = 27 '\033'
I don't understand how it ends up in this error when it looks like the identifier type is IDENTIFIER_C_FUNCTION.
Anyway, this error is probably connected to an earlier compilation error in a pmod which this program references.