Fixed                
                
            
            
                
                    Created: Mar 31, 2015   
                                            Updated: Dec 3, 2018                                    
                
                    
                                    
             
         
        
            
            
                                    
                        Resolved Date: Apr 27, 2015                    
                
                
                                    
                        Found In Version: 6.0                     
                
                                    
                        Fix Version: 6.0.0.20                     
                
                                        
                            Severity: Standard                        
                    
                                        
                            Applicable for: Wind River Linux 6                        
                    
                                    
                        Component/s: Userspace                    
                
                
                             
         
                        
                Bug-Description:
If a SIGWINCH arrives while bash is performing redisplay, multi-line prompts are displayed incorrectly due to the display code being called recursively.
http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-020
PACKAGE NAME: bash
PACKAGE VERSION: 3.2.48
LICENSE: GPLv2+
Description of the issue:
On some cold boots the X server would die almost immediately after boot. Also, a core dump was produced by the bash process running inside the rxvt terminal inside of X. The core dump trace back pointed to a known issue in bash that has since been fixed in bash 4.0. The issue involves the bash process receiving a SIGWINCH signal from its parent at just the right time, causing a recursive call into a function (rl_redisplay). This call can sometimes lead to segmentation faults because the function access static module data in a way which is not safe for reentrancy. The patch adds a simple semaphore around the call to prevent this reentrancy.