[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-java
Subject:    JNI, native threads and segmentation fault error
From:       "Anthony G. Starovojtov" <sysadmin () hey ! to>
Date:       1999-11-30 19:25:49
[Download RAW message or body]

Hi All,

When running simple JNI program under Linux "Segmentation fault" error
occured.

I've known I can avoid it using native threads.
But when setting THREADS_FLAG to "native" javac and java either hangs or
says that can't read /proc/00116 directory.
Also changing in sh script that invokes javac
DEFAULT_THREADS_FLAG=native has the same effect.

All I've read in FAQs was to set THREADS_FLAG to native or use -native
switch (it is not recognized)

I use RedHat 6.1 kernel 2.2.12-20 , jdk117v3 glibc

All programs without using JNI and using green threads works good.

Thanks

--
Regards,
Anthony G. Starovojtov,
System Administrator of IMS Department,
Kharkov State Technical University of Radioelectronics,
pr. Lenina,14, room 254, Kharkov, 61726, Ukraine
Phone +380 572 409451 (Work), +380 572 648863 (Home)
E-mail: anthony@email.itl.net.ua,  sysadmin@hey.to
ICQ: 32572820;   Yahoo Messenger ID: starovojtov



----------------------------------------------------------------------
To UNSUBSCRIBE, email to java-linux-request@java.blackdown.org
with a subject of "unsubscribe". Trouble? Contact karl@blackdown.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic