JNI: printStackTrace() hangs in read()

Andrew Haley aph@redhat.com
Tue Feb 4 10:49:00 GMT 2003


Jost Boekemeier writes:
 > Hi,
 > 
 > this may be a known problem on linux (kernel 2.4.18; RH8; gcc3.2.1, no
 > special options)
 > 
 > I have run a simple java test program which simply calls
 > ex.printStackTrace().
It's a bug in Red Hat 8.0's Java installation.
This is the patch you need:
--- /usr/lib/gcc-lib/i386-redhat-linux/3.2/libgcj.spec~ 2002年09月04日 04:03:39.000000000 +0100
+++ /usr/lib/gcc-lib/i386-redhat-linux/3.2/libgcj.spec 2002年12月10日 15:59:39.000000000 +0000
@@ -4,6 +4,6 @@
 # to link with libgcj.
 #
 %rename lib liborig
-*lib: -lgcj -lm -lz -ldl %(libgcc) %(liborig)
+*lib: -lgcj -lm -lpthread -lz -ldl %(libgcc) %(liborig)
 
 *jc1: -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions
 > On linux, is is possible to fork/exec when threads are being used (there are
 > two other threads probably belonging to the gc and finalizer)? How can I
 > determine if a procid is a thread?
>From Linux's point of view, there is really very little difference
between a process and a thread -- they're just processes that share
memory.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /