bug-bash
[Top][All Lists]
Advanced

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

coredump with wait -n


From: isabella parakiss
Subject: coredump with wait -n
Date: Sat, 22 Aug 2015 10:39:52 +0200

Hi, after running wait -n there's something wrong, ^C doesn't work
properly anymore: it displays ^C in the readline buffer, but the current
line stays there until I press enter.  Running any command "fixes" it.


It can also dump core if you try with multiple jobs.

$ bash --norc
bash-4.3$ sleep 1 & sleep 2 & wait -n
[1] 8368
[2] 8369
[1]-  Done                    sleep 1
bash-4.3$ ^C*** stack smashing detected ***: bash terminated
======= Backtrace: =========
/usr/lib/libc.so.6(+0x72055)[0x7f9902ce8055]
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7f9902d6f5c7]
/usr/lib/libc.so.6(__fortify_fail+0x0)[0x7f9902d6f590]
bash[0x47be0a]
[0xa94630]
======= Memory map: ========
00400000-004bd000 r-xp 00000000 08:02 305608
  /usr/bin/bash
006bc000-006bd000 r--p 000bc000 08:02 305608
  /usr/bin/bash
006bd000-006c1000 rw-p 000bd000 08:02 305608
  /usr/bin/bash
006c1000-006cb000 rw-p 00000000 00:00 0
00a3d000-00aa0000 rw-p 00000000 00:00 0                                  [heap]
7f990284e000-7f9902864000 r-xp 00000000 08:02 265670
  /usr/lib/libgcc_s.so.1
7f9902864000-7f9902a63000 ---p 00016000 08:02 265670
  /usr/lib/libgcc_s.so.1
7f9902a63000-7f9902a64000 rw-p 00015000 08:02 265670
  /usr/lib/libgcc_s.so.1
7f9902a64000-7f9902a6f000 r-xp 00000000 08:02 264875
  /usr/lib/libnss_files-2.22.so
7f9902a6f000-7f9902c6e000 ---p 0000b000 08:02 264875
  /usr/lib/libnss_files-2.22.so
7f9902c6e000-7f9902c6f000 r--p 0000a000 08:02 264875
  /usr/lib/libnss_files-2.22.so
7f9902c6f000-7f9902c70000 rw-p 0000b000 08:02 264875
  /usr/lib/libnss_files-2.22.so
7f9902c70000-7f9902c76000 rw-p 00000000 00:00 0
7f9902c76000-7f9902e11000 r-xp 00000000 08:02 264868
  /usr/lib/libc-2.22.so
7f9902e11000-7f9903010000 ---p 0019b000 08:02 264868
  /usr/lib/libc-2.22.so
7f9903010000-7f9903014000 r--p 0019a000 08:02 264868
  /usr/lib/libc-2.22.so
7f9903014000-7f9903016000 rw-p 0019e000 08:02 264868
  /usr/lib/libc-2.22.so
7f9903016000-7f990301a000 rw-p 00000000 00:00 0
7f990301a000-7f990301d000 r-xp 00000000 08:02 264838
  /usr/lib/libdl-2.22.so
7f990301d000-7f990321c000 ---p 00003000 08:02 264838
  /usr/lib/libdl-2.22.so
7f990321c000-7f990321d000 r--p 00002000 08:02 264838
  /usr/lib/libdl-2.22.so
7f990321d000-7f990321e000 rw-p 00003000 08:02 264838
  /usr/lib/libdl-2.22.so
7f990321e000-7f990327d000 r-xp 00000000 08:02 265713
  /usr/lib/libncursesw.so.5.9
7f990327d000-7f990347d000 ---p 0005f000 08:02 265713
  /usr/lib/libncursesw.so.5.9
7f990347d000-7f9903481000 r--p 0005f000 08:02 265713
  /usr/lib/libncursesw.so.5.9
7f9903481000-7f9903483000 rw-p 00063000 08:02 265713
  /usr/lib/libncursesw.so.5.9
7f9903483000-7f99034c4000 r-xp 00000000 08:02 268292
  /usr/lib/libreadline.so.6.3
7f99034c4000-7f99036c4000 ---p 00041000 08:02 268292
  /usr/lib/libreadline.so.6.3
7f99036c4000-7f99036c6000 r--p 00041000 08:02 268292
  /usr/lib/libreadline.so.6.3
7f99036c6000-7f99036cd000 rw-p 00043000 08:02 268292
  /usr/lib/libreadline.so.6.3
7f99036cd000-7f99036ce000 rw-p 00000000 00:00 0
7f99036ce000-7f99036f0000 r-xp 00000000 08:02 264835
  /usr/lib/ld-2.22.so
7f9903727000-7f99038b6000 r--p 00000000 08:02 315939
  /usr/lib/locale/locale-archive
7f99038b6000-7f99038bb000 rw-p 00000000 00:00 0
7f99038ed000-7f99038ef000 rw-p 00000000 00:00 0
7f99038ef000-7f99038f0000 r--p 00021000 08:02 264835
  /usr/lib/ld-2.22.so
7f99038f0000-7f99038f1000 rw-p 00022000 08:02 264835
  /usr/lib/ld-2.22.so
7f99038f1000-7f99038f2000 rw-p 00000000 00:00 0
7ffd88e1f000-7ffd88e40000 rw-p 00000000 00:00 0                          [stack]
7ffd88f63000-7ffd88f65000 r--p 00000000 00:00 0                          [vvar]
7ffd88f65000-7ffd88f67000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
  [vsyscall]
Aborted (core dumped)


I can reproduce in both 4.3 and 4.4-alpha, compiled on linux with gcc:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'
-DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include
-I./lib  -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong --param=ssp-buffer-size=4
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout'
uname output: Linux notebook 4.1.5-1-ARCH #1 SMP PREEMPT Tue Aug 11
15:41:14 CEST 2015 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu


Other people in #bash can also reproduce it.


---
xoxo iza



reply via email to

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