mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	 1b39a6e539
			
		
	
	
		1b39a6e539
		
	
	
	
	
		
			
			* iseq.c (iseqw_mark): as wrapped iseq is isolated from the call stack, it needs to take care of its parent and ancestors, so that they do not become orphans. [ruby-core:72620] [Bug #11928] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			243 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			243 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class Segfault
 | |
|   at_exit { Segfault.new.segfault }
 | |
| 
 | |
|   define_method 'segfault' do
 | |
|     n = 11928
 | |
|     v = nil
 | |
|     i = 0
 | |
|     while i < n
 | |
|       i += 1
 | |
|       v = (foo rescue $!).local_variables
 | |
|     end
 | |
|     assert_equal(%i[i n v], v.sort)
 | |
|   end
 | |
| end
 |