From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3496 invoked by alias); 9 Dec 2002 21:46:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 3482 invoked by uid 71); 9 Dec 2002 21:46:06 -0000 Date: Mon, 09 Dec 2002 13:46:00 -0000 Message-ID: <20021209214606.3481.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Subject: Re: c++/8847: dynamic_cast segfaults with shared lib Reply-To: X-SW-Source: 2002-12/txt/msg00495.txt.bz2 List-Id: The following reply was made to PR c++/8847; it has been noted by GNATS. From: To: , , , , Cc: Subject: Re: c++/8847: dynamic_cast segfaults with shared lib Date: Mon, 9 Dec 2002 16:41:28 -0500 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database=3D= gcc&pr=3D8847 Hi ... I'm running into a similar problem on my system. Mine is a bit more = difficult to trace since it involves a Java JNI call. =20 I have an application that loads a shared library that uses the = dynamic_cast. When using the shared library from a c++ program on the = command line, it works fine. When I do it via a JNI call in segfaults. = I tried the smaller sample program and that too crashed in the same way. Here is some info: [root@comet jni]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) [root@comet jni]# java -version java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) Unfortunately here I can't recompile the JVM .... The java was compiled = with : GCC: (GNU) egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)=20 (This is java 1.4.1_01 release) Should I try compiling by lib with gcc 2.91.66 ?? =20 Thanks Reinier