[Bug #2005] abort at TestRand#test_random_range

Bug #2005: abort at TestRand#test_random_range
http://redmine.ruby-lang.org/issues/show/2005

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-08-27 trunk 24680) [i686-linux]

TestRand#test_random_range e$B$Ge(B abort e$B$7$^$9!#e(B

% ruby-trunk ~/wc/ruby/trunk/test/ruby/test_rand.rb -v -n
test_random_range
Loaded suite /home/kazu/wc/ruby/trunk/test/ruby/test_rand
Started
TestRand#test_random_range:
/home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:354: [BUG] Segmentation
fault
ruby 1.9.2dev (2009-08-27 trunk 24680) [i686-linux]

– control frame ----------
c:0017 p:---- s:0062 b:0062 l:000061 d:000061 CFUNC :rand
c:0016 p:0049 s:0058 b:0056 l:000047 d:000055 BLOCK
/home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:354
c:0015 p:---- s:0053 b:0053 l:000052 d:000052 FINISH
c:0014 p:---- s:0051 b:0051 l:000050 d:000050 CFUNC :each
c:0013 p:0071 s:0048 b:0048 l:000047 d:000047 METHOD
/home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:352
c:0012 p:0062 s:0043 b:0043 l:000042 d:000042 METHOD
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:458
c:0011 p:0090 s:0037 b:0037 l:000018 d:000036 BLOCK
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:426
c:0010 p:---- s:0032 b:0032 l:000031 d:000031 FINISH
c:0009 p:---- s:0030 b:0030 l:000029 d:000029 CFUNC :each
c:0008 p:0026 s:0027 b:0027 l:000018 d:000026 BLOCK
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:420
c:0007 p:---- s:0024 b:0024 l:000023 d:000023 FINISH
c:0006 p:---- s:0022 b:0022 l:000021 d:000021 CFUNC :each
c:0005 p:0080 s:0019 b:0019 l:000018 d:000018 METHOD
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:419
c:0004 p:0153 s:0014 b:0014 l:000013 d:000013 METHOD
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:393
c:0003 p:0041 s:0007 b:0007 l:0013fc d:000006 BLOCK
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:334
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001ae4 d:001ae4 TOP

/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:334:in block in autorun' /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:393:inrun’
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:419:in
run_test_suites' /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:419:ineach’
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:420:in block in run_test_suites' /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:420:ineach’
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:426:in block (2 levels) in run_test_suites' /home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/minitest/unit.rb:458:inrun’
/home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:352:in
test_random_range' /home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:352:ineach’
/home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:354:in block in test_random_range' /home/kazu/wc/ruby/trunk/test/ruby/test_rand.rb:354:inrand’

– C level backtrace information

/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_vm_bugreport+0x65)
[0xb7f167c5]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7e29d6f]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_bug+0x39) [0xb7e29e09]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7ebaf2d]
[0xb7f75440]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f05555]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f07184]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f1505d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0c365]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f118bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f11ea6]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_yield+0x59) [0xb7f128f9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_ary_each+0x52)
[0xb7e00fa2]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0553c]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f07184]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f1505d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0c365]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f118bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f11ea6]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_yield+0x59) [0xb7f128f9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_ary_each+0x52)
[0xb7e00fa2]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0553c]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f07184]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f1505d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0c365]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f118bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f11ea6]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_yield+0x59) [0xb7f128f9]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_ary_each+0x52)
[0xb7e00fa2]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0553c]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f07184]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f1505d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f0c365]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f118bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7f11ea6]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_vm_invoke_proc+0x8d)
[0xb7f1238d]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_proc_call+0x56)
[0xb7e308e6]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_call_end_proc+0x26)
[0xb7e2d346]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(rb_exec_end_proc+0x17c)
[0xb7e2d0bc]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9 [0xb7e2d196]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(ruby_cleanup+0x92)
[0xb7e2d6a2]
/home/kazu/opt/ruby-trunk/lib/libruby.so.1.9(ruby_run_node+0x5c)
[0xb7e2d8bc]
ruby-trunk(main+0x8a) [0x804880a]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7c19450]
ruby-trunk [0x8048711]

[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

%

e$B%A%1%C%He(B #2005 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r24681.

http://redmine.ruby-lang.org/issues/show/2005

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs