[#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:24627] raising zlib dumps core again

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

% ./ruby -rzlib -rstringio -e '
$stderr = open("/dev/null", "w")
str = (1...10000).map { rand.to_s }.join
z = Zlib::GzipWriter.new(StringIO.new(buf = ""))
t = Thread.new {
  Thread.main.raise "xxxx"
}
z.write str
z.close
'
-e:6: [BUG] Segmentation fault
ruby 1.9.0 (2004-10-28) [i686-linux]

zsh: abort (core dumped)  ./ruby -rzlib -rstringio -e 
% 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 `./ruby -rzlib -rstringio -e 
$stderr = open("/dev/null", "w")
str = (1...10000)'.
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/head-ruby/lib/ruby/1.9/i686-linux/zlib.so...done.
Loaded symbols for /home/akr/ruby/head-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
Reading symbols from /home/akr/ruby/head-ruby/lib/ruby/1.9/i686-linux/stringio.so...done.
Loaded symbols for /home/akr/ruby/head-ruby/lib/ruby/1.9/i686-linux/stringio.so
#0  0x4009e6b1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x4009e6b1 in kill () from /lib/libc.so.6
#1  0x4009e435 in raise () from /lib/libc.so.6
#2  0x4009f978 in abort () from /lib/libc.so.6
#3  0x080d3f86 in rb_bug (fmt=0x0) at error.c:214
#4  0x080b1342 in sigsegv (sig=11) at signal.c:446
#5  <signal handler called>
#6  0x0805b953 in rb_longjmp (tag=6, mesg=1076098008) at eval.c:4331
#7  0x0805bb39 in rb_exc_raise (mesg=0) at eval.c:4338
#8  0x080d59d8 in rb_raise (exc=0, fmt=0x0) at error.c:1108
#9  0x08088a8c in rb_check_convert_type (val=135471960, type=135145376, tname=0x80e1353 "IO", method=0x80e048c "to_io")
    at object.c:2110
#10 0x08075e3c in rb_io_check_io (io=0) at io.c:209
#11 0x08076283 in io_write (io=1075600016, str=1076098068) at io.c:457
#12 0x0806a482 in call_cfunc (func=0x8076250 <io_write>, recv=1075600016, len=1, argc=135368200, argv=0xbfffb618)
    at eval.c:5378
#13 0x0805e3a7 in rb_call0 (klass=1075636716, recv=1075600016, id=7321, oid=0, argc=1, argv=0xbfffb618, body=0x401ce44c, 
    nosuper=0) at eval.c:5522
#14 0x0805e658 in rb_call (klass=1075636716, recv=1075600016, mid=7321, argc=1, argv=0xbfffb618, scope=1) at eval.c:5743
#15 0x0805e9d4 in rb_funcall (recv=1075600016, mid=0, n=1) at ruby.h:633
#16 0x0807636a in rb_io_write (io=0, str=0) at io.c:485
#17 0x080d3df2 in warn_print (fmt=0x0, args=0x0) at error.c:126
#18 0x080d3e4b in rb_warn (fmt=0x0) at error.c:146
#19 0x4001d3e7 in gzfile_writer_end (gz=0x816fa78) at zlib.c:2254
#20 0x4001c3dd in gzfile_free (gz=0x816fa78) at zlib.c:1723
#21 0x08071c55 in rb_gc_call_finalizer_at_exit () at gc.c:1846
#22 0x08055752 in ruby_finalize_1 () at eval.c:1398
#23 0x0805586b in ruby_cleanup (ex=1) at eval.c:1435
#24 0x080559c1 in ruby_stop (ex=0) at eval.c:1482
#25 0x08055a0f in ruby_run () at eval.c:1494
#26 0x080539f5 in main (argc=0, argv=0x0, envp=0xbffff8cc) at main.c:38
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next