Project

General

Profile

Bug #11109

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

ENV: 
 Mac OS X 10.10.3 
 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] 

 HOW TO COMPILE: 

 
 1. cd to the dir of ruby 2.2.2. 
 2. ./configure 
 3. make 
 4. make install as root. 

 STEPS: 

 
 1. Start the irb on console. 
 2. Type the following code lines in irb: 

     ```ruby 
     require 
 `require 'stringio' 
     
 require 'bson' 
     
 sio = StringIO.new 1.to_bson 
     
 BSON::Int64. from_bson sio 
     ``` 

 sio` 
 3. The crash happens. 

 Please see also the attached file for all details.

Back