[kaffe] Reproducible bugs running Freenet under Kaffe

Matthew Toseland toad@amphibian.dyndns.org
Sat, 26 Oct 2002 01:36:01 +0100


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

On Thu, Oct 24, 2002 at 06:23:32PM +0100, Matthew Toseland wrote:
> On Thu, Oct 24, 2002 at 04:52:52PM +0200, Oskar Sandberg wrote:
> > On Thu, Oct 24, 2002 at 03:18:41PM +0100, Matthew Toseland wrote:
> > > Ok, I've got CVS working now, and I get a NullPointerException,
> > > reliably, in java.lang.Class.getResourceAsStream. Attached.
> >=20
> > Class.java throws an NPE if getResourceAsStream is run for a resource
> > that does not exist. This is obviously when looking at the code. I've
> > attached a (trivial) patch.
> Sorry that my threading is out, but my messages haven't come back yet.
> I have found a manageably small test case. I get
> $ rm -f /var/lib/freenet-unstable/tertiary/freenet.log ; kaffe
> freenet.node.Main --paramFile /etc/freenet-unstable/freenet.conf
> Internal error: caught an unexpected exception.
> Please check your CLASSPATH and your installation.
> java/lang/IllegalMonitorStateException
>   at
>   freenet.thread.QThreadFactory$QThread.run(QThreadFactory.java:198)
> Aborted
Is anyone interested in this? The other JVMs are REALLY annoying me,
they simply do not provide an adequate development environment (really
slow plus usable stack traces, or fast but no line numbers, but nothing
in between).
>=20
> QThreadFactory.java is "}", the end of a synchronized block, not the
> beginning - so this is a Kaffe bug not a freenet bug?
> >=20
> > --=20
> >=20
> > Oskar Sandberg
> > oskar@freenetproject.org
>=20
> > Index: libraries/javalib/java/lang/Class.java
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/lang/Class.java,v
> > retrieving revision 1.37
> > diff -c -r1.37 Class.java
> > *** libraries/javalib/java/lang/Class.java	4 Sep 2002 16:08:13 -0000	1.=
37
> > --- libraries/javalib/java/lang/Class.java	24 Oct 2002 14:48:50 -0000
> > ***************
> > *** 367,373 ****
> >    */
> >   public InputStream getResourceAsStream(String name) {
> >     	try {
> > !   		return (getResource(name).openStream());
> >     	}
> >     	catch (IOException e) {
> >     		return null;
> > --- 367,374 ----
> >    */
> >   public InputStream getResourceAsStream(String name) {
> >     	try {
> > !             URL res =3D getResource(name);
> > !             return (res =3D=3D null ? null : res.openStream());
> >     	}
> >     	catch (IOException e) {
> >     		return null;
>=20
>=20
> --=20
> Matthew Toseland
> toad@amphibian.dyndns.org
> amphibian@users.sourceforge.net
> Freenet/Coldstore open source hacker.
> Employed full time by Freenet Project Inc. from 11/9/02 to 11/11/02.
> http://freenetproject.org/



--=20
Matthew Toseland
toad@amphibian.dyndns.org
amphibian@users.sourceforge.net
Freenet/Coldstore open source hacker.
Employed full time by Freenet Project Inc. from 11/9/02 to 11/11/02.
http://freenetproject.org/

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9ueNxmlVGrEH/+qIRArwFAJ9vjwRnJhzjFGd1lGvVops/7I0PHwCeIw8B
/oRoFVEzcgO8QbI2iCfsdXM=
=oRMR
-----END PGP SIGNATURE-----

--rwEMma7ioTxnRzrJ--