This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/13139] New: gcj throws exception with faulty stacktrace with freenet


Download freenet 0.5.2.1 from
http://freenetproject.org/snapshots/freenet-0.5.2.1.tar.gz .
$ tar xfz freenet-0.5.2.1.tar.gz
$ cd freenet
change all occurences of java in start-freenet.sh to gij
$ sh start-freenet.sh
wait for a few seconds, and you should see this exception on the console:
>Exception in thread "main" 
> java.nio.channels.IllegalBlockingModeException
>    at gnu.gcj.runtime.FirstThread.call_main() 
> (/tmp/topic/gcc-cvs/lib/libgcj.so.4.0.0)
>    at gnu.gcj.runtime.FirstThread.run() 
> (/tmp/topic/gcc-cvs/lib/libgcj.so.4.0.0)
>    at _Jv_ThreadRun(java.lang.Thread) 
> (/tmp/topic/gcc-cvs/lib/libgcj.so.4.0.0)
>    at _Jv_RunMain(java.lang.Class, byte const, int, byte const, 
> boolean) (/tmp/topic/gcc-cvs/lib/libgcj.so.4.0.0)
>    at main (/tmp/topic/gcc/libjava/gij.cc:167)
>    at __libc_start_main (/lib/libc-2.2.5.so)
>    at _start (Unknown Source)

The stack trace is clearly bogus, as this excpetion is only thrown in java code
in java.net package, so there should be at least java.net.Socket,
java.net.ServerSocket or java.net.DatagramSocket mentioned in the stack trace.

-- 
           Summary: gcj throws exception with faulty stacktrace with freenet
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: robilad at kaffe dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13139


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