Package: bash
Version: 3.1dfsg-8
Severity: normal
I run the test.sh script appended, and I got this:
================
$ ./test.sh
2: child finished [1]- Running sleep 6 & [2]+ Done sleep 2
malloc: unknown:0: assertion botched
free: start and end chunk sizes differ
Aborting...Aborted (core dumped)
================
This is not deterministic. Usually I get this:
================
$ ./test.sh
2: child finished [1]- Running sleep 6 & [2]+ Done sleep 2
3: child finished [1]- Running sleep 6 & [2]+ Done sleep 2
================
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set
to C)
Versions of packages bash depends on:
ii base-files 4 Debian base system miscellaneous f
ii debianutils 2.17 Miscellaneous utilities specific t
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
bash recommends no packages.
-- no debconf information
===File ~/test.sh===========================================
#! /bin/bash
function childfinished
{
echo $SECONDS: child finished $(jobs)
read -t 1 </dev/zero
echo $SECONDS: child finished $(jobs)
exit 0
} >&2
set -bm
trap childfinished SIGCHLD
sleep 6 &
sleep 2 &
wait; echo $SECONDS: $(jobs)
============================================================
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]