[Mono-list] Possible mono bug

Dietmar Maurer dietmar@ximian.com
09 Nov 2002 14:21:40 +0100


This looks like a register allocation bug. I would appreciate it if you
try to locate the code which produces the error, write a small test file
to reproduce the bug and post a bug report.

- Dietmar

On Sat, 2002-11-09 at 13:43, David Sheldon wrote:
> When I try to run the tests for System.Xml, I get an assertion failure
> in mono. This is in cvs version checked out this morning. How would I go
> about working out which test is causing this to fail?
> 
> David
> 
> make[1]: Entering directory
> `/home/sheldon/mono/cvs/mcs/class/System.XML/Test'
> MONO_PATH=/usr/local/lib/ mono ../../../class/lib/NUnitConsole_mono.exe
> MonoTests.System.Xml.AllTests,System.XML_linux_test.dll
> .....................................E....
> .........................E.E........E.......
> .........................................
> .........................................
> .........................................
> .........................................
> ......................
> ** ERROR **: file emit-x86.c: line 1001 (arch_allocate_regs): assertion
> failed:
> (cfg->rs->free_mask == 0xffffffff)
> aborting...
> 
> If I enable DEBUG_REGALLOC then the following debug is generated by the
> final arch_allocate_regs. Unfortunately I don't understand sufficient
> about how to JIT code works in order to debug it.
> 
> arch_allocate_regs start 0:1 ffffffff
> tree_allocate_regs start 16 ffffffff 1 0
> tree_allocate_regs start 115 ffffffff 6 0
> tree_allocate_regs start 115 ffffffff 3 0
> tree_allocate_regs start 115 ffffffff 4 0
> tree_allocate_regs start 115 ffffffff 4 0
> tree_allocate_regs start 9 ffffffff 4 0
> tree_allocate_regs end 9 fffffffe
> tree_allocate_regs end 115 fffffffe
> tree_allocate_regs start 115 fffffffe 4 0
> tree_allocate_regs start 9 fffffffe 4 0
> tree_allocate_regs end 9 fffffffc
> tree_allocate_regs end 115 fffffffc
> tree_allocate_regs end 115 fffffffc
> tree_allocate_regs end 16 fffffffe
> arch_allocate_regs end 0:1 fffffffe
> 
> 
> 
> -- 
>          I wanna torture you. I used to love it, and it's been
>           such a long time. I mean, the last time I tortured
>              someone, they didn't even *have* chainsaws.
>                 -- Angelus, "Buffy The Vampire Slayer" - Becomming II
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list