[#24536] 「Rubyの落し方」 v.s. ruby_1_8 — akira yamada / やまだあきら <akira@...>

<URL:http://jp.rubyist.net/magazine/?0002-RubyCore>

40 messages 2004/10/20
[#24541] Re: 「Rubyの落し方」 v.s. ruby_1_8 — Yukihiro Matsumoto <matz@...> 2004/10/20

まつもと ゆきひろです

[#24599] 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/26

2004-10-20 (水) の 21:38 +0900 に Yukihiro Matsumoto さんは書きました:

[#24605] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-26 (火) の 16:16 +0900 に akira yamada / やまだあきら さんは書きました:

[#24606] Re: 1.8.2 preview3? — Yukihiro Matsumoto <matz@...> 2004/10/27

まつもと ゆきひろです

[#24608] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 11:48 +0900 に Yukihiro Matsumoto さんは書きました:

[#24620] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 12:42 +0900 に akira yamada / やまだあきら さんは書きました:

[#24629] Re: 1.8.2 preview3? — Tanaka Akira <akr@...17n.org> 2004/10/29

In article <1098888819.9446.14.camel@rice.p.arika.org>,

[ruby-dev:24572] test_zlib.rb dumps core

From: Tanaka Akira <akr@...17n.org>
Date: 2004-10-23 02:00:09 UTC
List: ruby-dev #24572
次のようにすると core を吐きます。

% ./ruby test/runner.rb test/zlib/test_zlib.rb
Loaded suite test_zlib.rb
Started
../test/zlib/test_zlib.rb:21: [BUG] Segmentation fault
ruby 1.9.0 (2004-10-22) [i686-linux]

zsh: abort (core dumped)  ./ruby test/runner.rb test/zlib/test_zlib.rb
% gdb ruby core 
GNU gdb 6.1-debian
Copyright 2004 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 "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `test/runner.rb test_ungetc(TestZlibGzipReade'.
Program terminated with signal 6, Aborted.
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.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /home/akr/ruby/tmp-ruby/lib/ruby/1.9/i686-linux/stringio.so...done.
Loaded symbols for /home/akr/ruby/tmp-ruby/lib/ruby/1.9/i686-linux/stringio.so
Reading symbols from /home/akr/ruby/tmp-ruby/lib/ruby/1.9/i686-linux/zlib.so...done.
Loaded symbols for /home/akr/ruby/tmp-ruby/lib/ruby/1.9/i686-linux/zlib.so
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
#0  0x4009e741 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x4009e741 in kill () from /lib/libc.so.6
#1  0x4009e4c5 in raise () from /lib/libc.so.6
#2  0x4009fa08 in abort () from /lib/libc.so.6
#3  0x080d2536 in rb_bug (fmt=0x0) at error.c:214
#4  0x080b04d2 in sigsegv (sig=11) at signal.c:446
#5  <signal handler called>
#6  zstream_run (z=0x81ce778, src=0x40238bda "", len=1076071386, flush=4) at zlib.c:703
#7  0x402360f2 in gzfile_writer_end (gz=0x81ce778) at zlib.c:2241
#8  0x402352d6 in gzfile_close (gz=0x81ce778, closeflag=1) at zlib.c:1765
#9  0x402368c8 in rb_gzfile_close (obj=1076071386) at zlib.c:2580
#10 0x0806a0a1 in call_cfunc (func=0x402368a0 <rb_gzfile_close>, recv=1075807700, len=4, argc=1075807700, argv=0x0)
    at eval.c:5384
#11 0x0805e207 in rb_call0 (klass=1075855340, recv=1075807700, id=7697, oid=1076071386, argc=0, argv=0x0, body=0x40203c18, 
    nosuper=0) at eval.c:5522
#12 0x0805e4b8 in rb_call (klass=1075855340, recv=1075807700, mid=7697, argc=0, argv=0x0, scope=0) at eval.c:5743
#13 0x080593f8 in rb_eval (self=1075849060, n=0x40238bda) at ruby.h:635
#14 0x0805dd29 in rb_call0 (klass=1075852860, recv=1075849060, id=13521, oid=1076071386, argc=0, argv=0xbfff573c, 
    body=0x402067ec, nosuper=0) at eval.c:5650
#15 0x0805e4b8 in rb_call (klass=1075852860, recv=1075849060, mid=13521, argc=0, argv=0xbfff573c, scope=1) at eval.c:5743
#16 0x0805e724 in rb_f_send (argc=0, argv=0xbfff573c, recv=1075849060) at ruby.h:635
#17 0x0806a09a in call_cfunc (func=0x805e6a0 <rb_f_send>, recv=1075849060, len=4, argc=1075807700, argv=0xbfff5738)
    at eval.c:5381
#18 0x0805e207 in rb_call0 (klass=1075678376, recv=1075849060, id=3929, oid=1076071386, argc=1, argv=0xbfff5738, 
    body=0x401d6cc8, nosuper=0) at eval.c:5522
#19 0x0805e4b8 in rb_call (klass=1075678376, recv=1075849060, mid=3929, argc=1, argv=0xbfff5738, scope=1) at eval.c:5743
#20 0x080593f8 in rb_eval (self=1075849060, n=0x40238bda) at ruby.h:635
#21 0x08058a8a in rb_eval (self=1075849060, n=0x40238bda) at eval.c:3024
#22 0x08058bd2 in rb_eval (self=1075849060, n=0x40238bda) at eval.c:3073
#23 0x0805dd29 in rb_call0 (klass=1075519036, recv=1075849060, id=5169, oid=1076071386, argc=0, argv=0xbfff6c1c, 
    body=0x401c4820, nosuper=0) at eval.c:5650
#24 0x0805e4b8 in rb_call (klass=1075519036, recv=1075849060, mid=5169, argc=1, argv=0xbfff6c18, scope=0) at eval.c:5743
#25 0x080593f8 in rb_eval (self=1075849340, n=0x40238bda) at ruby.h:635
#26 0x08063910 in block_pass (self=1075849340, node=0x401b2ea4) at eval.c:8461
#27 0x08059fd7 in rb_eval (self=1075849340, n=0x40238bda) at eval.c:2923
#28 0x0805c293 in rb_yield_0 (val=1075849060, self=1075849340, klass=1075523236, flags=0, avalue=0) at eval.c:4722
#29 0x0805c779 in rb_yield (val=1076071386) at eval.c:4804
#30 0x080c536f in rb_ary_each (ary=1075849160) at array.c:1270
#31 0x0806a0a1 in call_cfunc (func=0x80c5340 <rb_ary_each>, recv=1075849160, len=4, argc=1075807700, argv=0x0)
    at eval.c:5384
---Type <return> to continue, or q <return> to quit---
#32 0x0805e207 in rb_call0 (klass=1075647616, recv=1075849160, id=3873, oid=1076071386, argc=0, argv=0x0, body=0x401d105c, 
    nosuper=0) at eval.c:5522
#33 0x0805e4b8 in rb_call (klass=1075647616, recv=1075849160, mid=3873, argc=0, argv=0x0, scope=0) at eval.c:5743
#34 0x080593f8 in rb_eval (self=1075849340, n=0x40238bda) at ruby.h:635
#35 0x080587a8 in rb_eval (self=1075849340, n=0x40238bda) at eval.c:2937
#36 0x0805dd29 in rb_call0 (klass=1075519976, recv=1075849340, id=5169, oid=1076071386, argc=0, argv=0xbfff8cbc, 
    body=0x401b300c, nosuper=0) at eval.c:5650
#37 0x0805e4b8 in rb_call (klass=1075519976, recv=1075849340, mid=5169, argc=1, argv=0xbfff8cb8, scope=0) at eval.c:5743
#38 0x080593f8 in rb_eval (self=1075867480, n=0x40238bda) at ruby.h:635
#39 0x08063910 in block_pass (self=1075867480, node=0x401b2ea4) at eval.c:8461
#40 0x08059fd7 in rb_eval (self=1075867480, n=0x40238bda) at eval.c:2923
#41 0x0805c293 in rb_yield_0 (val=1075849340, self=1075867480, klass=1075523236, flags=0, avalue=0) at eval.c:4722
#42 0x0805c779 in rb_yield (val=1076071386) at eval.c:4804
#43 0x080c536f in rb_ary_each (ary=1075852500) at array.c:1270
#44 0x0806a0a1 in call_cfunc (func=0x80c5340 <rb_ary_each>, recv=1075852500, len=4, argc=1075807700, argv=0x0)
    at eval.c:5384
#45 0x0805e207 in rb_call0 (klass=1075647616, recv=1075852500, id=3873, oid=1076071386, argc=0, argv=0x0, body=0x401d105c, 
    nosuper=0) at eval.c:5522
#46 0x0805e4b8 in rb_call (klass=1075647616, recv=1075852500, mid=3873, argc=0, argv=0x0, scope=0) at eval.c:5743
#47 0x080593f8 in rb_eval (self=1075867480, n=0x40238bda) at ruby.h:635
#48 0x080587a8 in rb_eval (self=1075867480, n=0x40238bda) at eval.c:2937
#49 0x0805dd29 in rb_call0 (klass=1075519976, recv=1075867480, id=5169, oid=1076071386, argc=0, argv=0xbfffad5c, 
    body=0x401b300c, nosuper=0) at eval.c:5650
#50 0x0805e4b8 in rb_call (klass=1075519976, recv=1075867480, mid=5169, argc=1, argv=0xbfffad58, scope=0) at eval.c:5743
#51 0x080593f8 in rb_eval (self=1075813300, n=0x40238bda) at ruby.h:635
#52 0x080587a8 in rb_eval (self=1075813300, n=0x40238bda) at eval.c:2937
#53 0x0805dd29 in rb_call0 (klass=1075814720, recv=1075813300, id=14361, oid=1076071386, argc=0, argv=0x0, 
    body=0x401ff118, nosuper=0) at eval.c:5650
#54 0x0805e4b8 in rb_call (klass=1075814720, recv=1075813300, mid=14361, argc=0, argv=0x0, scope=0) at eval.c:5743
#55 0x080593f8 in rb_eval (self=1075814200, n=0x40238bda) at ruby.h:635
#56 0x0805dd29 in rb_call0 (klass=1075814040, recv=1075814200, id=14249, oid=1076071386, argc=0, argv=0x0, 
    body=0x402011fc, nosuper=0) at eval.c:5650
#57 0x0805e4b8 in rb_call (klass=1075814040, recv=1075814200, mid=14249, argc=0, argv=0x0, scope=2) at eval.c:5743
#58 0x080593f8 in rb_eval (self=1075814200, n=0x40238bda) at ruby.h:635
#59 0x0805dd29 in rb_call0 (klass=1075814040, recv=1075814200, id=5089, oid=1076071386, argc=0, argv=0x0, body=0x40201d8c, 
    nosuper=0) at eval.c:5650
#60 0x0805e4b8 in rb_call (klass=1075814040, recv=1075814200, mid=5089, argc=0, argv=0x0, scope=0) at eval.c:5743
#61 0x080593f8 in rb_eval (self=1075814040, n=0x40238bda) at ruby.h:635
#62 0x0805dd29 in rb_call0 (klass=1075492756, recv=1075814040, id=5169, oid=1076071386, argc=0, argv=0xbfffd480, 
---Type <return> to continue, or q <return> to quit---
    body=0x401abdc0, nosuper=0) at eval.c:5650
#63 0x0805e4b8 in rb_call (klass=1075492756, recv=1075814040, mid=5169, argc=2, argv=0xbfffd478, scope=0) at eval.c:5743
#64 0x080593f8 in rb_eval (self=1075911480, n=0x40238bda) at ruby.h:635
#65 0x080592cb in rb_eval (self=1075911480, n=0x40238bda) at eval.c:3211
#66 0x0805dd29 in rb_call0 (klass=1075913080, recv=1075911480, id=5169, oid=1076071386, argc=0, argv=0x0, body=0x401ac5f4, 
    nosuper=0) at eval.c:5650
#67 0x0805e4b8 in rb_call (klass=1075913080, recv=1075911480, mid=5169, argc=0, argv=0x0, scope=0) at eval.c:5743
#68 0x080593f8 in rb_eval (self=1075913080, n=0x40238bda) at ruby.h:635
#69 0x0805dd29 in rb_call0 (klass=1075913060, recv=1075913080, id=5169, oid=1076071386, argc=0, argv=0xbfffeb30, 
    body=0x401b170c, nosuper=0) at eval.c:5650
#70 0x0805e4b8 in rb_call (klass=1075913060, recv=1075913080, mid=5169, argc=2, argv=0xbfffeb28, scope=0) at eval.c:5743
#71 0x080593f8 in rb_eval (self=1075673496, n=0x40238bda) at ruby.h:635
#72 0x08059728 in rb_eval (self=1075673496, n=0x40238bda) at ruby.h:664
#73 0x080558dd in ruby_exec_internal () at eval.c:1457
#74 0x080558f6 in ruby_exec () at eval.c:1475
#75 0x08055940 in ruby_run () at eval.c:1492
#76 0x080539e5 in main (argc=1076071386, argv=0x40238bda, envp=0xbffff974) at main.c:38
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next