Bug 364 - Mysterious runtime crashes
Summary: Mysterious runtime crashes
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Linux
: Normal enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-08-22 17:29 UTC by Mark Probst
Modified: 2018-01-18 20:47 UTC (History)
4 users (show)

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

Test case (689 bytes, text/plain)
2011-08-22 17:29 UTC, Mark Probst

Description Mark Probst 2011-08-22 17:29:05 UTC
Created attachment 164 [details]
Test case

This crashes the runtime in various ways at least on Linux/AMD64 (it's ok if it throws InvalidOperationException).

When running on SGen it happens now and then that an object's vtable pointer appears to be overwritten.  In those cases, however, the value in memory is often correct at the point of crash, but the value that was read from memory is faulty.  The lower 32 bits of the read value are usually correct as well, though.

In other cases it asserts in mono_arch_find_jit_info() in exceptions-amd64.c because an LMF's previous_lmf field has the 2 bit set even though the soft debug code is never called.  Setting a watchpoint to catch an offending write to the mono_lmf TLS variable makes it not happen.

Sometimes it crashes by jumping to non-code.
Comment 1 Rodrigo Kumpera 2012-04-23 00:01:35 UTC
This test will fail because suspend/resume/abort are not synchronous in mono so you can't safely pair Suspend/Resume and expect it to work.
Comment 2 Ludovic Henry 2018-01-18 20:47:54 UTC
I cannot reproduce with Mono (master/117468d740a)

Note You need to log in before you can comment on or make changes to this bug.