Hi,

since I installed JDK1.2 my system has become quite unstable. I've
had several system crashes lately. I cannot put the blame on JDK1.2
for sure, since there is no deterministic way to reproduce the
problem, and, after all, bugs in the JDK should not affect the
system. So it's probably a kernel bug, showing up with the JDK. My
system used to be very stable before, I usually had an uptime for
several months (in fact, it rarely went down unless I shut it down).
It might be a problem with native threads -- this is why: Below is
a small test program which doesn't do much except for running two
threads where the main thread wakes up the other. After running
about half an hour the system usually becomes unstable. Usually
it starts by dates being garbled, e.g., "date" prints something
like "Sun Mar 14 73458:-4406389:-5 CET 1999". At the same time
when starting programs (no matter which, even "ls") they often
seg-fault on startup. Sometimes already running programs start to
core dump as well. Sometimes I even cannot login anymore (as root,
to reboot the system).

public class ThreadTest extends Thread {
  public void run() {
    for (;;) {
      synchronized (this) {
        try {
          wait();
        } catch (InterruptedException e) {
        }
      }
    }
  }

  public static void main(String[] args) {
    ThreadTest thread = new ThreadTest();
    thread.start();
    for (;;) {
      synchronized (thread) {
        thread.notify();
      }
    }
  }
}

I'm using a SuSE 6.0 distribution with a 2.0.36 kernel and libc6.
The problem might be related to bug 474 from the Jitterbug DB.
Has anybody similar experiences? Would it help to update to a
2.2 kernel?


Stefan


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to