mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Run rb_print_backtrace first on ruby_on_ci
Unfortunately we couldn't see a C backtrace with the previous commit http://ci.rvm.jp/results/trunk-random2@phosphorus-docker/3272697.
This commit is contained in:
		
							parent
							
								
									4dbf6f1e51
								
							
						
					
					
						commit
						69e77e81dc
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								gc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4598,7 +4598,13 @@ static void
 | 
			
		|||
read_barrier_signal(int sig, siginfo_t * info, void * data)
 | 
			
		||||
{
 | 
			
		||||
    extern int ruby_on_ci;
 | 
			
		||||
    if (ruby_on_ci) { // read_barrier_handler may crash. Report a backtrace first on CI.
 | 
			
		||||
    if (ruby_on_ci) { // `read_barrier_handler` may crash. Report backtraces first on CI.
 | 
			
		||||
# if HAVE_BACKTRACE // `rb_bug_without_die` may crash on `control_frame_dump`. Report a C backtrace first.
 | 
			
		||||
        fprintf(stderr, "-- C level backtrace (read_barrier_signal) "
 | 
			
		||||
                "-------------------------------------------\n");
 | 
			
		||||
        rb_print_backtrace();
 | 
			
		||||
        fprintf(stderr, "\n");
 | 
			
		||||
# endif
 | 
			
		||||
        extern void rb_bug_without_die(const char *fmt, ...);
 | 
			
		||||
        rb_bug_without_die("died with read_barrier_signal installed");
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue