Re: Random fork failures
WJFFM, both. There's something in your environment which isn't in mine. Did you set $CYGWIN? ~$ echo $CYGWIN nodosfilewarning That's a clean installation. what can cause this kind of crashes? -- 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
Re: Random fork failures
I did a little investigation - when the process hangs, I took the backtrace with process explorer. Process explorer does not know anything about cygwin debug symbols, so it just give an arbitrary func + offset. Then I used gdb to find out the real function: sync_proc_pipe doing yield in an endless loop. Just to complete the mail, This is the stack as I get from process explorer (with my additions at cygwin1.dll frames): ntkrnlpa.exe!KeSetEvent+0x2a1 ntkrnlpa.exe!KeDelayExecutionThread+0x5cc ntkrnlpa.exe!KeWaitForMutexObject+0x393 ntkrnlpa.exe!KiDeliverApc+0x664 halmacpi.dll!KfRaiseIrql+0xcb halmacpi.dll!KeRaiseIrqlToSynchLevel+0x8f halmacpi.dll!HalEndSystemInterrupt+0x67 halmacpi.dll!HalInitializeProcessor+0xae8 ntkrnlpa.exe!ZwYieldExecution+0xabd ntdll.dll!KiFastSystemCallRet autochk.exe+0x5bcbc ntdll.dll!KiFastSystemCallRet cygwin1.dll!abort+0x79bc (0x610cdebc ) cygwin1.dll!abort+0x805f (0x610ce55f ) cygwin1.dll!getenv+0x5fef (0x61029dbf ) _test.exe+0x973e _test.exe+0x9803 _test.exe+0x9961 _test.exe+0x14d4 _test.exe+0x15ce cygwin1.dll!dll_crt0__FP11per_process+0x708 cygwin1.dll!setprogname+0x32a6 cygwin1.dll!setprogname+0x334b _test.exe+0x47432 _test.exe+0x101a kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0xef ntdll.dll!RtlInitializeExceptionChain+0xc2 -- 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
Re: Random fork failures
On 11/7/2011 12:02, Corinna Vinschen wrote: I tested both scripts on W7 32 and 2K8R2 against the latest snapshot, as well as against self-built current Cygwin CVS, built with and without optimization. Both scripts run fine in all scenarios. on a clean cygwin installation (1.7.9) and new cygwin1.dll they also work for me. This one does not: touch a install a /etc/b rxvt disappear -- 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
Re: Random fork failures
Example 1: #!/usr/bin/perl use POSIX qw(getcwd); getcwd(); 1; Example 2: #!/usr/bin/perl use Scalar::Util qw(looks_like_number); looks_like_number("1"); 1; Both end up with: Segmentation fault (core dumped) Well, I tried these two examples on a clean cygwin installation, with new cygwin1.dll and they work. There are still many problems. I am working on a small, self-contained example. -- 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
Re: Random fork failures
I will appreciate any advice, how can I solve this problem. Simple, self-contained testcases, preferredly in plain C, or simple scripts in case the problem only occurs in a script language, which allow to reproduce the problem. Those would be most helpful. Corinna Example 1: #!/usr/bin/perl use POSIX qw(getcwd); getcwd(); 1; Example 2: #!/usr/bin/perl use Scalar::Util qw(looks_like_number); looks_like_number("1"); 1; Both end up with: Segmentation fault (core dumped) -- 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