Project

General

Profile

Bug #11423

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

`ruby_setup` ruby_setup checks for this static initialized to determine whether to run. 

 ~~~c 
 int 
 ruby_setup(void) 
 { 
     static int initialized = 0; 
     int state; 

     if (initialized) 
	 return 0; 
     initialized = 1; 
 ~~~ 

 But `ruby_cleanup` ruby_cleanup fails to reset it, causing future initializations to do nothing. This means an embedded app which runs ruby scripts in a setup/run/cleanup cycle will crash the second time.

Back