This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/18699] [4.0 Regression] SIGSEGV in GC_local_gcj_malloc
- From: "ovidr at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2004 21:24:40 -0000
- Subject: [Bug libgcj/18699] [4.0 Regression] SIGSEGV in GC_local_gcj_malloc
- References: <20041128041457.18699.ovidr@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ovidr at users dot sourceforge dot net 2004-11-28 21:24 -------
Recompiled libgcj and I still get the above stacktrace. Here is a testcase.
import java.util.Observable;
import java.util.Observer;
class TT extends Observable implements Runnable, Observer {
public static void main(String[] args) {
TT tt1 = new TT();
TT tt2 = new TT();
tt1.addObserver(tt2);
tt2.addObserver(tt1);
new Thread(tt1).start();
new Thread(tt2).start();
}
public void run() {
int c = 0;
String s = "";
while (++c < 50) {
System.out.println("Running: " + Thread.currentThread());
this.setChanged();
s = "";
for (int i = 0; i < 200; i++)
s += String.valueOf(i);
this.notifyObservers(s);
}
}
public void update(Observable o, Object obj) {
System.out.println(o);
}
}
gcj -g --main=TT TT.java -o TT
Collecting from unknown thread.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18699