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: Bug in libgcj UDP network classes


On Thu, 2003-12-04 at 03:37, Tom Tromey wrote:
> >>>>> "Norbert" == Norbert Frese <postfach@nfrese.net> writes:
> 
> Norbert> Besides: It seems there still is a bytecode verifyer bug. Is this a
> Norbert> known problem?
> 
> I don't think so.  Please file it.
> 
> If you could attach the .java file and the .class file, that would
> help.  It would also help if you could attach the `jcf-dump -c'
> output for the class.
> 
> Norbert> gcj -fCLASSPATH=swt.jar:xerces.jar -c jface-standalone.jar -o
> Norbert> jface_standalone.oOpenStrategy.java: In class
> 
> One last question: does gij fail on this code?  You can see if the
> gij verifier fails by running something like:
> 
> gij -classpath swt.jar:xerces.jar:jface-standalone.jar  org.eclipse.jface.OpenStrategy\$1
> 
> This should print a stack trace if there is a verifier error.  You'll
> get an error about a missing main method if it works ok.
> 
> Tom
> 

---- Output if Gij ----

gij -classpath swt.jar:xerces.jar:jface-standalone.jar
org.eclipse.jface.util.OpenStrategy\$1
Exception in thread "main" java.lang.VerifyError: verification failed at
PC 480 in
org.eclipse.jface.util.OpenStrategy$1:handleEvent((Lorg.eclipse.swt.widgets.Event;)V): incompatible type in local variable
   at _Jv_BytecodeVerifier.verify_fail(byte, int)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_BytecodeVerifier.get_variable(int, _Jv_BytecodeVerifier.type)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_PrepareClass(java.lang.Class)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_WaitForState(java.lang.Class, int)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at java.lang.Class.initializeClass()
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at java.lang.Class.forName(java.lang.String)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at gnu.gcj.runtime.FirstThread.run()
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_ThreadRun(java.lang.Thread)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/mnt/tiny/opt2/local/gcc_mainline/lib/libgcj.so.4.0.0)
   at main
(/home/norbert/work/java/gcjverifybug/../../../gcc_cvs/gcc/libjava/gij.cc:167)
   at __libc_start_main (/lib/i686/libc-2.3.2.so)
   at _start
(/home/norbert/work/java/gcjverifybug/../sysdeps/i386/elf/start.S:105)

---------------------------

Output of jcf-dump -c and source:

http://www.scheinwelt.at/~norbertf/gcj/tests/

Complete source of standalone-jface:

http://www.scheinwelt.at/~norbertf/gcj/swtfiles/

I will file a bug report. Do you want me to attach all files to the
bug-report (will be a couple of megabytes ~ 8mb).

norbert



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