[Mono-list] ConvertTest reveals runtime bug

Krister Hansson ds99krha@thn.htu.se
Sat, 18 May 2002 08:11:22 +0200


I hope you had better luck getting this to run.  If not, here's the
backtrace I get in gdb:

(gdb) r NUnitConsole_mono.exe
MonoTests.System.ConvertTest,corlib_linux_test.dll 
Starting program: /home/nick/testme/mono/mono/jit/mono
NUnitConsole_mono.exe MonoTests.System.ConvertTest,corlib_linux_test.dll
[New Thread 1024 (LWP 5932)]
 .
(process:5932): ** ERROR **: file codegen-x86.c: line 5792
(mono_burg_emit_254): should not be reached
aborting...

------------------

I've got ConvertTest running. It 'turned out that commenting out the following line in SetUp() was enough

tryDec = 1234.2345m;   // tryDec is a decimal

I can't make out why that makes it fail. Wrote a program where I used the same initiation of the decimal and it ran fine.

Any ideas why it behaves like this

/Krister