bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 ------------------

./configure --prefix=/home/pabeles/gumstix/tmp  --host=arm-angstrom-linux-gnueabi --build=i686-linux --target=arm-angstrom-linux-gnueabi --disable-alsa --disable-dssi --disable-qt4-peer --disable-gconf-peer --disable-gtk-peer --disable-examples --disable-plugin  --with-glibj --with-ecj

----------------- BEGIN jamvm ./configure ---------------------

./configure --prefix=/home/pabeles/gumstix/tmp  --host=arm-angstrom-linux-gnueabi --build=i686-linux --target=arm-angstrom-linux-gnueabi --disable-gtk-peer --disable-gconf-peer --disable-plugin






Looking for last minute shopping deals? Find them fast with Yahoo! Search.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]