Project

General

Profile

Bug #4966 » typescript.txt

バックトレース - metanest (Makoto Kishimoto), 07/03/2011 05:45 PM

 
$ ruby19 -d --disable-gems foo.rb
/usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb:162: [BUG] gc_sweep(): unknown data type 0x0(0x80134fdd8)
ruby 1.9.3dev (2011-07-03 trunk 32373) [x86_64-freebsd8.2]

-- Control frame information -----------------------------------------------
c:0009 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :initialize
c:0008 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC :new
c:0007 p:0041 s:0019 b:0019 l:000018 d:000018 METHOD /usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb:162
c:0006 p:0011 s:0013 b:0013 l:0016f8 d:000012 BLOCK foo.rb:19
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :loop
c:0003 p:0033 s:0006 b:0006 l:0016f8 d:000005 BLOCK foo.rb:18
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

-- Ruby level backtrace information ----------------------------------------
foo.rb:18:in `block in <main>'
foo.rb:18:in `loop'
foo.rb:19:in `block (2 levels) in <main>'
/usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb:162:in `accept'
/usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb:162:in `new'
/usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb:162:in `initialize'

-- Other runtime information -----------------------------------------------

* Loaded script: foo.rb

* Loaded features:

0 enumerator.so
1 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/encdb.so
2 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/trans/transdb.so
3 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/digest.so
4 /usr/local/lib/ruby/1.9.1/digest.rb
5 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/openssl.so
6 /usr/local/lib/ruby/1.9.1/openssl/bn.rb
7 /usr/local/lib/ruby/1.9.1/openssl/cipher.rb
8 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/stringio.so
9 /usr/local/lib/ruby/1.9.1/openssl/config.rb
10 /usr/local/lib/ruby/1.9.1/openssl/digest.rb
11 /usr/local/lib/ruby/1.9.1/openssl/x509.rb
12 /usr/local/lib/ruby/1.9.1/openssl/buffering.rb
13 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/fcntl.so
14 /usr/local/lib/ruby/1.9.1/openssl/ssl-internal.rb
15 /usr/local/lib/ruby/1.9.1/openssl/x509-internal.rb
16 /usr/local/lib/ruby/1.9.1/openssl.rb
17 /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/socket.so
18 /usr/local/lib/ruby/1.9.1/socket.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6 (core dumped)

$ gdb ruby19 ruby19.core
GNU gdb 6.1.1 [FreeBSD]
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 "amd64-marcel-freebsd"...
Core was generated by `ruby19'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libruby.so.19...done.
Loaded symbols for /usr/local/lib/libruby.so.19
Reading symbols from /usr/local/lib/libexecinfo.so.1...done.
Loaded symbols for /usr/local/lib/libexecinfo.so.1
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/encdb.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/encdb.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/trans/transdb.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/enc/trans/transdb.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/openssl.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/openssl.so
Reading symbols from /usr/local/lib/libssl.so.7...done.
Loaded symbols for /usr/local/lib/libssl.so.7
Reading symbols from /usr/local/lib/libcrypto.so.7...done.
Loaded symbols for /usr/local/lib/libcrypto.so.7
Reading symbols from /usr/lib/libz.so...done.
Loaded symbols for /usr/lib/libz.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/digest.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/digest.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/stringio.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/stringio.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/fcntl.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/fcntl.so
Reading symbols from /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/socket.so...done.
Loaded symbols for /usr/local/lib/ruby/1.9.1/x86_64-freebsd8.2/socket.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000800f32fbc in thr_kill () from /lib/libc.so.7
[New Thread 801207100 (LWP 100368/ruby19)]
[New Thread 80120ae40 (LWP 100178/ruby19)]
[New Thread 8012041c0 (LWP 100144/initial thread)]
(gdb) bt
#0 0x0000000800f32fbc in thr_kill () from /lib/libc.so.7
#1 0x0000000800fcf6eb in abort () from /lib/libc.so.7
#2 0x00000008006a3248 in rb_bug (fmt=Variable "fmt" is not available.
) at ../ruby-git/error.c:277
#3 0x00000008006b9353 in slot_sweep (objspace=0x801247000, sweep_slot=0x801350040) at ../ruby-git/gc.c:2356
#4 0x00000008006bd1d6 in garbage_collect (objspace=0x801247000) at ../ruby-git/gc.c:2198
#5 0x00000008006bda02 in rb_newobj () at ../ruby-git/gc.c:1157
#6 0x0000000800767db5 in rb_str_buf_new (capa=120) at ../ruby-git/string.c:373
#7 0x000000080075af54 in rb_enc_vsprintf (enc=0x0, fmt=0x8007f6d6c "rb_vsprintf reentered", ap=0x7fffffbf9380) at ../ruby-git/sprintf.c:1166
#8 0x00000008006a1a4f in rb_raise (exc=34380353480, fmt=Variable "fmt" is not available.
) at ../ruby-git/error.c:1578
#9 0x0000000800758566 in ruby__sfvwrite (fp=Variable "fp" is not available.
) at ../ruby-git/sprintf.c:1141
#10 0x000000080075952a in BSD_vfprintf (fp=0x7fffffbf9ec0, fmt0=0x6 <Address 0x6 out of bounds>, ap=0x7fffffbf9f30) at vsnprintf.c:333
#11 0x000000080075afa0 in rb_enc_vsprintf (enc=0x0, fmt=0x8007d9910 "wrong argument type %s (expected %s)", ap=0x7fffffbf9f30) at ../ruby-git/sprintf.c:1172
#12 0x00000008006a1a4f in rb_raise (exc=34380355040, fmt=Variable "fmt" is not available.
) at ../ruby-git/error.c:1578
#13 0x00000008006a3363 in rb_check_type (x=34379988800, t=6) at ../ruby-git/error.c:400
#14 0x0000000801823257 in ossl_ssl_initialize (argc=Variable "argc" is not available.
) at ../../../ruby-git/ext/openssl/ossl_ssl.c:1028
#15 0x00000008007b62f7 in vm_call0 (th=0x80148a100, recv=Variable "recv" is not available.
) at vm_eval.c:79
#16 0x00000008007b6e50 in rb_funcall2 (recv=34379988800, mid=456, argc=2, argv=0x8026040a0) at vm_eval.c:235
#17 0x00000008006eeb72 in rb_class_new_instance (argc=2, argv=0x8026040a0, klass=Variable "klass" is not available.
) at ../ruby-git/object.c:1625
#18 0x00000008007bb91a in vm_call_method (th=0x80148a100, cfp=0x802703d98, num=Variable "num" is not available.
) at vm_insnhelper.c:404
#19 0x00000008007c1156 in vm_exec_core (th=0x80148a100, initial=Variable "initial" is not available.
) at insns.def:1012
#20 0x00000008007c5b4e in vm_exec (th=0x80148a100) at ../ruby-git/vm.c:1180
#21 0x00000008007c644d in invoke_block_from_c (th=0x80148a100, block=0x802703f20, self=34380363040, argc=0, argv=Variable "argv" is not available.
) at ../ruby-git/vm.c:591
#22 0x00000008007c6b38 in loop_i () at ../ruby-git/vm.c:621
#23 0x00000008006a69a0 in rb_rescue2 (b_proc=0x8007c6b00 <loop_i>, data1=0, r_proc=0, data2=0) at ../ruby-git/eval.c:636
#24 0x00000008007b218e in rb_f_loop (self=34380363040) at vm_eval.c:826
#25 0x00000008007bb91a in vm_call_method (th=0x80148a100, cfp=0x802703ef8, num=Variable "num" is not available.
) at vm_insnhelper.c:404
#26 0x00000008007c1156 in vm_exec_core (th=0x80148a100, initial=Variable "initial" is not available.
) at insns.def:1012
#27 0x00000008007c5b4e in vm_exec (th=0x80148a100) at ../ruby-git/vm.c:1180
#28 0x00000008007c644d in invoke_block_from_c (th=0x80148a100, block=0x8020b1740, self=34380363040, argc=0, argv=Variable "argv" is not available.
) at ../ruby-git/vm.c:591
#29 0x00000008007c6841 in rb_vm_invoke_proc (th=0x80148a100, proc=0x8020b1740, self=34380363040, argc=0, argv=0x80134feb0, blockptr=0x0)
at ../ruby-git/vm.c:637
#30 0x00000008007d0f63 in thread_start_func_2 (th=0x80148a100, stack_start=0x7fffffb7b000) at ../ruby-git/thread.c:446
#31 0x00000008007d11a3 in thread_start_func_1 (th_ptr=Variable "th_ptr" is not available.
) at thread_pthread.c:623
#32 0x0000000800a8f4d1 in pthread_getprio () from /lib/libthr.so.3
#33 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffffbfb000
    (1-1/1)