[Mono-list] Nasty x86_magic_trampoline gremlin: ambiguous call sequences

Paolo Molaro lupus@ximian.com
Sun, 24 Feb 2002 14:04:02 +0100

On 02/23/02 Eric Kidd wrote:
> This error occurs when x86_magic_trampoline is trying to decode the
> instruction stream, and finds that 'reg' == 4 (the code for X86_ESP,
> which is complete nonsense in a relative jump instruction).
> I've attached some ugly C# source code which causes the mono-0.9 release
> to die in this fashion.  You may not be able to trigger it; this bug is
> heavily dependent on where things are located in memory.

Funnyly enough I found this bug this morning, too, while adding
support for tracking a few statistics in the JIT. At the fifth counter
I added, it started segfaulting...
Your test program works for me after the fix (but it did work before
that, too). My fix is in cvs now, let me know if it works for you.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better