This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libgcj/18699] [4.0 Regression] SIGSEGV in GC_local_gcj_malloc


------- 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


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