Bug in irb?

R

Roland Schmitt

Hi,

the following happens in irb.

irb(main):001:0> require "openssl"
=> true
irb(main):002:0> include OpenSSL
=> Object
irb(main):003:0> include X509
=> Object
irb(main):004:0> cert = Certificate.new(File.read("server.cer"))
ArgumentError: time out of range
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:296:in `utc'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:296:in `inspect'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:296:in `output_value'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:149:in `eval_input'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:145:in `signal_status'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:145:in `eval_input'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:144:in `each_top_level_statement'
from d:/roland/ruby181/lib/ruby/1.8/irb/ruby-lex.rb:220:in `loop'
from d:/roland/ruby181/lib/ruby/1.8/irb/ruby-lex.rb:248:in `each_top_level_statement'
from d:/roland/ruby181/lib/ruby/1.8/irb/ruby-lex.rb:219:in `catch'
from d:/roland/ruby181/lib/ruby/1.8/irb/ruby-lex.rb:219:in `each_top_level_statement'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:144:in `eval_input'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:70:in `start'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:69:in `catch'
from d:/roland/ruby181/lib/ruby/1.8/irb.rb:69:in `start'
from d:/roland/ruby181/bin/irb.bat:20
Maybe IRB bug!!
irb(main):005:0>

However, it is working as a ruby program.
Ruby 1.8.1 (2003-12-05) [i386-mswin32]


-Roland
______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Bug in IRB 3
Maybe IRB Bug? 2
Using fetch_fields in MySQL for Windows 2
:IRB Bug 1
Ruby 1.9 named arguments 5
each, stuck up... 2
problem with irb 2
Strange bug in irb1.9 7

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top