[Mono-bugs] [Bug 662694] [SGEN] crash on extremely basic application

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 18 11:39:27 EST 2011



--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com> 2011-01-18 16:39:25 UTC ---
The problem happens when the glibc dynamic linker meets a DSO that isn't
annotated with stack protexec.

What it does is turn all stack into executable and while doing so,  it chops
0-2 pages from the main thread stack bottom. So sgen chokes on the fact that
part of the stack is no more.

>From looking in my system, this only happens with AOT'd DSOs, everything in
/lib and /usr/lib have this annotation.

On first sight the pages chopped might look like aligning to 8k, but it's
definitely not the case as sometimes it does chop stacks with such alignment.

I didn't bother to figure out who to blame, glibc or kernel, since it's
obviously broken behavior on their side.

The fix is quite simple and will actually speed up AOT loading on linux.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list