From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28645 invoked by alias); 18 Dec 2009 14:46:25 -0000 Received: (qmail 28636 invoked by uid 22791); 18 Dec 2009 14:46:24 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 18 Dec 2009 14:46:20 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 40DC3400007; Fri, 18 Dec 2009 09:46:18 -0500 (EST) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id nBIEkHHL021402; Fri, 18 Dec 2009 09:46:17 -0500 Date: Fri, 18 Dec 2009 14:46:00 -0000 From: Jack Howarth To: java@gcc.gnu.org, aph@redhat.com Subject: _Unwind_FindEnclosingFunction vs darwin Message-ID: <20091218144617.GA21353@bromo.med.uc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00036.txt.bz2 Andrew, As I mentioned in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41991#c36, the darwin unwinder maintainer looked at the crash of gcj(ecj1) when compiling java code on darwin10. He claims that the origin of the problem is the use of the FSF unwinder extension _Unwind_FindEnclosingFunction which is not implemented in the system unwinder on darwin10. It appears that for darwin10 and later we will have to replace the call to _Unwind_FindEnclosingFunction on darwin with code using dladdr() to discover if the function is known to the dynamic loader ...assuming that the use of _Unwind_FindEnclosingFunction is to tell if the code address is static of dynamic(JIT) code. Jack