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

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

% ./ruby -rzlib -rstringio -e '
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:5:in `new': xxxx (RuntimeError)
        from -e:4
-e:5: [BUG] Segmentation fault
ruby 1.9.0 (2004-10-23) [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 
str = (1...10000).map { rand.to_s }.join
z = Zlib:'.
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  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  0x080d24a6 in rb_bug (fmt=0x0) at error.c:214
#4  0x080b0432 in sigsegv (sig=11) at signal.c:446
#5  <signal handler called>
#6  0x0805b7c3 in rb_longjmp (tag=6, mesg=1076098468) at eval.c:4331
#7  0x0805b9a9 in rb_exc_raise (mesg=0) at eval.c:4338
#8  0x080d3e98 in rb_raise (exc=0, fmt=0x0) at error.c:1108
#9  0x08087f8c in rb_check_convert_type (val=135525192, type=135138432, tname=0x80df80c "IO", method=0x80de94c "to_io")
    at object.c:2111
#10 0x080755cc in rb_io_check_io (io=0) at io.c:209
#11 0x08075a13 in io_write (io=1075634116, str=1076098548) at io.c:457
#12 0x0806a052 in call_cfunc (func=0x80759e0 <io_write>, recv=1075634116, len=1, argc=135360096, argv=0xbfffb638)
    at eval.c:5378
#13 0x0805e1e7 in rb_call0 (klass=1075636676, recv=1075634116, id=7321, oid=0, argc=1, argv=0xbfffb638, body=0x401ce424, 
    nosuper=0) at eval.c:5522
#14 0x0805e498 in rb_call (klass=1075636676, recv=1075634116, mid=7321, argc=1, argv=0xbfffb638, scope=1) at eval.c:5743
#15 0x0805e814 in rb_funcall (recv=1075634116, mid=0, n=1) at ruby.h:635
#16 0x08075afa in rb_io_write (io=0, str=0) at io.c:485
#17 0x080d2312 in warn_print (fmt=0x0, args=0x0) at error.c:126
#18 0x080d236b in rb_warn (fmt=0x0) at error.c:146
#19 0x4001d157 in gzfile_writer_end (gz=0x816d8a0) at zlib.c:2254
#20 0x4001c1bd in gzfile_free (gz=0x816d8a0) at zlib.c:1723
#21 0x08071565 in rb_gc_call_finalizer_at_exit () at gc.c:1837
#22 0x08055682 in ruby_finalize_1 () at eval.c:1398
#23 0x0805579b in ruby_cleanup (ex=1) at eval.c:1435
#24 0x080558f1 in ruby_stop (ex=0) at eval.c:1482
#25 0x0805593f in ruby_run () at eval.c:1494
#26 0x080539c5 in main (argc=0, argv=0x0, envp=0xbffff8ec) at main.c:38
(gdb) 
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread

Prev Next