ServerSocket.bind() crashing on a gumstix (arm processor)
From:
Peter Abeles
Subject:
ServerSocket.bind() crashing on a gumstix (arm processor)
Date:
Thu, 21 Feb 2008 13:36:08 -0800 (PST)
Hi,
I'm running classpath 0.96 on a gumstix, which uses an arm processor. The code run just fine on my x86 desktop, but crashes when I run it on the gumstix. The VM I'm using is jamvm 1.5.0 .
It is crashing inside of gnu_java_net_VMPlainSocketImpl.c in the function Java_gnu_java_net_VMPlainSocketImpl_bind() on this line: elems = (*env)->GetByteArrayElements (env, addr, NULL);
Below I have pasted the java code which crashes on the gumstix along with parameters passed to classpath and jamvm at compile time.
Thanks for taking the time to look at this!
- Peter
------------------ BEGIN output from java code ----------------
jamvm ChecksForJamVM ENTER bind test before bind to a specific port Illegal instruction
------------------ BEGIN JAVA SOURCE ---------------- public void checkBind() throws IOException {
System.out.println("ENTER bind test"); ServerSocket socket = new ServerSocket();
System.out.println("before bind to a specific port"); socket.bind(new InetSocketAddress((InetAddress)null,0xFFF1)); socket.close();
socket = new ServerSocket(); System.out.println("before bind to any port"); socket.bind(null); socket.close();
System.out.println("EXIT bind test"); } ----------------- BEGIN CLASSPATH ./configure ------------------