From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29965 invoked by alias); 15 Jul 2014 11:45:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29925 invoked by uid 89); 15 Jul 2014 11:45:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: limerock01.mail.cornell.edu Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Jul 2014 11:45:53 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id s6FBjoph026897 for ; Tue, 15 Jul 2014 07:45:50 -0400 Received: from [192.168.1.4] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id s6FBjmo7004831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 15 Jul 2014 07:45:50 -0400 Message-ID: <53C51460.5080805@cornell.edu> Date: Tue, 15 Jul 2014 11:45:00 -0000 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Core dump on 32-bit Cygwin if program calls dlopen References: <53C46ACD.5060601@cornell.edu> <20140715090259.GB20640@calimero.vinschen.de> In-Reply-To: <20140715090259.GB20640@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00157.txt.bz2 On 7/15/2014 5:02 AM, Corinna Vinschen wrote: > On Jul 14 19:42, Ken Brown wrote: >> I'm getting a core dump on exit from a program that does nothing but call >> dlopen. (But the call to dlopen succeeds.) This happens only in the 32-bit >> case. Here's a simple test case. >> >> $ cat test_dlopen.c >> #include >> #include >> int >> main() >> { >> const char *dllname = "cyggs-9.dll"; >> void *handle; >> printf ("Trying to dlopen %s...", dllname); >> handle = dlopen (dllname, RTLD_LAZY); >> if (handle) >> { >> printf ("succeeded.\n"); >> return 0; >> } >> else >> { >> printf ("failed.\n"); >> return 1; >> } >> } >> >> $ gcc test_dlopen.c >> >> $ ./a >> Trying to dlopen cyggs-9.dll...succeeded. >> Aborted (core dumped) > > The crash occurs when calling the destructors from do_global_dtors. > The crash address points to a crash inside a destructor of libgcc > (actually cyggcc_1-1.dll) which has been pulled in by cyggs-9.dll. > > What destructor in libgcc would that be? And what is it expecting > which is apparently missing? FWIW, the problem disappears if I revert gcc-core and libgcc1 to 4.8.2-2. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple