Share

FUSE-J

Tracker: Bugs

5 "GCJ 4.0 bug workarround" causes crash in high concurreny - ID: 2314764
Last Update: Comment added ( nobody )

When compiled with sun javac and run with HotSpot 1.5.0, when filesystem is
accessed simultaneously by large number of processes (~50) an occasional
JVM crash will occur on SIGSEGV.

When JVM is run with "-Xcheck:jni", the following error message shows:

FATAL ERROR in native method: Using JNIEnv in non-Java thread

Commenting out lines 213-214 in javafs.c (see attached patch) fixes this
problem.


Oded Noam ( odednoam ) - 2008-11-19 13:09

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2009-07-31 14:15
Sender: nobody

The bug may be in the JVM, but I can't say I fully understand where the
crash is. The proposed fix undoes a previous change that, in some JVMs,
avoids doing AttachCurrentThreadAsDaemon. I believe the fact that the
thread was not joined causes the crash.


Date: 2009-07-31 06:47
Sender: dtrott

Do you think that that is a JVM bug?

Is it also worth logging a bug against the JVM?


Log in to comment.

Attached File ( 1 )

Filename Description Download
getenv_fix.patch Fixing patch Download

Change ( 1 )

Field Old Value Date By
File Added 302054: getenv_fix.patch 2008-11-19 13:09 odednoam