test/ruby/test_fiber.rb e$B$G$9$,!"0J2<$N$h$&$Ke(B insnhelper.ci
e$BFb$Ne(B rb_ary_new4 e$B8F$S=P$7$N$H$3$m$Ge(B GC
e$B$rKh2s5/F0$9$k$h$&$Ke(B
e$B$9$k$H?t2s$K0lEY$/$i$$$N3d9g$Ge(B SEGV e$B$9$k$h$&$K$J$j$^$9!#e(B
Index: insnhelper.ci
— insnhelper.ci (e$B%j%S%8%g%se(B 14103)
+++ insnhelper.ci (e$B:n6H%3%T!<e(B)
@@ -159,6 +159,7 @@
/* rest arguments */
if (iseq->arg_rest != -1) {
-
}rb_gc(); dst[iseq->arg_rest] = rb_ary_new4(argc, argv); argc = 0;
% ./miniruby test/ruby/test_fiber.rb
Loaded suite test/ruby/test_fiber
Started
…/tmp/a/lib/ruby/1.9/test/unit/assertions.rb:79: – control frame
c:0004 p:0018 s:0017 b:0012 l:000011 d:000011 METHOD
/tmp/a/lib/ruby/1.9/test/unit/assertions.rb:79
c:0003 p:0012 s:0005 b:0005 l:001120 d:000004 BLOCK
test/ruby/test_fiber.rb:10
c:0002 p:---- s:0004 b:0003 l:000002 d:000002 FINISH
c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------
DBG> : “test/ruby/test_fiber.rb:10:in `block in test_normal’”
– backtrace of native function call (Use addr2line) –
0x81148a5
0x806f963
0x806fa2b
0x80da420
0xb7f8f440
0x810a5fd
0x80826c8
0x810a591
0x80deaa6
0x810a980
0x80826c8
0x8082f23
0x80836eb
0x810bde4
0x810cc89
0x810fb16
0x8113174
0x810c3b7
0x810cad7
0x8119b98
0x8072c93
0x8076af8
0x8058120
0xb7df0ea8
0x8058031
[BUG] Segmentation fault
ruby 1.9.0 (2007-12-04) [i686-linux]
zsh: abort (core dumped) ./miniruby test/ruby/test_fiber.rb
% gdb miniruby core.6261
GNU gdb 6.4.90-debian
Copyright © 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type “show copying” to see the conditions.
There is absolutely no warranty for GDB. Type “show warranty” for
details.
This GDB was configured as “i486-linux-gnu”…Using host libthread_db
library “/lib/tls/i686/cmov/libthread_db.so.1”.
warning: Can’t read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0…done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/librt.so.1…done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2…done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1…done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libm.so.6…done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libc.so.6…done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2…done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /tmp/a/lib/ruby/1.9/i686-linux/fiber.so…done.
Loaded symbols for /tmp/a/lib/ruby/1.9/i686-linux/fiber.so
Reading symbols from
/tmp/a/lib/ruby/1.9/i686-linux/continuation.so…done.
Loaded symbols for /tmp/a/lib/ruby/1.9/i686-linux/continuation.so
Reading symbols from /lib/libgcc_s.so.1…done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `test/ruby/test_fiber.rb test_norma’.
Program terminated with signal 6, Aborted.
#0 0xb7f8f410 in ?? ()
(gdb) bt
#0 0xb7f8f410 in ?? ()
#1 0xbfa33bfc in ?? ()
#2 0x00000006 in ?? ()
#3 0x00001875 in ?? ()
#4 0xb7e04811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7e05fb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6 0x0806fa30 in rb_bug (fmt=0x813593d “Segmentation fault”) at
error.c:228
#7 0x080da420 in sigsegv (sig=11) at signal.c:541
#8 0xb7f8f440 in ?? ()
#9 0x0000000b in ?? ()
#10 0xbfa33d8c in ?? ()
#11 0xbfa33e0c in ?? ()
#12 0x0000000b in ?? ()
#13 0x00000000 in ?? ()
(gdb)