Bug with Current KJC Compiler
Dalibor Topic
kaffe@rufus.w3.org
Fri, 12 Apr 2002 12:26:48 +0200
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