Package: bash
Version: 3.1dfsg-8
Severity: important
This issue is present in all versions of bash with c-n-f handler (stable,
unstable, testing, ...)
Command-not-found handler crashes bash when non existing command
is executed on background and handler executes binaries.
Steps to reproduce:
1) install bash with command-not-found handler (probably already installed)
2) type "command_not_found_handle() { ls ; }" to define handler
3) type "blablablablabla &" several times (10 should suffice)
4) bash will crash eventually
When only internals are used in function (like echo) the crash is not
inflicted.
Strace on bash shows:
write(2, "[1] 22001\n", 10) = 10
write(1, "\33]0;[EMAIL PROTECTED]: ~\7", 19) = 19
write(2, "$ ", 2) = 2
read(0, 0xbfb0382f, 1) = -1 EIO (Input/output error)
write(2, "logout\n", 7) = 7
open("/home/ralph/.bash_logout", O_RDONLY|O_LARGEFILE) = 3
So bash probably lost stdin somewhere in handler and thus closes.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
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-13etch5 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for
terminal hand
bash recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]