Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11421

coredump with wait -n

Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From isabella parakiss <izaberina@gmail.com>
Newsgroups gnu.bash.bug
Subject coredump with wait -n
Date Sat, 22 Aug 2015 10:39:52 +0200
Lines 120
Approved bug-bash@gnu.org
Message-ID <mailman.59.1440232797.11330.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace usenet.stanford.edu 1440232798 2513 208.118.235.17 (22 Aug 2015 08:39:58 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YM/2bnwcbbSvZ9Wq/9E5GYEVJNj+nPBAWbdK4jOEXDE=; b=ZmmS3kpANbY7cZdZFn1q1Edj7B54JxoRgEmnwnguyQj2JLhswuZC89SzLDkOjR1UPI 16onkn7mHgvWBq1oq+PB9uNaWJrbzcNubl6jdGlsV/8jmKTTVUY9aJwpb98DZSACmEJi vSP+0MJnZofgOK3j7h9zYm5j1uUU42ohwbpUmklEY875FgbghBkH8NtqetFB7RFroCLj rhGxul3VZgyvFQet8cOza/tqPpUiti/Ns01wRXDAlyk4DoXyg5L5incG4yZ0mwNq+zLU 25EpDwor9sL3scHgmG4gZNU+3rqLjC2u338NT7l9SB95tdm8XgAAoVSxvqh690cSqjR9 Hkkg==
X-Received by 10.50.143.101 with SMTP id sd5mr6232131igb.44.1440232793077; Sat, 22 Aug 2015 01:39:53 -0700 (PDT)
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2607:f8b0:4001:c05::235
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11421

Show key headers only | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

coredump with wait -n isabella parakiss <izaberina@gmail.com> - 2015-08-22 10:39 +0200

csiph-web