[Mono-bugs] [Bug 396219] Mono runtime running in emacs shell crashes with ( mono_setup_altstack): assertion failed: (gaddr == tls->stack_ovf_guard_base )

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 1 11:31:10 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=396219

User gnorton at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=396219#c2


Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gnorton at novell.com




--- Comment #2 from Geoff Norton <gnorton at novell.com>  2008-06-01 09:31:09 MDT ---
I looked into this.  The issue here is the child process in the emacs shell
isn't paged aligned for staddr.  Adding a:

        staddr = (guint8*)((int)staddr & ~(mono_pagesize () - 1));

before setting tls->stack_ovf_guard_base fixes the problem.

Paolo,

  Is this the correct way to fix this (the mmap call in mono_valloc was failing
on the non-aligned address).  Also, the assert there looks dangerous.  If we're
on a machine without mmap mono_valloc falls thru to a malloc call, meaning the
pointers will never match.  Is it possible to have a machine without mmap and
with sigaltstack tho?


-- 
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