Bug 55984 - Thread abort exception during static constructor on Windows
Summary: Thread abort exception during static constructor on Windows
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Vlad Brezae
URL:
Depends on:
Blocks:
 
Reported: 2017-05-04 17:14 UTC by Andi McClure
Modified: 2017-05-22 18:36 UTC (History)
2 users (show)

Tags: 2017-06
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Andi McClure 2017-05-04 17:14:52 UTC
On our Windows 32 and 64 bit lanes:

https://jenkins.mono-project.com/view/All/job/jenkins-testresult-viewer/Test_Result_View/builds-plus.html#LinuxARM32el=Hide&LinuxARM32elFullAOT=Hide&LinuxARM32elPR=Hide&LinuxARM32hf=Hide&LinuxARM32hfFullAOT=Hide&LinuxARM32hfPR=Hide&LinuxARM64=Hide&LinuxARM64FullAOT=Hide&LinuxARM64PR=Hide&LinuxIntel32=Hide&LinuxIntel32Coop=Hide&LinuxIntel32FullAOT=Hide&LinuxIntel32PR=Hide&LinuxIntel64=Hide&LinuxIntel64Bitcode=Hide&LinuxIntel64BitcodeValgrind=Hide&LinuxIntel64Checked=Hide&LinuxIntel64Coop=Hide&LinuxIntel64FullAOT=Hide&LinuxIntel64FullAOTPR=Hide&LinuxIntel64HybridAOT=Hide&LinuxIntel64MCS=Hide&LinuxIntel64MCSPR=Hide&LinuxIntel64PR=Hide&MacIntel32=Hide&MacIntel32PR=Hide&MacIntel64=Hide&MacIntel64PR=Hide&WindowsIntel32=Show&WindowsIntel32PR=Show&WindowsIntel64=Show&WindowsIntel64PR=Show&groupBy=Builds&span=Last7Days

are both seeing a 100% failure where in the MonoTests.runtime.abort-cctor.exe test, a ThreadAbortException is caught while inside of a static constructor. My understanding is TAE is supposed to be delayed until after static constructors finish, and that we previously fixed this on other platforms.

This exact failure was also seen once (but only once) in the last week on our coop Intel32 Linux lane.

Examples

Intel32 Windows

https://jenkins.mono-project.com/job/z/label=w32/4890/testReport/MonoTests/runtime/abort_cctor_exe/
https://jenkins.mono-project.com/job/z/label=w32/4890/testReport/MonoTests/runtime/abort_cctor_exe/

Intel64 Windows

https://jenkins.mono-project.com/job/z/label=w32/4891/testReport/MonoTests/runtime/abort_cctor_exe/

Intel32 Linux Coop

https://jenkins.mono-project.com/job/test-mono-mainline-coop/label=ubuntu-1404-i386/491/testReport/MonoTests/runtime/abort_cctor_exe/
Comment 1 Andi McClure 2017-05-04 17:31:06 UTC
Actually this also appears to be happening 100% on Intel64 Linux Coop. Example

https://jenkins.mono-project.com/job/test-mono-mainline-coop/label=ubuntu-1404-amd64/492/testReport/MonoTests/runtime/abort_cctor_exe/

Not sure if that's the same issue or not
Comment 2 Andi McClure 2017-05-04 17:47:47 UTC
Filed the Intel64 Linux Coop TAE issue as https://bugzilla.xamarin.com/show_bug.cgi?id=55989
Comment 3 Vlad Brezae 2017-05-22 18:36:09 UTC
Fixed the windows failures (055b15e0420a3dced029f95067865703f7fcbef9). Just backported to 2017-04. I think the coop issue was unrelated. I should take a look at it sometime.