processes hanging in STOPPED state

2005-04-27 Thread Jim Paris
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2
uname output: Linux neurosis 2.6.11 #1 Fri Mar 4 13:53:50 EST 2005 i686 
GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
Bug at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=224543
(reported back on 2.05) still exists on 3.0... re-reporting
to bug-bash so hopefully it gets noticed.

Bash is apparently improperly setting up process groups in
a way that causes processes to become stuck in the STOPPED
state.

Repeat-By:
env -i EDITOR=emacs TERM=linux SHELLOPTS=monitor bash --noprofile 
--norc -c while true; do crontab -e ; done

Hit ^X ^C rapidly to keep exiting emacs.  Soon, a copy hangs on
startup, process in stopped state (T), cannot be restarted with
SIGCONT, only killed with SIGKILL.

Fix:
http://groups-beta.google.com/group/linux.kernel/msg/757fd571c7cecc35


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: processes hanging in STOPPED state

2005-04-27 Thread Chet Ramey
 Bash Version: 3.0
 Patch Level: 16
 Release Status: release
 
 Description:
 Bug at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=224543
   (reported back on 2.05) still exists on 3.0... re-reporting
 to bug-bash so hopefully it gets noticed.
 
   Bash is apparently improperly setting up process groups in
   a way that causes processes to become stuck in the STOPPED
   state.

And did changing the definition of PGRP_PIPE in config.h solve the problem?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.cwru.edu/~chet/


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


Re: processes hanging in STOPPED state

2005-04-27 Thread Jim Paris
Chet Ramey wrote:
  Bash is apparently improperly setting up process groups in
  a way that causes processes to become stuck in the STOPPED
  state.
 
 And did changing the definition of PGRP_PIPE in config.h solve the problem?

Yes, defining PGRP_PIPE does appear to make the problem go away.  
But the previously referenced post from Linus said that PGRP_PIPE may
cause other problems, and that there exists a proper fix that you
have not yet included in the bash sources?  As before, I cannot find
that patch, do you have it?

-jim


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash