From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1803 invoked by alias); 8 Jan 2013 13:37:17 -0000 Received: (qmail 1726 invoked by uid 22791); 8 Jan 2013 13:37:15 -0000 X-SWARE-Spam-Status: No, hits=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Jan 2013 13:36:52 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r08DaphK019568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Jan 2013 08:36:52 -0500 Received: from zebedee.pink (ovpn-113-113.phx2.redhat.com [10.3.113.113]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r08Dao4S022035; Tue, 8 Jan 2013 08:36:51 -0500 Message-ID: <50EC20F2.1060803@redhat.com> Date: Tue, 08 Jan 2013 13:37:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "gaurav.rustagi" CC: java-patches@gcc.gnu.org Subject: Re: Fix 64-bit PR16923 on Solaris 10+/x86 References: <1357645281971-902934.post@n5.nabble.com> In-Reply-To: <1357645281971-902934.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2013-q1/txt/msg00004.txt.bz2 Hi, On 01/08/2013 11:41 AM, gaurav.rustagi wrote: > I am having a similar issue here. Please read the following. > > I am getting a crash when a native exception through JNI is propagated to > Java. The source code is really simple and it just throws a native > exception. I think the process crashes when it tries to unwind the stack > after an exception is thrown. You can see the error below. One more thing, > it only happens when the native library is compiled on 64 bit arch, and it > does work successfully on 32 bit arch. I am using gcc compiler and stats are > mentioned below as well. Let me know if you need more information. One more > thing, this code works perfectly well in Linux systems and i could see one > compiler option "--disable-libunwind-exceptions" on Linux. Does this option > really play any role for these kind of exceptions ? Should we put this > option whiling building gcc compiler on Solaris box ? It's a bug in the unwinder in your libc. You should try calling backtrace from a segfault handler written in C. This will tell you if the problem is anything to do with libjava. Andrew.