[#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:24504] Enumerable#to_a dumps core

From: sheepman <sheepman@...>
Date: 2004-10-17 01:06:25 UTC
List: ruby-dev #24504
こんにちは、sheepman です。
次のようにすると core を吐きます。

$./ruby -e '                        
a = "a"         
z = "z"
def a.succ
  nil
end
(a..z).to_a
'
-e:7: [BUG] Segmentation fault
ruby 1.9.0 (2004-10-16) [i686-linux]

zsh: abort (core dumped)  ./ruby -e 

$ gdb ./ruby core.2262
GNU gdb 5.0
Copyright 2000 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-redhat-linux"...
Core was generated by `./ruby -e
a = 'a'
z = 'z'
def a.succ
  nil
end
(a..z).to_a
'.
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
#0  0x400a3951 in __kill () from /lib/libc.so.6
(gdb) bt
#0  0x400a3951 in __kill () from /lib/libc.so.6
#1  0x400a36a4 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x400a4d91 in abort () at ../sysdeps/generic/abort.c:88
#3  0x080c70ea in rb_bug () at error.c:214
#4  0x080a9daf in sigsegv () at signal.c:446
#5  <signal handler called>
#6  0x080aeaa5 in rb_str_upto (beg=1075579824, end=1075579804, excl=0)
    at string.c:1422
#7  0x080990f5 in str_step (args=0xbfffdfc8) at range.c:230
#8  0x0805c420 in rb_iterate (it_proc=0x80990bc <str_step>, data1=3221217224, 
    bl_proc=0x80991b4 <step_i>, data2=3221217216) at eval.c:5021
#9  0x080995e8 in range_each (range=1075579724) at range.c:424
#10 0x0805d521 in rb_call0 (klass=1075609864, recv=1075579724, id=3865, oid=3865, 
    argc=0, argv=0x0, body=0x401c8004, nosuper=0) at eval.c:5379
#11 0x0805df86 in rb_call (klass=1075609864, recv=1075579724, mid=3865, argc=0, 
    argv=0x0, scope=1) at eval.c:5729
#12 0x0805e1d9 in rb_funcall (recv=1075579724, mid=3865, n=0) at eval.c:5812
#13 0x080c5f08 in rb_each (obj=1075579724) at enum.c:24
#14 0x0805c420 in rb_iterate (it_proc=0x80c5ef0 <rb_each>, data1=1075579724, 
    bl_proc=0x80c61b4 <collect_all>, data2=1075579704) at eval.c:5021
#15 0x080c622b in enum_to_a (obj=1075579724) at enum.c:255
#16 0x0805d521 in rb_call0 (klass=1075644004, recv=1075579724, id=3361, oid=3361, 
    argc=0, argv=0x0, body=0x401d0650, nosuper=0) at eval.c:5379


-- 
sheepman / TAMURA Takashi
sheepman@tcn.zaq.ne.jp http://sheepman.parfait.ne.jp/
Key fingerprint = 4E13 FE38 CD73 48D3 38AE  00EE 9E28 F98B D569 848E

In This Thread

Prev Next