From owner-freebsd-java Tue Jul 18 14:22:19 2000 Delivered-To: freebsd-java@freebsd.org Received: from crowe.surety.com (crowe.surety.com [209.249.186.50]) by hub.freebsd.org (Postfix) with ESMTP id 7639E37B80B for ; Tue, 18 Jul 2000 14:22:17 -0700 (PDT) (envelope-from tom@surety.com) Received: from hicks (hicks.surety.com [209.249.186.217]) by crowe.surety.com (8.9.3/8.9.3) with SMTP id RAA28408; Tue, 18 Jul 2000 17:22:15 -0400 From: "Tom O'Connor" To: Subject: JDK118, C++, pthreads, and JNI Date: Tue, 18 Jul 2000 17:22:25 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a C++ library that I am putting a Java wrapper around using JNI. When some objects in the C++ library are created, pthreads are also created and started. I compile the C++ code using g++, and then create the .so with ld, explicitly linking the reentrant C++ runtime, and my other C++ libraries. This is done because the .so wouldn't load, the exception handling symbols were missing. Java calls into my native call and executes until it reaches the method call of an object in the C++ library I'm attempting to wrap that creates and starts some pthreads. At that point, the JVM SEGV's. Is it possible to get JDK118, a pthread'ed C++ library accessed through JNI, on FreeBSD 4.0-20000714-STABLE to play nicely together? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message