Your message dated Wed, 8 Dec 2010 20:59:48 -0600 with message-id <20101209025948.ga3...@burratino> and subject line Re: Command-not-found handler crashes bash has caused the Debian Bug report #500066, regarding Command-not-found handler crashes bash to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 500066: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500066 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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;ra...@blake: ~\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
--- End Message ---
--- Begin Message ---Version: 4.0-1 Jonathan Nieder wrote: > Pavol Rusnak wrote: > >> Version: 3.1dfsg-8 > [...] >> 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 > [...] >> 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. > > Yes, I can reproduce this sporadically with lenny (bash 3.2-4). > > I suspect the problem went away when the command_not_found_handle () > handling was implemented upstream for bash 4. What do you think? Closing optimistically. If similar symptoms appear on bash 4, the fix would probably be different anyway.
--- End Message ---

