Re: Bug with Current KJC Compiler
On Wednesday, 10. April 2002 16:41, Gwenole Beauchesne wrote: > On Tue, 2 Apr 2002, Brent Fulgham wrote: > > Administrator@BFULGHAM1 ~/java > > $ javac PlusPlusTest.java > > assertion "!INTS_DISABLED()" failed: file "exception.c", line 386 > > Aborted (core dumped) > > Interesting. I am sorry but I don't have a solution. If I remember > correctly, I also encountered that problem while working on the IA-64 port > but finally I came up with a working version when I used a newer compiler > (gcc-3.0.2) and a slightly different patch for jmp_buf save/restore. googling around I found these two posts in our archives: rpmfind.net/tools/Kaffe/messages/0238.html rpmfind.net/tools/Kaffe/messages/0239.html I'll cite from Godmar's response: "this error nsg most likely indicates a segfault within a section of code where interrupts are disabled. If the code segfaults there, it will try to throw a nullpointerexception which will trigger this assertion failure. No exceptions should ever be thrown from code that executes in a section in which interrupts are disabled." So you seem to have found a bug in kaffe's virtual machine code. Congratulations :) You might want to read FAQ/FAQ.debugging and FAQ/FAQ.jsignal if you want to fix the bug. dalibor topic
Re: Bug with Current KJC Compiler
From the error message below I can see that an assertion fails in a part of Kaffe that is written in C. Since KJC is entirely written in Java, it cannot be the reason of this problem - at best it demonstrates a bug elsewhere. Best regards, Thomas Gwenole Beauchesne wrote: > On Tue, 2 Apr 2002, Brent Fulgham wrote: > > >>Administrator@BFULGHAM1 ~/java >>$ javac PlusPlusTest.java >>assertion "!INTS_DISABLED()" failed: file "exception.c", line 386 >>Aborted (core dumped) >> > > Interesting. I am sorry but I don't have a solution. If I remember > correctly, I also encountered that problem while working on the IA-64 port > but finally I came up with a working version when I used a newer compiler > (gcc-3.0.2) and a slightly different patch for jmp_buf save/restore. > > It would be nice if the problem was actually the KJC compiler. ;-) > > Bye, > Gwenole. > >
Re: Bug with Current KJC Compiler
On Tue, 2 Apr 2002, Brent Fulgham wrote: > Administrator@BFULGHAM1 ~/java > $ javac PlusPlusTest.java > assertion "!INTS_DISABLED()" failed: file "exception.c", line 386 > Aborted (core dumped) Interesting. I am sorry but I don't have a solution. If I remember correctly, I also encountered that problem while working on the IA-64 port but finally I came up with a working version when I used a newer compiler (gcc-3.0.2) and a slightly different patch for jmp_buf save/restore. It would be nice if the problem was actually the KJC compiler. ;-) Bye, Gwenole.
RE: Bug with Current KJC Compiler
> Under the new KJC (from their website), it works a bit better: > > Administrator@BFULGHAM1 ~/java > $ javac PlusPlusTest.java > assertion "!INTS_DISABLED()" failed: file "exception.c", line 386 > Aborted (core dumped) > > I'm not sure which is worse -- however the second case > indicates an issue with the JVM so might be of more interest > to us as time passes. > Actually, it seems to be related to time. If I run in verbose mode, everything builds just fine... Administrator@BFULGHAM1 ~/java $ javac OldTest.java assertion "!INTS_DISABLED()" failed: file "exception.c", line 386 Aborted (core dumped) Administrator@BFULGHAM1 ~/java $ javac -v OldTest.java [ start compilation in verbose mode ] [ parsed OldTest.java in 344 ms ] [ checked interfaces in 273 ms ] [ checked body of OldTest.java in 188 ms ] [ optimized and generated OldTest in 187 ms ] [ compilation ended ] -Brent