[Java-gnome-developer] SIGSEGV (cont)
Brought to you by:
afcowie
|
From: Avi B. <av...@be...> - 2000-12-07 03:13:52
|
Hmmm... it seems like the problem is in the GtkEditable classes, or
perhaps all classes dealing with strings... and it's not just with
reflection. With CVS code, the following test crashes:
import gtk.*;
class GtkTest {
public void callback(String a, int b, int c) {
}
public static void main(String args[]) {
Gtk.init(args.length,args);
GtkEntry e = new GtkEntry();
e.signalConnect("insert_text", "callback", new GtkTest());
e.setText("hello world");
}
}
It's possible to get the same crash with 0.5.0 code pretty easily as well.
I'm over my head here...
---------- Forwarded message ----------
Date: Wed, 6 Dec 2000 13:53:08 -0800 (PST)
From: Avi Bryant <av...@be...>
To: jav...@li...
Subject: SIGSEGV
I'm getting segmentation faults using java-gnome... I'll try to narrow it
down more exactly, but it seems to involve using java.lang.reflect from
within a signal callback. Some data points: using java-gnome 0.5.0, I get
the error on Method.invoke and Field.set with the blackdown JDK, but only
on Field.set with the IBM JDK. Using the CVS sources, I get the crash on
both JDKs for both reflection types.
Note that this only happens when I'm inside a callback... it's not a
general problem with reflection.
Can anybody reproduce this?
Does anybody have any clue what's going on?
avi
|