delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/13/18:07:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,TW_GJ,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D58643A.4040400@cornell.edu>
Date: Sun, 13 Feb 2011 18:07:38 -0500
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Preremove/postinstall scripts fail with snapshot installed
References: <4D55A88E DOT 3090301 AT cornell DOT edu> <20110212142555 DOT GB5682 AT calimero DOT vinschen DOT de> <4D56A002 DOT 2090707 AT cornell DOT edu> <4D56A7D5 DOT 6010104 AT cornell DOT edu> <20110212164415 DOT GB3264 AT calimero DOT vinschen DOT de> <20110212181224 DOT GC3264 AT calimero DOT vinschen DOT de> <20110213162449 DOT GA20855 AT calimero DOT vinschen DOT de> <4D5812DD DOT 8030600 AT cornell DOT edu>
In-Reply-To: <4D5812DD.8030600@cornell.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On 2/13/2011 12:20 PM, Ken Brown wrote:
> Works for me on W7 64 bit with KB 2393802 installed.

BTW, when I said that it works, I was talking about the original bug 
that I reported about preremove/postinstall scripts.  But I just now 
tested removing an in-use directory, and I was surprised by what 
happened.  Maybe I just don't understand how this is supposed to work. 
I have two bash shells open, with prompts $1 and $2.

In shell 1:

$1 mkdir /tmp/foo
$1 cd /tmp/foo

In shell 2:

$2 rmdir /tmp/foo
$2 ls /tmp/foo
ls: cannot access /tmp/foo: No such file or directory

Back to shell 1:

$1 ls
       0 [main] bash 2220 exception::handle: Exception: 
STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=6109352A
eax=00000000 ebx=0075A0E8 ecx=77B83442 edx=00732C14 esi=00000001 
edi=007309E8
ebp=0028CD08 esp=0028CCC0 program=C:\cygwin\bin\bash.exe, pid 2220, 
thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
0028CD08  6109352A  (61241A3C, 00000001, 00000000, 0028CD94)
0028CD28  6109608F  (61241A3C, 0028CE64, 610068B0, 61004AF9)
0028CD58  61006B31  (00000000, 0028CD94, 610068B0, 7EFDE000)
End of stack trace

[repeated many more times...]

15641011 [main] bash 4588 exception::handle: Exception: 
STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=6109352A
eax=00000000 ebx=0081A0E8 ecx=77B83442 edx=007F2C14 esi=00000001 
edi=007F09E8
ebp=0028CD08 esp=0028CCC0 program=C:\cygwin\bin\bash.exe, pid 4588, 
thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
0028CD08  6109352A  (61241A3C, 00000001, 00000000, 0028CD94)
0028CD28  6109608F  (61241A3C, 0028CE64, 610068B0, 61004AF9)
0028CD58  61006B31  (00000000, 0028CD94, 610068B0, 7EFDE000)
End of stack trace
15643878 [main] -bash 2804 fork: child -1 - died waiting for longjmp 
before initialization, retry 0, exit code 0x600, errno 11
-bash: fork: Resource temporarily unavailable

Is this to be expected?  I admit that it's stupid to try to list a cwd 
that no longer exists, but I would have expected a friendlier response.

Ken

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

- Raw text -


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