Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 8503 [details]
Sample Delphi program (source code)
Got directed here from the Wine bugzilla: https://bugs.winehq.org/show_bug.cgi?id=37438
I have a Delphi sample program (see attachment) that raises and catches an exception while a .NET DLL. is loaded. On Linux/Wine, Mono is used to load this DLL.
When not loading the DLL, everything works fine. When the DLL is loaded, Mono installs its own vectored exception handler that catches the raised exception and returns EXCEPTION_CONTINUE_EXECUTION, bypassing the application's own stack-based exception handler which leads to a crash.
To reproduce: Have Wine and wine-mono installed, run "WINEDEBUG=trace+seh wine Project1.exe" with the sample dll in the same folder as Project1.exe. [Press Enter once after the dll version output to continue the execution of the program.] The program crashes with the message "err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception.". When renaming or removing the DLL, the program does not crash.
Created attachment 8504 [details]
Sample Delphi program (executable)
Created attachment 8505 [details]
DLL for the sample program, to be placed in the same directory
Created attachment 8506 [details]
Log file (trace+seh) of two executions of the sample program, one without the DLL, one with the DLL
Cannot reproduce any more with wine-1.9.7-156-g1c201a9 + corresponding wine-mono.