roxen.lists.pike.general

Subject Author Date
Got a trace (Re: Identifier reference index 36 out of range 0..29) Stephen R. van den Berg <srb[at]cuci[dot]nl> 22-06-2009
Stephen R. van den Berg wrote:
>>>>Identifier reference index 36 out of range 0..29
>>>>Identifier reference index 36 out of range 0..29

This is the trace I got:

#2  0x0812e92f in debug_va_fatal (
    fmt=0x8387620 "Identifier reference index %d out of range 0..%d\n",
    args=0xb52ac17c "$") at /data/src/gpike/src/error.c:644
#3  0x0812ea48 in debug_fatal (
    fmt=0x8387620 "Identifier reference index %d out of range 0..%d\n")
    at /data/src/gpike/src/error.c:651
#4  0x081d8ebb in CHECK_IDREF_RANGE (x=9919, p=0x6)
    at /data/src/gpike/src/program.h:629
#5  0x081d8ee5 in get_identifier_line (p=0x8591710, fun=36, linep=0x8b01c58)
    at /data/src/gpike/src/program.c:7007
#6  0x081e9dc1 in low_get_function_line (o=0x8b6b260, fun=36, linep=0x8b01c58)
    at /data/src/gpike/src/program.c:6988
#7  0x0823c4f4 in fill_in_file_and_line ()
    at /var/src/roxen/gpike/src/builtin.cmod:1527
#8  0x082419f0 in f_backtrace_frame_cq__sprintf (args=2)
    at /var/src/roxen/gpike/src/builtin.cmod:1558
#9  0x080a3e9e in low_mega_apply (type=APPLY_LOW, args=<value optimized out>,
    arg1=0x8b6bf38, arg2=0x4) at /data/src/gpike/src/apply_low.h:226
#10 0x080a6934 in mega_apply (type=APPLY_LOW, args=2, arg1=0x8b6bf38, arg2=0x4)
    at /data/src/gpike/src/interpret.c:2211
#11 0x080a8bfc in safe_apply_low2 (o=0x8b6bf38, fun=4, args=2,
    fun_name=0x83d3ad2 "_sprintf") at /data/src/gpike/src/interpret.c:2447
#12 0x0825d646 in describe_svalue (s=0xb5310220, indent=2, p=0x0)
    at /data/src/gpike/src/svalue.c:1539
#13 0x08354601 in low_pike_sprintf (fs=0x8c85b18, r=0xb52ac964, format=
      {ptr = 0x85baf6c "%O", shift = 0}, format_len=<value optimized out>,
    argp=0xb5310220, num_arg=1, nosnurkel=0, compat_mode=0)
    at /data/src/gpike/src/modules/sprintf/sprintf.c:1725
#14 0x0835e99f in low_f_sprintf (args=2, compat_mode=0)
    at /data/src/gpike/src/modules/sprintf/sprintf.c:1924
#15 0x0835f129 in f_sprintf (args=2)
    at /data/src/gpike/src/modules/sprintf/sprintf.c:1941
#16 0x080883da in opcode_F_CALL_BUILTIN (arg1=27)
    at /data/src/gpike/src/interpret_functions.h:2303
#17 0xb7aa47cc in ?? ()
#18 0x0000001b in ?? ()
#19 0x00000002 in ?? ()
#20 0x00000001 in ?? ()
#21 0x00000000 in ?? ()

It appears that it is trying to print a pike stacktrace or error message.
Keep in mind that I am trying to insert into a non-existent MySQL table,
and this is the error message trying to get out.
I'm not quite sure where to look now.  Looks like a mishap in the mysql.c
glue.  Ideas, anyone?
-- 
Sincerely,
           Stephen R. van den Berg.

"Very funny, Mr. Scott. Now beam down my clothes!"