From: Alexander <ab...@st...> - 2005-05-21 14:51:34
|
There doesn't seem to be any FUSE-J list, but there has been some FUSE-J traffic on this list, so I hope you won't mind. I'm using gcj 4 on Linux. (Fedora Core development branch.) FUSE-J would segfault as soon as it had mounted the file system and gdb showed that get_env() was returning garbage (0x1). I assumed that the problem was that get_env() and thus AttachCurrentThreadAsDaemon() was being called multiple times before release_env(). Since AttachCurrentThreadAsDaemon() is a no-op if the thread is already attached it wouldn't always set the env pointer. I applied the attached patch and the problem went away. It makes get_env() call GetEnv() first before trying to attach. Is this the correct solution? /abo |