bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

With DEBUG trap, resizing window crashes script


From: Wiley Young
Subject: With DEBUG trap, resizing window crashes script
Date: Wed, 10 May 2023 13:02:24 -0700

From: liveuser
To: bug-bash@gnu.org
Subject: With DEBUG trap, resizing window crashes script


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
uname output: Linux localhost-live 6.2.9-300.fc38.x86_64 #1 SMP
PREEMPT_DYNAMIC Thu Mar 30 22:32:58 UTC 2023 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
  While using the DEBUG trap and prompt is waiting for user input, resizing
the terminal window causes the script to crash.

Repeat-By:
  The script is set up to enable the DEBUG trap and prompt. When the first
user prompt appears, in this case `set -x` although xtrace was enabled at
the crashbang, if I resize the window then press enter, the script dies and
displays that a SIGWINCH was received.

...
++./find-and-scan-shell-scripts-sh:280:_mk_deltas: : '_mk_deltas ENDS  ' 2
' ++++++++++++++++++++++++++++++++++++++++++++ '
++./find-and-scan-shell-scripts-sh:288:_debug_prompt: read -rp
'[./find-and-scan-shell-scripts-sh:288] set -x?' _
[./find-and-scan-shell-scripts-sh:288] set -x?

# ...resize window and press enter...

+++./find-and-scan-shell-scripts-sh:1:_debug_prompt: set -x
+++./find-and-scan-shell-scripts-sh:1:_debug_prompt: echo SIGWINCH
SIGWINCH
+++./find-and-scan-shell-scripts-sh:1:_debug_prompt: trap SIGWINCH
+++./find-and-scan-shell-scripts-sh:1:_debug_prompt: kill -s 2 96527
++++./find-and-scan-shell-scripts-sh:2:_debug_prompt: trap - DEBUG
...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]