This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: NPE with gcc 3.4 when trying to open a tcp-socket
- From: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- To: Jörg Maisenbacher <joerg at maisenbachers dot de>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 16 Sep 2003 19:52:46 +1200
- Subject: Re: NPE with gcc 3.4 when trying to open a tcp-socket
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.