[kaffe] Kaffe vs. Freenet round (N+2): nio

Greg Wooledge greg@wooledge.org
Mon Jun 16 17:29:01 2003


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

20:12  greycat> is nio going to be mandatory in 0.5.2?  this is going
                to screw kaffe users....
20:13  toad_> greycat: yes. kaffe users can fix the bugs.


$ ln -sf freenet-nio-20030616.jar freenet.jar
$ java freenet.node.Main
java.lang.UnsatisfiedLinkError: Failed to locate native function:       gnu=
/java/nio/SocketChannelImpl.SocketCreate()I
        at gnu.java.nio.ServerSocketChannelImpl.<init>(ServerSocketChannelI=
mpl.java:70)
        at gnu.java.nio.SelectorProviderImpl.openServerSocketChannel(Select=
orProviderImpl.java:75)
        at java.nio.channels.ServerSocketChannel.open(ServerSocketChannel.j=
ava:90)
        at freenet.transport.TCP$privServerSocketFactory.createServerSocket=
(TCP.java:129)
        at freenet.transport.tcpNIOListener.startListener(tcpNIOListener.ja=
va:62)
        at freenet.transport.tcpNIOListener.<init>(tcpNIOListener.java:50)
        at freenet.transport.tcpNIOListener.<init>(tcpNIOListener.java:36)
        at freenet.interfaces.PublicNIOInterface.<init>(PublicNIOInterface.=
java:46)
        at freenet.node.Main.startNode(Main.java:1292)
        at freenet.node.Main.main(Main.java:868)
Dumping live threads:
`QThread-6' tid 0xc51010, status SUSPENDED flags=20
 blocked@0x10f2cd8 (0xc51010->|)=20
`QThread-5' tid 0xc46010, status SUSPENDED flags=20
 blocked@0x10f2d08 (0xc46010->|)=20
`QThread-4' tid 0xc17010, status SUSPENDED flags=20
 blocked@0x10f2d38 (0xc17010->|)=20
`QThread-3' tid 0xc01010, status SUSPENDED flags=20
 blocked@0x10f2d68 (0xc01010->|)=20
`QThread-2' tid 0xbee010, status SUSPENDED flags=20
 blocked@0x10f2d98 (0xbee010->|)=20
`QThread-1' tid 0xbdd010, status SUSPENDED flags=20
 blocked@0x10f2e10 (0xbdd010->|)=20
`Thread creation thread.' tid 0xbbd010, status SUSPENDED flags=20
 blocked@0x1126498 (0xbbd010->|)=20
`Background inserter' tid 0xb5b010, status SUSPENDED flags=20
 blocked@0x11ac660 (0xb5b010->|)=20
`Diffie-Helman-Precalc' tid 0x73f010, status SUSPENDED flags=20
 blocked@0x73a330 (0x73f010->|)=20
`Log File Writer Thread' tid 0x679010, status SUSPENDED flags=20
 blocked@0x561e70 (0x679010->|)=20
`gc' tid 0x1d0010, status SUSPENDED flags DONTSTOP=20
 blocked@0x1c2660 (0x1d0010->|)=20
`finaliser' tid 0x1c7010, status SUSPENDED flags DONTSTOP=20
 blocked@0x17afc0 (0x1c7010->|)=20
Deadlock: all threads blocked on internal events
Abort (core dumped)=20


(gdb) bt
#0  0x40215fcf in _thread_sys_kill ()
#1  0x402158bb in abort ()
#2  0x40057434 in onDeadlock () at thread.c:603
#3  0x4007e2d8 in reschedule () at jthread.c:1679
#4  0x4007ceda in killThread (tid=3D0xd9050) at jthread.c:364
#5  0x4007e0c6 in jthread_exit () at jthread.c:1580
#6  0x400571c0 in exitThread () at thread.c:439
#7  0x4004a893 in Kaffe_DestroyJavaVM (vm=3D0x400b3c74) at jni.c:3530
#8  0x1b64 in main2 (env=3D0x0, argv=3D0xcfbfda40, farg=3D2, argc=3D0) at m=
ain.c:238
#9  0x199d in main (argc=3D2, argv=3D0xcfbfda40) at main.c:145


Engine: Just-in-time v3   Version: 1.1.x-cvs   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Fri Jun 13 18:41:35 EDT 2003
  Compile host  : pegasus
  Install prefix: /usr/local/kaffe
  Thread system : unix-jthreads
  CC            : gcc
  CFLAGS        : -g -O2 -Wall -Wstrict-prototypes
  LDFLAGS       :=20
  ChangeLog head: 2003-05-11 Dalibor Topic <robilad@yahoo.com>

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

--3607uds81ZQvwCD0
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE+7mFkkAkqAYpL9t8RAjabAKCEFy9w6DSuisMwkv1obbLHSsSHQgCgkV+L
DYpnrTHUBdoDnoblyMvuv5c=
=4zEM
-----END PGP SIGNATURE-----

--3607uds81ZQvwCD0--