You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Vasile GABURICI <ga...@ss.pub.ro> on 2000/05/15 22:07:23 UTC
[Off-topic] Sun's Linux JDK1.2.2 breaks with native threads
Sorry to push this off topic thing. At Costin's indication I've
tried Sun's 1.2.2 JVM on Linux with native threads and it breaks. It seems
that the warning is there for a good reason.
If you doubt me, please find attached a small test. Two makefiles
are included, one for JDK1.1 and one for JDK1.2. You should only need to
change the JAVA_HOME= line in these makefiles.
The test is dead simple: the main thread instantiates the JVM and
calls a method of a Java class, then another thread is spawned and
attached to the JVM and it also calls the same Java class.
On my machine, the IBM 1.1.8 JDK passes this test, but Sun's JDK
1.2.2 gives a nasty SIGSEGV when the spawned thread is joined. Tested
with kernel 2.2.14-12 and glibc-2.1.3-15.
Eagerly expecting your flames,
Vasile