This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: postinstall hang

Popper, Samuel (US SSA) wrote on 01 April 2008 14:47:

> > > $ NUM=1; while true ; do echo `echo $NUM` ; NUM=$(( $NUM + 1 )); done
> > > 
> > > Hangs pretty quickly,
> > 
> > because it forks a huge number of processes, and each fork is likely to
> > be tripped up by a BLODA
> As I understand it, that should fork once per iteration.
> Running with cut-down PATH:
> [samuel.popper@localhost ~]$ echo $PATH
> /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
> [samuel.popper@localhost ~]$ NUM=1; while true ; do echo `echo $NUM` ;
> NUM=$(( $NUM + 1 )); done 1
> 2
> Here, it hung after 2 iterations.  The default /etc/profile forks more
> than that! 

  FWIW, can't reproduce it here on XPSP2 with cygwin 1.5.23.

> Other than sneaking in via PATH, the only moderately intrusive thing
> running on the system is Sysinternal's ProcessExplorer.  But I tried
> running with that closed, and it made no difference.
> Is there anything else that could contribute to BLODA?

  Yes, absolutely anything that hooks or injects into processes.  Try using
procexp to get a list of DLLs from the stuck bash processes, and let us know
what's there.

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]