Bug 60765 - Running Console Application Causes Crash with Exception 0xc0000409 in Module mono-2.0-sgen.dll. Does not crash in mono 3.8
Summary: Running Console Application Causes Crash with Exception 0xc0000409 in Module ...
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: 5.4 (2017-06)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-20 01:22 UTC by john
Modified: 2017-11-21 12:25 UTC (History)
3 users (show)

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


Attachments
Executable files to reproduce Crash Behaviour (568.43 KB, application/x-zip-compressed)
2017-11-20 01:22 UTC, john
Details


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 for Bug 60765 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description john 2017-11-20 01:22:45 UTC
Created attachment 25756 [details]
Executable files to reproduce Crash Behaviour

When running on the 32 bit version of Mono on Windows, and testing against Mono 5.4, 5.2 and one of the 4.x series of builds, we are getting a hard crash from Mono.exe.

When running against the latest 3.8.x version of Mono, it does not crash.

These are the details of the error in Windows Event Viewer.

Faulting application name: mono.exe, version: 0.0.0.0, time stamp: 0x59e753bb
Faulting module name: mono-2.0-sgen.dll, version: 0.0.0.0, time stamp: 0x59e753b9
Exception code: 0xc0000409
Fault offset: 0x0020d86f
Faulting process id: 0x17a8
Faulting application start time: 0x01d36199d1b1d4af
Faulting application path: C:\Program Files (x86)\Mono\bin\mono.exe
Faulting module path: C:\Program Files (x86)\Mono\bin\mono-2.0-sgen.dll
Report Id: 1039b8e1-cd8d-11e7-92c0-00155d013502

The attachment contains a series of files that replicate the program.

If you extract the files to a directory, and run either test1.bat or mono irdbImport.exe it will trigger the crash.

You will need, the irdbImport.exe, irdb.dll and Antlr4.Runtime.net40.dll files in the directory.

irdbImport.exe & irdb.dll were generated using Visual Studio 2013 and are Dot Net 4.0 targetted DLLs.
 

If it runs correctly the program should produce the following output.
irdbImport requires at least 1 parameter. The first parameter corresponds to the name of the file to import
Comment 1 john 2017-11-20 16:20:27 UTC
Platform with the crash was 32 bit version of Mono on Windows. Does not crash on Linux.
Comment 2 john 2017-11-21 12:25:40 UTC
Runs okay on Mac 32 bit ( Mono 5.4 )
Fails on Mac 64 bit with error "Abort trap: 6"