Hi,

I'm trying to port a C library  which use pthread with the Blackdown JDK
1.1.7 on Linux.

The  C library is linked with the JVM using JNI. This works correctly.

One of the function of the C library create a new thread using the
pthread_create (of the pthread library).

The external library is compiled as a shared library and linked with the
pthread library. it works correctly when used from an C or C++ program.

But when used with Java (with green threads),  the  function  crash with a
"segmentation violation" error and the crash seems to occur when the
pthread_create function is executed.

Using Java with native threads does not help and the program hangs before
calling this function.

Is there something special related to the use of pthread functions in a C
library called from Java?

Thanks

Stephane Letz


Grame: Centre National de creation musicale
9, Rue du Garet
69001 Lyon
Tel: 04-72-07-37-00
Fax: 04-72-07-37-01
Web: www.grame.fr



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

Reply via email to