This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 15. September 2003 23:09 schrieb Jörg Maisenbacher:
> Andrew Haley wrote:
> > You can try to see if it's a optimizer bug in the C++ compiler. 
> > Try compiling with "make CXXFLAGS=-g"
> >
> > Tell me if this fixes things.  I'll have a look tomorrow.
>
> I did this, but the result is the same: NPE at execution time :-/
>
> Exception in thread "main" java.lang.NullPointerException
>     at catch_segv
> (/home/joerg/g2gui/testcase/../../../gcc_cvs/gcc/libjava/prims.cc:1
>44) at __restore (Unknown Source)
>     at gnu.java.net.PlainSocketImpl.setOption(int,
> java.lang.Object)
> (/home/joerg/g2gui/testcase/gnu/java/net/natPlainSocketImpl.cc:574)
> [...]
>
> ^^^^this was the result usng the testfile from a few mails before
>
> nothing changed :-(

This is a miranda bug. I added locally as workaround the abstract 
set/getOption methods to SocketImpl and DatagramSocketImpl and it 
worked. Mohan man I tried to write a testcase but we both failed 
unfortunately. We agreed on IRC not to commit the workaround and 
instead work on the real solution.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/ZqKYWSOgCCdjSDsRAhd4AKCCtv+ESIINPCEwpUw6jumDIrMSCwCeLwOe
mpKOVNmVpiSHoH7TkEmXOh8=
=1KSR
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]