Bug 18854 - test-mono-linked-list-set unit test fails, possible soluiton
Summary: test-mono-linked-list-set unit test fails, possible soluiton
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-04-08 09:14 UTC by Dennis Kingsley
Modified: 2014-04-12 00:09 UTC (History)
5 users (show)

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:

Description Dennis Kingsley 2014-04-08 09:14:39 UTC
When running "make check" on the current head of the main branch the unit test "test-mono-linked-list-set" fails with the following message "* Assertion at hazard-pointer.c:358, condition `small_id == i' not met".

I have done some sleuthing and it looks like  mono_threads_init in ./mono/utils/mono-threads.c near line 326 there is a call to mono_thread_smr_init.

Further looking at the unit test /mono/mono/unit-tests/test-mono-linked-list-set.c near line 150 in the main function the mono_threads_init is called and then the mono_threads_smr_init function is called. It is this second call the mono_threads_smr_init that fails.

Commenting out the line with mono_threads_smr_init in the unit test seems to correct the problem. 

This test has been failing on our RHEL 5.3 system for awhile (since Mono 3.0.x) and I finally got around to looking for the source.
Comment 1 Zoltan Varga 2014-04-12 00:09:05 UTC
Got fixed by 78a64f733153a029f7079064110e7b37dd79cbb6.