From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2836 invoked by alias); 7 Oct 2005 13:49:18 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 2806 invoked by uid 48); 7 Oct 2005 13:49:17 -0000 Date: Fri, 07 Oct 2005 13:49:00 -0000 Message-ID: <20051007134917.2805.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "stewart at neuron dot com" X-SW-Source: 2005-q4/txt/msg00057.txt.bz2 List-Id: ------- Comment #10 from stewart at neuron dot com 2005-10-07 13:49 ------- (In reply to comment #9) > Yes, I'm sure. I know what's going on here. > This is the only bug I was able to find regarding AttachCurrentThread. I'm working on getting FUSE-J (Java bindings for FUSE userspace filesystem) working with GCJ and have run across an apparent bug with AttachCurrentThread/AttachCurrentThreadAsDaemon whereby the returned JNIEnv has a corrupted pointer to CallObjectMethod. I emailed the following to : You should be able to setup/reproduce this quickly. First is to get/build/install the fuse library: http://fuse.sourceforge.net/ http://easynews.dl.sourceforge.net/sourceforge/fuse/fuse-2.4.0.tar.gz ./configure --prefix=/usr/local && make && make install && depmod -a && modprobe fuse Second, get fuse-j, the java language bindings http://www.select-tech.si/fuse/ http://www.select-tech.si/fuse/fuse-j-2.2.3.tar.gz get and apply my patch for gcj: http://mrallen.com/misc/fuse-j-2.2.3-gcj.diff inside fuse-j-2.2.3: patch -p1 < path_to_patch then you will need a zip file to test and a mount point. next: make sh zipfs_gcj.sh once it's running, doing a 'df' in another term will crash cause the segfault. you will have to have /usr/local/bin in your PATH and execute 'fusermount -u ' to undo the mount. (In reply to comment #9) > Yes, I'm sure. I know what's going on here. > -- stewart at neuron dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stewart at neuron dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212