Crash in stringbuilder
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3269
Reported by David Hedbor, Idonex / Real Networks david@hedbor.org
This crash bug occurs at such an early stage that pike can't run at all. I see two different results depending on if I have assembler enabled or not (I believe that these are the only differences).
at /home/neotron/pike/7.3/src/stralloc.c:2050
#1 0x0811783c in append_path_unix (s=0xbffff1a8, path=
{ptr = 0x82e6cc4
"/home/neotron/pike/build/7.3-nodebug-asm/lib/modules/Getopt.pmod", shift =
0}, len=64) at /home/neotron/pike/7.3/src/combine_path.h:73
#2 0x081179be in f_combine_path_unix (args=2)
at /home/neotron/pike/7.3/src/stralloc.h:89
#3 0x0806ecfb in opcode_F_CALL_BUILTIN_AND_RETURN (arg1=-1073745512)
at /home/neotron/pike/7.3/src/interpret_functions.h:2059
#4 0x0831a15a in ?? ()
#5 0x08071510 in mega_apply (type=3221221784, args=-1073745512,
arg1=0xbffff198, arg2=0xbffff198)
at /home/neotron/pike/7.3/src/interpret.c:1415
#6 0x08072139 in apply (o=0x402d7000,
fun=0xbffff198 "\200m.\b\220\034\017\b\001", args=65536)
at /home/neotron/pike/7.3/src/interpret.c:1718
#7 0x080c18fd in main (argc=7, argv=0xbffff3c4)
at /home/neotron/pike/7.3/src/main.c:726
#8 0x400b7082 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) p *s
$1 = {s = 0xbffff198, malloced = 256, known_shift = 0}
(gdb) p *s->s
$2 = {refs = 137260416, size_shift = 135208080, len = 1, hval = 27,
next = 0xbffff198, str = ""}
and without assembler
Starting program: /home/neotron/pike/build/7.3-nodebug/pike
-m/home/neotron/pike/build/7.3-nodebug/master.pike
/home/neotron/pike/7.3/bin/test_pike.pike --no-watchdog -a -v -v
/home/neotron/pike/7.3/src/stralloc.c:155: Fatal error:
Breakpoint 1, debug_fatal (fmt=0x1 <Address 0x1 out of bounds>)
at /home/neotron/pike/7.3/src/error.c:371
371 if (in_fatal)
(gdb) cont
Continuing.
Illegal shift size!
Attempting to dump backlog (may fail)...
Unrecognized backtrace format: combine_path_with_cwd
Program received signal SIGABRT, Aborted.
Mandrake Cooker, gcc 3.2