NPE with gcc 3.4 when trying to open a tcp-socket

Bryce McKinlay bryce@mckinlay.net.nz
Tue Sep 16 08:17:00 GMT 2003


On Tuesday, Sep 16, 2003, at 04:57 Pacific/Auckland, Jörg Maisenbacher  
wrote:

> Hy,
>
> I just build gcc 3.4 from cvs, and compiled an application. But this  
> app crashes with an NPE right at the start (when it tries to open a  
> tcp-socket):
>
> Exception in thread "main" java.lang.NullPointerException
>    at catch_segv  
> (/home/joerg/g2gui/g2gui/../../../gcc_cvs/gcc/libjava/prims.cc:144)
>    at __restore (Unknown Source)
>    at gnu.java.net.PlainSocketImpl.setOption(int, java.lang.Object)  
> (/home/joerg/g2gui/g2gui/gnu/java/net/natPlainSocketImpl.cc:574)
>    at java.net.Socket.getLocalAddress()  
> (/home/joerg/g2gui/g2gui/../../../gcc_cvs/gcc/libjava/java/net/ 
> Socket.java:455)

This is a "Miranda methods" bug - see  
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12254 where I have posted a  
patch.

Regards

Bryce.






More information about the Java mailing list