From: Yui NARUSE Date: 2011-09-08T09:38:14+09:00 Subject: [ruby-core:39354] [Ruby 1.9 - Bug #5296][Closed] Incompatability with DateTime#strptime Segmentation Fault when parsing string Issue #5296 has been updated by Yui NARUSE. Status changed from Open to Closed ---------------------------------------- Bug #5296: Incompatability with DateTime#strptime Segmentation Fault when parsing string http://redmine.ruby-lang.org/issues/5296 Author: Diebels Alternative Status: Closed Priority: Normal Assignee: Category: Target version: ruby -v: 1.9.3-preview Loading development environment (Rails 3.0.10) :001 > DateTime.strptime => Mon, 01 Jan -4712 00:00:00 +0000 :002 > DateTime.strptime(nil) TypeError: can't convert nil into String :003 > DateTime.strptime(nil,"%m/%d/%Y") TypeError: can't convert nil into String :004 > DateTime.strptime("df","%m/%d/%Y") (irb):4: [BUG] Segmentation fault ruby 1.9.3dev (2011-07-31 revision 32789) [i686-linux] -- Control frame information ----------------------------------------------- c:0029 p:---- s:-305020823 b:0105 l:000104 d:000104 CFUNC :strptime Under 1.9.2: ruby-1.9.2-p290 :003 > DateTime.strptime("df","%m/%d/%Y") ArgumentError: invalid date -- http://redmine.ruby-lang.org