[Mono-dev] mono_thread_get_stack_bounds vs NetBSD/powerpc

Zoltan Varga vargaz at gmail.com
Wed Sep 12 07:45:24 EDT 2007


Hi,

You can add an if (*staddr + *stsize != 0) before the assert.

        Zoltan

On 9/9/07, Magnus Henoch <mange at freemail.hu> wrote:
> I'm trying to build Mono from SVN on NetBSD/powerpc.  I will submit
> my patches later, but now I need to ask about the assertion in
> mono_thread_get_stack_bounds in mono/metadata/threads.c:
>
> g_assert ((current > *staddr) && (current < *staddr + *stsize));
>
> On my system the stack is right at the top of virtual memory, so
> *staddr + *stsize wraps around to 0, and the assertion fails.  What
> should this assertion really look like?
>
> Magnus
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list