[kaffe] assertion "!INTS_DISABLED()" failed: file "exception.c", line 398

Greg Wooledge greg at wooledge.org
Tue Apr 15 09:12:01 PDT 2003


Timothy Stack (stack at cs.utah.edu) wrote:

> If you want, you can download the JanosVM and try freenet out on it.  I 
> changed the threading system in the last release and if its more reliable 
> I can merge the new threading stuff back into kaffe at some point.

janosvm-1.0a does not compile on OpenBSD.  The immediate problem is in
unix-jthreads2/jthread.c, line 428: `si' undeclared.  But as far as I
can see from a casual inspection, the problem is deeper and has something
to do with BP_OFFSET:

./ChangeLog:    * config/i386/linux/md.h: BP_OFFSET is a requirement now
./config/i386/freebsd2/md.h:#undef  BP_OFFSET
./config/i386/freebsd2/md.h:#define BP_OFFSET   3
./config/i386/linux/md.h:#define BP_OFFSET 3

The full set of errors and warnings is:

gcc -DTRANSLATOR -DJIT3 -DKVER=\"1.0\" -I. -I. -I../../../../config -I../../../../include -I. -I. -I../.. -I./../.. -I../../../../config -I../../../../config -I../../../../include -I../../../../include -I../../../../kaffe -DKVER=\"1.0\" -I/usr/local/src/janosvm-1.0a/./kaffe/kaffevm -I/usr/local/src/janosvm-1.0a/./kaffe/kaffevm/systems/unix-jthreads2 -I../../../../config -I../../../../include -I/usr/local/include -g -O2 -Wall -Wstrict-prototypes -DJSKED_PRIORITY -c jthread.c -Wp,-MD,.deps/jthread.TPlo  -fPIC -DPIC -o jthread.lo
In file included from thread-impl.h:17,
                 from ../../locks.h:17,
                 from ../../../../kaffe/misc/sectionFile.h:57,
                 from ../../../../kaffe/janosvm/resource.h:27,
                 from ../../../../kaffe/janosvm/memResource.h:22,
                 from ../../gc.h:274,
                 from jthread.c:19:
jthread.h: In function `jthread_get_frame_pointer':
jthread.h:465: warning: implicit declaration of function `GET_BP'
jthread.h:465: warning: assignment makes pointer from integer without a cast
jthread.h:473: warning: assignment makes pointer from integer without a cast
jthread.c: In function `jthreadSyncHandler':
jthread.c:423: warning: implicit declaration of function `EXCEPTIONSP'
jthread.c:424: warning: implicit declaration of function `EXCEPTIONBP'
jthread.c:428: `si' undeclared (first use in this function)
jthread.c:428: (Each undeclared identifier is reported only once
jthread.c:428: for each function it appears in.)
jthread.c:448: warning: implicit declaration of function `EXCEPTION_ALT_FRAME'
jthread.c: In function `jthread_exit':
jthread.c:597: warning: `noreturn' function does return
gmake: *** [jthread.lo] Error 1

Since `si' is not declared as a local variable, or a file-scope
variable, it must be magically expanded from one of those all-caps
macros which are all over the place.

-- 
Greg Wooledge                  |   "Truth belongs to everybody."
greg at wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030415/5457ee2c/attachment-0003.pgp 


More information about the kaffe mailing list