[Mono-dev] Patch sgen-stw.c update_current_thread_stack windows mono 3.2.1

Zoltan Varga vargaz at gmail.com
Mon Aug 26 00:58:43 UTC 2013


Hi,

  This was already fixed in a different way in mono master.

             Zoltan


On Sun, Aug 25, 2013 at 4:02 PM, Vardar Sahin <sakirsoft at gmail.com> wrote:

> Hello Mono Team,
>
> i found a bug which i want to submit a patch for.
>
> The bug is in update_current_thread_stack in sgen-stw.c.
>
> This line does not work as intended.
>
> ARCH_STORE_REGS (reg_ptr);
> memcpy (&info->regs, reg_ptr, sizeof (info->regs));
>
> for some reason the pointer address gets the content of ebi register of
> the cpu. So after
> ARCH_STORE_REGS (reg_ptr);
>
> reg_ptr directs to the content of ebi an loses its orginal pointer
> address.
>
> Before that line reg_ptr  is defined as fallows:
> void *reg_ptr = cur_thread_regs;
>
> In theory it should work that way. But it does not.
>
> The fix is pretty simple use cur_thread_regs instand of reg_ptr  and it
> works.
>
> Best regards
> Sahin Vardar
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130826/cf756884/attachment.html>


More information about the Mono-devel-list mailing list