Project

General

Profile

Actions

Bug #3341

closed

Random#randにTimeのRangeを渡すとSEGVする

Added by ryoqun (Ryo Onodera) almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-25 trunk 28010) [x86_64-linux]
Backport:
[ruby-dev:41410]

Description

=begin
下の様なコマンドでSEGVします。Time.nowである必要はなくて、とにかくTimeなら何でも落ちます。

$ ruby -e 'Random.new.rand(Time.now..Time.now)'
-e:1: [BUG] Segmentation fault
ruby 1.9.3dev (2010-05-25 trunk 28010) [x86_64-linux]

-- control frame ----------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :(null)
c:0003 p:0053 s:0006 b:0006 l:000978 d:001638 EVAL -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000978 d:000978 TOP

-- Ruby level backtrace information ----------------------------------------
-e:1:in `'
Segmentation fault
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0