delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/07/08:57:36

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: FW: Problems with bash+cygwin and longjmp
Date: Thu, 7 Sep 2006 16:57:19 +0400
Message-ID: <A8427120F16F674DACE8EF1128D9365FE26FA6@MAILSRV3.int.cboss.ru>
From: "Pavel Ivanoff" <Pavel DOT Ivanoff AT cbossgroup DOT com>
To: <cygwin AT cygwin DOT com>
X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0124], KAS/Release
X-Spamtest-Info: Pass through
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k87CvTeJ012912

Hi, all!

Please tell me any suggestions about problem with bash+cygwin written
below. Also below there is an answer about this problem from bash-bug
mailing list.

Best regards.
Pavel Ivanov


According to Pavel Ivanoff on 8/28/2006 12:50 AM:
> Hi!
> 
> We have a very strange and non-repeatable bug in bash came with the
last
> version of cygwin. It appears during execution of a set of long-play
> scripts. These scripts do a lot of work and their normal execution
time
> is 20-40 hours. Sometimes after 20 or more hours of work bash exits as
> it was killed with signal 9. I.e. it exits in the middle of the
scripts
> without saying any word to stdout or stderr. At other times it exits
> with printing stack frame or some other info and the error
description.
> Error description is similar to "C:\cygwin\bin\bash.exe (4588): ***
WFSO
> timed out after longjmp", i.e. this message is different from time to
> time but when it's printed it always has some mentioning of longjmp. I
> can conclude from this that there's some wrong using of longjmp in the
> bash source code...
> This bug is not stable, so there's a lot of times when scripts
finished
> it's work successfully. But as this failure appears and as there were
> periods when it happened often, we want to correct this behaviour very
> much. BTW: the same scripts work in Linux bash and they had never
failed
> there in such way.
> 
> Can you tell us something about this strange behaviour and give some
> advice about healing it?

Yes.  This is not a bash bug, but a Windows limitations, and you are
better off asking for help on the cygwin mailing list, not here, since
there is nothing bash can do about it. Because Windows does not natively
support forking, cygwin must emulate it.  But experience on the cygwin
mailing list has shown that some drivers and antivirus software
installed
in Windows are buggy, and inject threads into every single process in
such
a manner that memory gets fragmented before cygwin even has a chance to
react when forking a process.  The result is the message that the fork
failed because memory was too fragmented to recover, and the solution is
often disabling the problematic driver so that it quits interfering with
cygwin.  But bash is using longjmp correctly, so there is no bug to
report
on this list.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin bash packager

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019