[kaffe] Bug report: support.c:707

Max Gilead gilead at yellowhedgehog.com
Wed Feb 16 03:17:13 PST 2005


Thanks Guilhem, here's stack trace:

(gdb) bt
#0  0x41042741 in kill () from /lib/libc.so.6
#1  0x41156771 in pthread_kill () from /lib/libpthread.so.0
#2  0x41156a7b in raise () from /lib/libpthread.so.0
#3  0x410424d4 in raise () from /lib/libc.so.6
#4  0x41043a08 in abort () from /lib/libc.so.6
#5  0x4103bb3f in __assert_fail () from /lib/libc.so.6
#6  0x40032430 in lookupClassMethod (cls=0x0, name=0x0, sig=0x2c3 <Address
0x2c3 out of bounds>, einfo=0xbfffe8f0)
    at support.c:718
#7  0x40069fc6 in Kaffe_GetMethodID (env=0x8113028, cls=0x0,
name=0x408e846c "initComponentGraphics2D",
    sig=0x408e78aa "()V") at jni.c:580
#8  0x408e156f in Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkInit
(env=0x8113028, clazz=0x84096f4, portableNativeSync=0)
    at gnu_java_awt_peer_gtk_GtkToolkit.c:239
#9  0x08410452 in ?? ()
#10 0x08113028 in ?? ()
#11 0x084096f4 in ?? ()
#12 0xffffffff in ?? ()
#13 0xffffffff in ?? ()
#14 0x00000000 in ?? ()
#15 0xbfffea40 in ?? ()
#16 0x08422dd9 in ?? ()
#17 0xbfffe9d4 in ?? ()
#18 0x084178b5 in ?? ()
#19 0xffffffff in ?? ()
#20 0xbffe2000 in ?? ()
#21 0x40084f10 in __JCR_LIST__ () from
/home/max/sys/kaffe-2005-02-14/jre/lib/i386/libkaffevm-1.1.x-cvs.so
#22 0xbfffea38 in ?? ()
#23 0xbfffea40 in ?? ()
#24 0xbfffe9d4 in ?? ()
#25 0x40063e3e in i386_do_fixup_trampoline () at methodcalls.c:48
#26 0x0841c4d9 in ?? ()
#27 0xbfffe9e8 in ?? ()
#28 0x40064092 in engine_callMethod (call=0xbfffea40) at
sysdepCallMethod.h:46
Previous frame inner to this frame (corrupt stack?)

Regards,
Max

On Wed, 16 Feb 2005, Guilhem Lavaux wrote:

> Hi Max,
>
> I have tried to reproduce it without success so far. I'll try again on a
> debian/linux 2.4 this evening. Meanwhile you can enable the production
> of core dumps (ulimit -c 100000 e.g.) start kaffe and get the stack
> trace of the problem using gdb.
>
> gdb /home/max/sys/kaffe/jre/bin/kaffe-bin core.XXXX
>
> (where core.XXXX is the the name of the core dump)
>
> Type "where" or "bt" to get the stack trace and send it to the ML.
>
> Cheers,
>
> Guilhem.
>
> Max Gilead a écrit:
>
> >On Mon, 14 Feb 2005, pancake wrote:
> >
> >
> >
> >>for me it works fine.
> >>
> >>Building with sun's javac looks like everything goes 'fine' (except for swing bugs in gnuclasspath).
> >>
> >>But building it under jikes. also works fine but show this Exception:
> >>
> >>
> >I don't know what is the difference but today I checked it again, building
> >with Sun's javac, Kaffe's javac and jikes - each time it crashes with the
> >same error I mentioned the first time. Below I paste the log of what I
> >did.
> >
> >Any hints about how to debug it further?
> >
> >Thanks,
> >Max
> >
> >
> >max at barracuda:~/JTableTest$ ls
> >JTableTest.java
> >max at barracuda:~/JTableTest$ /home/max/sys/kaffe/bin/javac JTableTest.java
> >max at barracuda:~/JTableTest$ /home/max/sys/kaffe/bin/java JTableTest
> >kaffe-bin: support.c:707: lookupClassMethod: Assertion `cls != 0 && name
> >!= 0 && sig != 0' failed.
> >Aborted
> >max at barracuda:~/JTableTest$ rm *class
> >max at barracuda:~/JTableTest$ /home/max/sys/jdk/bin/javac JTableTest.java
> >max at barracuda:~/JTableTest$
> >
>
> >bin/java JTableTest
> >kaffe-bin: support.c:707: lookupClassMethod: Assertion `cls != 0 && name
> >!= 0 && sig != 0' failed.
> >Aborted
> >max at barracuda:~/JTableTest$ rm *class
> >max at barracuda:~/JTableTest$ jikes -cp /home/max/sys/kaffe/jre/lib/rt.jar
> >JTableTest.java
> >max at barracuda:~/JTableTest$ /home/max/sys/kaffe/bin/java JTableTest
> >kaffe-bin: support.c:707: lookupClassMethod: Assertion `cls != 0 && name
> >!= 0 && sig != 0' failed.
> >Aborted
> >max at barracuda:~/JTableTest$
> >
> >
> >
> >
> >
> >>pancake at pl2:/tmp$ /usr/pkg/java/kaffe-cvs/bin/kaffe JTableTest
> >>Exception during event dispatch:
> >>java.awt.IllegalComponentStateException: component not showing
> >>   at java.awt.Component.getLocationOnScreen (Component.java:1137)
> >>   at javax.swing.SwingUtilities.convertPointToScreen (SwingUtilities.java:323)
> >>   at javax.swing.SwingUtilities.convertPoint (SwingUtilities.java:380)
> >>   at javax.swing.SwingUtilities.convertRectangle (SwingUtilities.java:418)
> >>   at javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:440)
> >>   at javax.swing.RepaintManager$RepaintWorker.run (RepaintManager.java:104)
> >>   at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:191)
> >>   at java.awt.EventQueue.dispatchEvent (EventQueue.java:416)
> >>   at java.awt.EventDispatchThread.run (EventDispatchThread.java:81)
> >>   at java.lang.VMThread.run (VMThread.java:124)
> >>
> >>pancake at pl2:/tmp$
> >>
> >>
> >>On Mon, 14 Feb 2005 15:57:54 +0100 (CET)
> >>Max Gilead <gilead at yellowhedgehog.com> wrote:
> >>
> >>
> >>
> >>>import java.awt.Dimension;
> >>>
> >>>import javax.swing.JFrame;
> >>>import javax.swing.JPanel;
> >>>import javax.swing.JScrollPane;
> >>>import javax.swing.JTable;
> >>>
> >>>public class JTableTest
> >>>        {
> >>>        public static void main(String[] args)
> >>>                {
> >>>                Object[][] data = new Object[100][3];
> >>>                for (int i = 0; i < data.length; i++)
> >>>                        {
> >>>                        data[i][0] = "a"+i;
> >>>                        data[i][1] = "b"+i;
> >>>                        data[i][2] = "c"+i;
> >>>                        }
> >>>                JTable table = new JTable(data, new Object[] { "A", "B", "C" });
> >>>                JFrame frame = new JFrame();
> >>>                JPanel panel = new JPanel();
> >>>                panel.add(new JScrollPane(table));
> >>>                panel.setPreferredSize(new Dimension(200, 300));
> >>>                frame.setContentPane(panel);
> >>>                frame.pack();
> >>>                frame.setVisible(true);
> >>>                }
> >>>        }
> >>>
> >>>
> >>_______________________________________________
> >>kaffe mailing list
> >>kaffe at kaffe.org
> >>http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> >>
> >>
> >>
> >
> >_______________________________________________
> >kaffe mailing list
> >kaffe at kaffe.org
> >http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
> >
> >
>
>
>




More information about the kaffe mailing list