Wind River Support Network

HomeDefectsLIN7-3518
Fixed

LIN7-3518 : bash recursive call into rl_redisplay caused X server crash on cold boots

Created: Apr 26, 2015    Updated: Sep 8, 2018
Resolved Date: Apr 29, 2015
Found In Version: 7.0.0.3
Fix Version: 7.0.0.6
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace
Host OS: Linux 32
Architecture: IA32

Description

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. 

Other Downloads


Live chat
Online