Bug 14265 - * Assertion at class.c:5594, condition `!mono_loader_get_last_error ()' not met
Summary: * Assertion at class.c:5594, condition `!mono_loader_get_last_error ()' not met
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-08-27 06:37 UTC by Marek Safar
Modified: 2017-07-07 21:06 UTC (History)
5 users (show)

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


Attachments
Full error log (74.28 KB, text/plain)
2013-12-30 04:25 UTC, Andrea Canciani
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 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 NOT_REPRODUCIBLE

Description Marek Safar 2013-08-27 06:37:32 UTC
Managed exception with details should happen instead of

Can't find custom attr constructor image: mcs.exe mtoken: 0x0a00003d
* Assertion at class.c:5594, condition `!mono_loader_get_last_error ()' not met

Stacktrace:


Native stacktrace:

	0   mono                                0x00125f5b mono_handle_native_sigsegv + 379
	1   mono                                0x001adced sigabrt_signal_handler + 141
	2   libsystem_c.dylib                   0x9170559b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsystem_c.dylib                   0x916a0bdd abort + 167
	5   mono                                0x00389333 monoeg_g_logv + 291
	6   mono                                0x003893c6 monoeg_assertion_message + 54
	7   mono                                0x001c84ca mono_class_create_from_typedef + 362
	8   mono                                0x001ccb76 mono_class_get_full + 278
	9   mono                                0x001ccf9c mono_class_get + 44
	10  mono                                0x0023c250 do_mono_metadata_parse_type + 208
	11  mono                                0x00238846 mono_metadata_parse_type_internal + 774
	12  mono                                0x0023cf0c mono_metadata_parse_mh_full + 892
	13  mono                                0x0020c221 mono_method_get_header + 641
	14  mono                                0x00068340 mono_method_to_ir + 768
	15  mono                                0x0002ca82 mini_method_compile + 4146
	16  mono                                0x0002ead8 mono_jit_compile_method_inner + 1800
	17  mono                                0x0002f9d6 mono_jit_compile_method_with_opt + 774
	18  mono                                0x00030608 mono_jit_runtime_invoke + 856
	19  mono                                0x002c188a mono_runtime_invoke + 170
	20  mono                                0x002c45c7 mono_runtime_exec_main + 631
	21  mono                                0x002c37dc mono_runtime_run_main + 940
	22  mono                                0x000e91bf mono_jit_exec + 239
	23  mono                                0x000e9410 main_thread_handler + 560
	24  mono                                0x000ebb5d mono_main + 7373
	25  mono                                0x0001f0df mono_main_with_options + 815
	26  mono                                0x0001f178 main + 56
	27  mono                                0x0001eda5 start + 53
	28  ???                                 0x00000018 0x0 + 24
Comment 1 Rodrigo Kumpera 2013-09-13 12:41:38 UTC
Test case?
Comment 2 Andrea Canciani 2013-12-30 04:25:00 UTC
Created attachment 5739 [details]
Full error log

I believe I'm hitting the same issue running a clean Mono master (87e820dfe0ba84981060362955c3ea71cedd2022) on Mavericks.

To reproduce:
git clone https://github.com/fsharp/fsharp.git
cd fsharp
git checkout fsharp_31
xbuild ./src/fsharp-proto-build.proj
xbuild ./src/fsharp-library-build.proj

which result in the attached log.

This seems to be caused by a missing assembly (the FSharp.Core.dll library, in my testcase).
If I run the command:
cp lib/bootstrap/4.0/FSharp.Core.* lib/proto/
then the following
xbuild ./src/fsharp-library-build.proj
will succeed.
Comment 3 Andrea Canciani 2013-12-31 08:20:51 UTC
Sorry, I forgot to mention that in the fsharp repo I was checking out 19beee27a6989288f4934442e6456387101700f1.

The missing reference has been fixed in the fsharp repo, but the assertion can (obviously) still be triggered by checking out older ones.
Comment 4 Ludovic Henry 2017-07-07 21:06:23 UTC
Can you still reproduce this bug with latest version of mono? Please feel free to reopen if that is still the case. Thank you.