Mail Archives: cygwin/2006/08/24/23:12:52
------=_Part_888_1091803.1156475539316
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
>
> Now, the analysis: according to strace, the spawning process (e.g., the
> shell) does receive the Windows exception C0000135 (a.k.a.
> STATUS_DLL_NOT_FOUND), handles it, and uses it to set exit code to 0x35.
> My guess is that neither cmd.exe nor the Windows launcher install a
> handler for the exceptions, and thus the default Windows handler (which
> creates a pop-up) is used.
>
Hi, All:
I met the same problem after I installed mozilla gecko-sdk.
I used strace and got some interesting results:
a.) run with the whole path.
$ strace.exe /cygdrive/d/dev/gecko-sdk/bin/xpidl.exe
strace.exe: error creating process D:/dev/cygwin/cygdrive/d/dev/gecko-sdk/bin/xp
idl.exe, (error 3)
b.) goto that dir, then run
$ strace.exe ./xpidl.exe
--- Process 1736, exception C0000135 at 7C984ED1
ypwang AT ypwang /cygdrive/d/dev/gecko-sdk/bin
It will pop-pu the "cannot find Xxx.dll " windows.
These strange behaviour is caused by path.cc in utils. When given a's
path, it can not parse it correctly (ONLY when with /cygdrive/xxx,
/usr/bin/xxx is OK.) . the attachment shows the evidence.
So It seems cygwin can handle the exception (at least in strace). It
is maybe a question to the bash 3.1.
Best Regards.
Andy
------=_Part_888_1091803.1156475539316
Content-Type: text/plain; name=strace-2behaviour.txt; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_er9zg3ze
Content-Disposition: attachment; filename="strace-2behaviour.txt"
KGdkYikgciAvY3lnZHJpdmUvZC9kZXYvZ2Vja28tc2RrL2Jpbi94cGlkbC5l
eGUNClN0YXJ0aW5nIHByb2dyYW06IC90bXAvY3lnd2luL2N5Z3dpbi1zbmFw
c2hvdC0yMDA2MDgxOC0xL3dpbnN1cC91dGlscy9zdHJhY2UuZXhlDQogL2N5
Z2RyaXZlL2QvZGV2L2dlY2tvLXNkay9iaW4veHBpZGwuZXhlDQpMb2FkZWQg
c3ltYm9scyBmb3IgL2N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AwMDAxMzUgYXQgN0M5ODRFRDENCjY1OCAgICAgICAg
ICAgaWYgKCFDb250aW51ZURlYnVnRXZlbnQgKGV2LmR3UHJvY2Vzc0lkLCBl
di5kd1RocmVhZElkLCBzdGF0dXMpKQ0KKGdkYikNCg0KICANCiAgPT09PT09
PT09PSBpbiBjcmVhdGVfY2hpbGQNCihnZGIpIG4NCjMyOCAgICAgICByZXQg
PSBDcmVhdGVQcm9jZXNzICgwLCBvbmVfbGluZS5idWYsIC8qIGNvbW1hbmQg
bGluZSAqLw0KKGdkYikNCjMzNSAgICAgICBpZiAoIXJldCkNCihnZGIpIHAg
cmV0DQokMyA9IDENCihnZGIpIG4NCjMzOSAgICAgICBDbG9zZUhhbmRsZSAo
cGkuaFRocmVhZCk7
------=_Part_888_1091803.1156475539316
Content-Type: text/plain; charset=us-ascii
--
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/
------=_Part_888_1091803.1156475539316--
- Raw text -