Project

General

Profile

Bug #13324

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

I am not sure if this has already been taken care of or not but I am using ruby 2.3.0 and irb 0.9.6(09/06/30) and when I run the below code I get a segmentation fault 

 ```ruby 
 a `a = "eval a"; eval a a` 
 ``` 
 when running the same code with just the ruby interpreter I get the below error which is what I would expect 

 ``` 
 -e:1:in `-e:1:in `eval': stack level too deep (SystemStackError) 
	 from (eval):1:in `<main>' 
	 from (eval):1:in `eval' 
	 from (eval):1:in `<main>' 
	 from (eval):1:in `eval' 
	 from (eval):1:in `<main>' 
	 from (eval):1:in `eval' 
	 from (eval):1:in `<main>' 
	 from (eval):1:in `eval' 
	  ... 9507 levels... 
	 from (eval):1:in `eval' 
	 from (eval):1:in `<main>' 
	 from -e:1:in `eval' 
	 from -e:1:in `<main>' 
 ``` `<main>'`

Back