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

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


--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

> If you want, you can download the JanosVM and try freenet out on it.  I=
=20
> changed the threading system in the last release and if its more reliable=
=20
> 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:

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

The full set of errors and warnings is:

gcc -DTRANSLATOR -DJIT3 -DKVER=3D\"1.0\" -I. -I. -I../../../../config -I../=
../../../include -I. -I. -I../.. -I./../.. -I../../../../config -I../../../=
../config -I../../../../include -I../../../../include -I../../../../kaffe -=
DKVER=3D\"1.0\" -I/usr/local/src/janosvm-1.0a/./kaffe/kaffevm -I/usr/local/=
src/janosvm-1.0a/./kaffe/kaffevm/systems/unix-jthreads2 -I../../../../confi=
g -I../../../../include -I/usr/local/include -g -O2 -Wall -Wstrict-prototyp=
es -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_FRA=
ME'
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.

--=20
Greg Wooledge                  |   "Truth belongs to everybody."
greg@wooledge.org              |    - The Red Hot Chili Peppers
http://wooledge.org/~greg/     |

--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (OpenBSD)

iD8DBQE+nC/DkAkqAYpL9t8RAg8VAJ93pfLZQ+O31U8swsGilpYsdyBwtACgminV
0BjayMLJzeI+0ummQj2slS4=
=eXS8
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--