Hi,
The 1.9.0+20050921-1 version failed too, but now gave an
additional error message on atleast amd64:
make[2]: Leaving directory `/usr/src/ruby1.9-1.9.0+20050921'
*** glibc detected *** realloc(): invalid size: 0x0000000000745de0 ***
test failed
make[1]: *** [test] Error 1
make[1]: Leaving directory `/usr/src/ruby1.9-1.9.0+20050921'
make: *** [debian/stamp-makefile-build] Error 2
Core was generated by `./ruby1.9 -I./lib ./sample/test.rb'.
Program terminated with signal 6, Aborted.
Reading symbols from
/usr/src/ruby1.9-1.9.0+20050921/libruby1.9.so.1.9.0...done.Loaded
symbols for ./libruby1.9.so.1.9.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0 0x0000002a95d8bdd0 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x0000002a95d8bdd0 in raise () from /lib/libc.so.6
#1 0x0000002a95d8d280 in abort () from /lib/libc.so.6
#2 0x0000002a95dc153e in __fsetlocking () from /lib/libc.so.6
#3 0x0000002a95dc8dd5 in free () from /lib/libc.so.6
#4 0x0000002a95dc9849 in realloc () from /lib/libc.so.6
#5 0x0000002a956beaac in ruby_xrealloc (ptr=0x745de0, size=Variable "size" is
not available.
) at gc.c:158
#6 0x0000002a956db7da in local_append_gen (parser=0x617440, id=14489)
at parse.y:8182
#7 0x0000002a956dde4c in assignable_gen (parser=0x617440, id=14489,
val=0x2a961e9640) at parse.y:7297
#8 0x0000002a956e3e58 in parser_yyparse (parser_v=0x617440) at parse.y:4128
#9 0x0000002a956eedf3 in yycompile (parser=0x617440,
f=0x6d7ff0 "lib/optparse.rb", line=Variable "line" is not available.
) at parse.y:4565
#10 0x0000002a956b3ca6 in eval (self=182905185312, src=182905251960, scope=4,
file=0x6d7ff0 "lib/optparse.rb", line=0) at eval.c:6073
#11 0x0000002a956b4258 in rb_f_eval (argc=Variable "argc" is not available.
) at eval.c:6267
#12 0x0000002a956a9ea5 in rb_call0 (klass=182905194792, recv=182905185312,
id=3969, oid=3969, argc=4, argv=0x7fbfff73b0, body=0x2a95ff9430, flags=10)
at eval.c:5640
#13 0x0000002a956aa066 in rb_call (klass=182905194792, recv=182905185312,
mid=3969, argc=4, argv=0x7fbfff73b0, scope=1) at eval.c:5813
#14 0x0000002a956a695c in rb_eval (self=182905185312, n=Variable "n" is not
available.
) at eval.c:3298
#15 0x0000002a956a80cc in rb_eval (self=182905185312, n=Variable "n" is not
available.
) at eval.c:3098
#16 0x0000002a956a9d52 in rb_call0 (klass=182905195072, recv=182905185312,
id=11655, oid=Variable "oid" is not available.
) at eval.c:5721
#17 0x0000002a956aa066 in rb_call (klass=182905195072, recv=182905185312,
mid=11655, argc=2, argv=0x7fbfff85a0, scope=1) at eval.c:5813
#18 0x0000002a956a695c in rb_eval (self=182905185312, n=Variable "n" is not
available.
) at eval.c:3298
#19 0x0000002a956a7c35 in rb_eval (self=182905185312, n=Variable "n" is not
available.
) at eval.c:2825
#20 0x0000002a956ad2a9 in rb_yield_0 (val=182905227040, self=182905185312,
klass=Variable "klass" is not available.
) at eval.c:4818
#21 0x0000002a95689ba5 in rb_ary_each (ary=182905230600) at array.c:1140
#22 0x0000002a956a9ea5 in rb_call0 (klass=182905133152, recv=182905230600,
id=3889, oid=3889, argc=0, argv=0x0, body=0x2a95fed018, flags=0)
at eval.c:5640
#23 0x0000002a956aa066 in rb_call (klass=182905133152, recv=182905230600,
mid=3889, argc=0, argv=0x0, scope=0) at eval.c:5813
#24 0x0000002a956a733d in rb_eval (self=182905185312, n=Variable "n" is not
available.
) at eval.c:3022
#25 0x0000002a956b688a in ruby_exec_internal () at eval.c:1520
#26 0x0000002a956b68b3 in ruby_exec () at eval.c:1536
#27 0x0000002a956b7250 in ruby_run () at eval.c:1552
#28 0x00000000004007b9 in main (argc=Variable "argc" is not available.
) at main.c:36
(gdb) frame 5
#5 0x0000002a956beaac in ruby_xrealloc (ptr=0x745de0, size=Variable "size" is
not available.
) at gc.c:158
158 RUBY_CRITICAL(mem = realloc(ptr, size));
(gdb) p ptr
$1 = (void *) 0x745de0
(gdb) p size
Variable "size" is not available.
If I rebuild it using -fno-strict-aliasing, I get a different error:
*** glibc detected *** double free or corruption (!prev): 0x000000000061f830
***test failed
(gdb) bt
#0 0x0000002a95d8cdd0 in raise () from /lib/libc.so.6
#1 0x0000002a95d8e280 in abort () from /lib/libc.so.6
#2 0x0000002a95dc253e in __fsetlocking () from /lib/libc.so.6
#3 0x0000002a95dc829b in malloc_usable_size () from /lib/libc.so.6
#4 0x0000002a95dc857e in free () from /lib/libc.so.6
#5 0x0000002a956bc468 in ruby_xfree (x=Variable "x" is not available.
) at gc.c:175
#6 0x0000002a956dbb50 in local_pop_gen (parser=0x61bfb0) at parse.y:8155
#7 0x0000002a956e30e0 in parser_yyparse (parser_v=0x61bfb0) at parse.y:2807
#8 0x0000002a956eefd3 in yycompile (parser=0x61bfb0,
f=0x6d9db0 "lib/optparse.rb", line=Variable "line" is not available.
) at parse.y:4565
#9 0x0000002a956b3d75 in eval (self=182905189408, src=182905232216, scope=4,
file=0x6d9db0 "lib/optparse.rb", line=0) at eval.c:6073
#10 0x0000002a956b4328 in rb_f_eval (argc=Variable "argc" is not available.
) at eval.c:6267
#11 0x0000002a956a9f24 in rb_call0 (klass=182905198888, recv=182905189408,
id=3969, oid=3969, argc=4, argv=0x7fbfff5e10, body=0x2a95ffa430, flags=10)
at eval.c:5640
#12 0x0000002a956aa0e6 in rb_call (klass=182905198888, recv=182905189408,
mid=3969, argc=4, argv=0x7fbfff5e10, scope=1) at eval.c:5813
#13 0x0000002a956a69ec in rb_eval (self=182905189408, n=Variable "n" is not
available.
) at eval.c:3298
#14 0x0000002a956a813c in rb_eval (self=182905189408, n=Variable "n" is not
available.
) at eval.c:3098
#15 0x0000002a956a9dd0 in rb_call0 (klass=182905199168, recv=182905189408,
id=11655, oid=Variable "oid" is not available.
) at eval.c:5721
#16 0x0000002a956aa0e6 in rb_call (klass=182905199168, recv=182905189408,
mid=11655, argc=2, argv=0x7fbfff7760, scope=1) at eval.c:5813
#17 0x0000002a956a69ec in rb_eval (self=182905189408, n=Variable "n" is not
available.
) at eval.c:3298
#18 0x0000002a956a7c99 in rb_eval (self=182905189408, n=Variable "n" is not
available.
) at eval.c:2825
#19 0x0000002a956ad309 in rb_yield_0 (val=182905231096, self=182905189408,
klass=Variable "klass" is not available.
) at eval.c:4818
#20 0x0000002a95689b95 in rb_ary_each (ary=182905234656) at array.c:1140
#21 0x0000002a956a9f24 in rb_call0 (klass=182905137248, recv=182905234656,
id=3889, oid=3889, argc=0, argv=0x0, body=0x2a95fee018, flags=0)
at eval.c:5640
#22 0x0000002a956aa0e6 in rb_call (klass=182905137248, recv=182905234656,
mid=3889, argc=0, argv=0x0, scope=0) at eval.c:5813
#23 0x0000002a956a73af in rb_eval (self=182905189408, n=Variable "n" is not
available.
) at eval.c:3022
#24 0x0000002a956b696a in ruby_exec_internal () at eval.c:1520
#25 0x0000002a956b6993 in ruby_exec () at eval.c:1536
#26 0x0000002a956b7330 in ruby_run () at eval.c:1552
#27 0x00000000004007b9 in main (argc=Variable "argc" is not available.
) at main.c:36
PS: You really should take a look at all those warnings it's giving.
Kurt
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]