[kaffe] Kaffe and Freenet, round (N+1)

Greg Wooledge greg@wooledge.org
Mon Jun 2 16:35:01 2003


--4OpS+d6oOtUQaRm1
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Helmer Kr=E4mer (hkraemer@freenet.de) wrote:

> Hi Greg,

> > > assertion "blk->free !=3D 0" failed: file "mem/gc-mem.c", line 324

> I've just commited a small patch that will hopefully fix this one.

I'm pleased to report that today's Kaffe CVS can run Freenet without
crashing!

However, it is also not working correctly.  The node initializes
properly, and seems to respond to web interface requests (servlets).
However, any time I attempt to view an actual Freenet document
("Freesite") through the web interface, I get an error like this
one in the logfile:

02-Jun-03 7:10:04 PM (freenet.node.Node, QThread-4, ERROR): Error while rec=
eiving message freenet.client.InternalClient$ClientMessageVector@e5be98 in =
state New Internal Get @ 35ff4a474f6a8c98: java.lang.ArithmeticException: N=
egative bit address
java.lang.ArithmeticException: Negative bit address
        at java.lang.Throwable.fillInStackTrace(Throwable.java:native)
        at java.lang.Throwable.<init>(Throwable.java:44)
        at java.lang.Exception.<init>(Exception.java:24)
        at java.lang.RuntimeException.<init>(RuntimeException.java:21)
        at java.lang.ArithmeticException.<init>(ArithmeticException.java:21)
        at java.math.BigInteger.checkIfBitAddressIsNotNegative(BigInteger.j=
ava:177)
        at java.math.BigInteger.testBit(BigInteger.java:358)
        at java.math.BigInteger.intValue(BigInteger.java:531)
        at java.math.BigInteger.longValue(BigInteger.java:543)
        at freenet.client.Document.<init>(Document.java:199)
        at freenet.client.AbstractClientKey.decode(AbstractClientKey.java:1=
97)
        at freenet.client.InternalClient$InternalGetToken.dataFound(Interna=
lClient.java:335)
        at freenet.node.states.request.Pending.sendData(Pending.java:613)
        at freenet.node.states.request.Pending.searchData(Pending.java:648)
        at freenet.node.states.request.Pending.receivedRequestInitiator(Pen=
ding.java:233)
        at freenet.node.states.request.DataPending.receivedMessage(DataPend=
ing.java:69)
        at java.lang.reflect.Method.invoke0(Method.java:native)
        at java.lang.reflect.Method.invoke(Method.java:255)
        at freenet.node.State.received(State.java:126)
        at freenet.client.InternalClient$NewInternalGet.received(InternalCl=
ient.java:525)
        at freenet.node.StateChain.received(StateChain.java:161)
        at freenet.node.StateChain.received(StateChain.java:52)
        at freenet.node.StandardMessageHandler$Ticket.run(StandardMessageHa=
ndler.java:212)
        at freenet.node.StandardMessageHandler$Ticket.received(StandardMess=
ageHandler.java:159)
        at freenet.node.StandardMessageHandler$Ticket.access$0(StandardMess=
ageHandler.java:line unknown, pc 0x1ecb1f1)
        at freenet.node.StandardMessageHandler.handle(StandardMessageHandle=
r.java:68)
        at freenet.Ticker$Event.run(Ticker.java:229)
        at freenet.thread.QThreadFactory$QThread.run(QThreadFactory.java:21=
3)

I also tried downgrading my Freenet build to a month-old one just to
see what would happen; I got the same results.  My logfile is chock
full of these "Negative bit address" errors.

Tech stuff: Freenet build 6043 or 593, Kaffe CVS from 2003-06-02,
on OpenBSD 3.2 x86.  Kaffe was configured with "./configure
--with-includes=3D/usr/local/include --with-libraries=3D/usr/local/lib
--with-engine=3Djit3 --enable-debug".  Freenet was built with jikes 1.14
on a Debian "unstable" x86 box.

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

--4OpS+d6oOtUQaRm1
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE+29+MkAkqAYpL9t8RAsTPAJ9/Jg8/TeZKmH8ZqMXZD9cOhnj6AQCgltzT
kSVMMXCkkDJsAwafBcOrh+M=
=+c9M
-----END PGP SIGNATURE-----

--4OpS+d6oOtUQaRm1--