Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: ericblake AT comcast DOT net (Eric Blake) To: cygwin AT cygwin DOT com Subject: strace bug on Win98? Date: Sat, 09 Jul 2005 16:33:32 +0000 Message-Id: <070920051633.19330.42CFFC5C000073CD00004B8222007510900A050E040D0C079D0A@comcast.net> X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0 I was trying to use 'strace readlink n', where n was created by 'ln -s //none n', to see what happens in the background[*]. But strace popped up a Windows 98 box that says "Readlink This program has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor. READLINK caused an invalid page fault in module CYGWIN1.DLL at 015f:61017e04. Registers: EAX=0089f074 CS=015f EIP=61017e04 EFLGS=00010246 EBX=0089ee08 SS=0167 ESP=0069ffac EBP=006a03b4 ECX=006a045c DS=0167 ESI=8180d538 FS=4ecf EDX=bff76859 ES=0167 EDI=006a0484 GS=0000 Bytes at CS:EIP: 89 85 24 fc ff ff 0f 85 b0 00 00 00 8b 15 a8 2e Stack dump:" Just before the popup box, the strace output reached: ... 10534 6048852 [main] readlink 584935 proc_terminate: nprocs 0 20588 6069440 [main] readlink 584935 proc_terminate: leaving 18069 6087509 [main] readlink 584935 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0 11395 6098904 [main] readlink 584935 __to_clock_t: total 00000000 00000000 4998 6103902 [main] readlink 584935 __to_clock_t: dwHighDateTime 0, dwLowDateTime 0 4388 6108290 [main] readlink 584935 __to_clock_t: total 00000000 00000000 58744 6167034 [main] readlink 584935 pinfo::maybe_set_exit_code_from_windows: pid 584935, exit value - old 0x80000000, windows 0xDEADBEEF, cygwin 0x80000000 I'm wondering if there is some sort of cygwin1.dll or strace.exe bug that is causing such a bad crash on exit of the traced program. I have even had a few Blue Screens of Death when trying to repeat the formula. [*]I was trying to see whether cygwin tries to validate the existence of //none, causing a delay until the network timeout, even though for readlink it should be a quick return of the link contents without testing for existence. -- Eric Blake -- 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/