From: Run Paint Run Run Date: 2009-08-02T09:32:45+09:00 Subject: [ruby-core:24679] [Bug #1859] Random#int Segfaults with Non-Integer Ranges Bug #1859: Random#int Segfaults with Non-Integer Ranges http://redmine.ruby-lang.org/issues/show/1859 Author: Run Paint Run Run Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.2dev (2009-08-01 trunk 24343) [i686-linux] $ ruby -e 'Random.new.int(3.1..4)' -e:1: [BUG] Segmentation fault ruby 1.9.2dev (2009-08-01 trunk 24343) [i686-linux] -- control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :int c:0003 p:0027 s:0006 b:0006 l:001edc d:00244c EVAL -e:1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:001edc d:001edc TOP --------------------------- -e:1:in `
' -e:1:in `int' -- C level backtrace information ------------------------------------------- ruby(rb_vm_bugreport+0xb5) [0x8165715] ruby [0x81a117b] ruby(rb_bug+0x28) [0x81a1208] ruby [0x80fa1d5] [0xb7fc1410] ruby [0x80c5338] ruby(rb_random_int+0x4f) [0x80c5d7f] ruby [0x8151877] ruby [0x8162025] ruby [0x8156105] ruby [0x815ca32] ruby(rb_iseq_eval_main+0x1a3) [0x815cc93] ruby(ruby_exec_node+0x97) [0x805d6a7] ruby(ruby_run_node+0x46) [0x805ef86] ruby(main+0x60) [0x805cac0] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7de1775] ruby [0x805c9c1] [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 Aborted ---------------------------------------- http://redmine.ruby-lang.org