Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cherusker
Copy link
Contributor

I would like to propose this fix to avoid https://bugzilla.xamarin.com/show_bug.cgi?id=59371 and similar issues in the future. It only targets a part of the whole issue but I think it's really important to have these checks; independent of how #59371 is being fixed.

@dnfclas
Copy link

dnfclas commented Sep 9, 2017

@cherusker,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@cherusker cherusker force-pushed the cherusker-2017-09-09-fix-sigsegv branch from c8f47be to 64381ac Compare September 9, 2017 16:12
@cherusker
Copy link
Contributor Author

Will not be needed if #5549 succeeds.

* we have time (in he finalizer thread).
*/
if (tid == NULL) {
g_warning ("Invalid thread: %p", tid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a g_assert (tid);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would not provide a workaround for this bug: the build would continue to stop early (and would so, on even more platforms than it does so far) since g_assert () definitely stops the program on any platform. https://github.com/luhenry/mono/blob/6928fda088c549648b0483e4e88c1d3dcdfdda30/mono/metadata/gc.c#L998 adds 0 to the list of threads which ends up here. The idea behind using g_warning () was to have something that does not exit the runtime but still sends a strong message/warning.

After all, I really hope that #5549 succeeds somehow. This would make this PR irrelevant as it fixes the bug cleanly at its very root.

@cherusker
Copy link
Contributor Author

These changes are no longer necessary due to #5615

@cherusker cherusker closed this Sep 21, 2017
@cherusker cherusker deleted the cherusker-2017-09-09-fix-sigsegv branch September 21, 2017 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants