Bug 35936

Summary: Itermittent crash/hang with MonoTests.Mono.Unix.UnixSignalTest.TestWaitAny
Product: [Mono] Runtime Reporter: Andi McClure <andi.mcclure>
Component: GeneralAssignee: Andi McClure <andi.mcclure>
Status: RESOLVED FIXED    
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Andi McClure 2015-11-17 11:55:09 UTC
The Mono.Posix test are periodically failing on the builders. The reason for this is that MonoTests.Mono.Unix.UnixSignalTest.TestWaitAny sometimes crashes or hangs, at least on OS X. I have observed this on the builders running Yosemite and on my laptop running El Capitan, with Mono versions in the 4.3.1-4.4 range. It can quickly be observed by running:

while (cd mcs/class/Mono.Posix MONO_PATH=../../../mcs/class/lib/net_4_x ../../../runtime/mono-wrapper --debug ../../class/lib/net_4_x/nunit-console.exe  Mono.Posix_test_net_4_x.dll -noshadow -labels  -exclude=NotOnMac,NotWorking,ValueAdd,CAS,InetAccess -run=MonoTests.Mono.Unix.UnixSignalTest.TestWaitAny); do :; done

It will usually happen after about thirty repetitions. On attaching LLDB, the stack where the crash is reported as occurring will always be found to be trashed; if the application is run in LLDB to start, the problem does not appear to reproduce at all.
Comment 1 Andi McClure 2015-11-24 14:07:08 UTC
The SIGSEGV seen here is addressed by PR #2264.