bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22835] jamvm crash with Swing


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22835] jamvm crash with Swing
Date: 16 Oct 2005 01:27:24 -0000

Recent gtk-peer changes broke swing:

classpath cvs / jamvm 1.2.3 + fixes from jamvm list
GTK 2.4.14-2 from Debian
-----------------------
import javax.swing.JFrame;
public class Swing {
    public static void main(String [] args) {
        JFrame f = new JFrame();
        f.show();
    }
}
----------------------
(gdb) bt
#0  0x282c0001 in ?? ()
#1  0xa4fac4b9 in get_state (env=0xaffff56c, obj=0xa6fb7828, table=0x8174c18)
    at native_state.c:229
#2  0xa4f9fd27 in connect_awt_hook_cb (widget=0x8288e08, peer=0xa6fb7828)
    at gnu_java_awt_peer_gtk_GtkEvents.c:1138
#3  0xa4b7a121 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#4  0xa4b65c20 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#5  0xa4b79aa8 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#6  0xa4b78be7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#7  0xa4b78ee4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#8  0xa4eb6bff in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#9  0xa4ec63ef in gtk_window_reshow_with_initial_size ()
   from /usr/lib/libgtk-x11-2.0.so.0
#10 0xa4b7a121 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#11 0xa4b65fb7 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#12 0xa4b65c20 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#13 0xa4b79451 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#14 0xa4b78be7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#15 0xa4b78ee4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#16 0xa4eb63b6 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#17 0xa4fa77c2 in Java_gnu_java_awt_peer_gtk_GtkWindowPeer_nativeSetVisible (
    env=0xa6fb7828, obj=0xa6fb7828, visible=1 '01')
    at gnu_java_awt_peer_gtk_GtkWindowPeer.c:229
#18 0x0805c659 in callJNIMethod (env=0xaffff78c, class=0x0,
    sig=0x806b888 "(Z)V", ret_type=2, ostack=0x80861fc,
    f=0xa4fa7760
"U211uffff203uffff3017uffffE20211]uffffuffffnuffffuffffuffff201uffffb212",
args=2)
    at dll_md.c:64
#19 0x0804e154 in callJNIWrapper (class=0x0, mb=0x81b0fc4, ostack=0xa6fb7828)
    at dll.c:301
#20 0x0805257e in executeJava () at interp.c:1986
#21 0x0804ebe2 in executeMethodVaList (ob=0x0, class=0xa6fb7828, mb=0x8126668,
    jargs=0xaffff950 "34uffffuffffuffff01") at execute.c:66
#22 0x0804ea76 in executeMethodArgs (ob=0xa6fb7828, class=0xa6fb7828,
    mb=0xa6fb7828) at execute.c:38
#23 0x08052fc2 in main (argc=2, argv=0xaffff9f4) at jam.c:303


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-01-13 
12:46 -------
jamvm 1.2.3 does not work anymore. The new GTK peer mege just triggered a bug
in jamvm 1.2.3. You need this patch:

--- jamvm-1.2.3/src/dll.c       2004-12-23 12:11:32.000000000 +0100
+++ jamvm-1.2.3.patched/src/dll.c       2005-01-10 23:05:22.000000000 +0100
@@ -290,8 +290,8 @@
     return NULL;
 }

+static void *env = &Jam_JNINativeInterface;
 u4 *callJNIWrapper(Class *class, MethodBlock *mb, u4 *ostack) {
-    void *env = &Jam_JNINativeInterface;

     TRACE(("<DLL: Calling JNI method %s.%s%s>\n", CLASS_CB(class)->name,
mb->name, mb->type));

I eave this bug open until new jamvm gets released which fixes the issue.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2005-01-13 
13:31 -------
Thanks, now it works again!

Btw, the ToolTipManager bug still exists.


------- Comment #3 from from-classpath at savannah dot gnu dot org  2005-01-13 
13:51 -------
Do you have these patches applied too ? With them I cant reproduce it anymore.

http://lists.gnu.org/archive/html/classpath/2005-01/msg00040.html
http://sourceforge.net/mailarchive/forum.php?thread_id=6306531&forum_id=43232
http://sourceforge.net/mailarchive/forum.php?thread_id=6308925&forum_id=43232


------- Comment #4 from from-classpath at savannah dot gnu dot org  2005-01-13 
14:10 -------
Ah, the first one in your list was missing.

Applied, but no effect - still got the exception.

Attached patch with all jamvm changes I have.


------- Comment #5 from from-classpath at savannah dot gnu dot org  2005-04-21 
21:07 -------
Could this be tested again with current JamVM and Classpath 0.14? I don't see
any problems here, though I use a newer GTK so I can't be sure. If there are no
problems anymore, I would close this bug.


------- Comment #6 from from-classpath at savannah dot gnu dot org  2005-04-22 
08:12 -------
This bug can indeed be closed.

As for #11538, I need to re-test.


------- Comment #7 from from-classpath at savannah dot gnu dot org  2005-04-22 
20:44 -------
Reported fixed.
Thanks Marko.


-- 


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]