From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6358 invoked by alias); 19 Jul 2012 02:01:57 -0000 Received: (qmail 6347 invoked by uid 22791); 19 Jul 2012 02:01:54 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 02:01:41 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Srg3c-0002jz-6B for cygwin@cygwin.com; Thu, 19 Jul 2012 04:01:36 +0200 Received: from 118.45.149.206 ([118.45.149.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jul 2012 04:01:36 +0200 Received: from jojelino by 118.45.149.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Jul 2012 04:01:36 +0200 To: cygwin@cygwin.com From: jojelino Subject: Re: Built perl 5.6.2 on Cygwin 1.7.11, but get SIGABRT from resulting perl.exe Date: Thu, 19 Jul 2012 02:01:00 -0000 Message-ID: References: <003001cd650d$317a47d0$946ed770$@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:17.0) Gecko/17.0 Thunderbird/17.0a1 In-Reply-To: <003001cd650d$317a47d0$946ed770$@gmail.com> X-IsSubscribed: yes 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 X-SW-Source: 2012-07/txt/msg00380.txt.bz2 On 2012-07-19 AM 2:45, Nicholas DiPiazza wrote: > Jojelino asked: > > "What was the result of > gdb --args perl > symbol cygwin1.dll > define btc > bt > c > end > # "Function "_sigfe_free" not defined." shouldn't be seen. if it does, > please use latest snapshot including debug symbol. > b _sigfe_free > disp *((unsigned*)$esp+1) > r > btc > #and just press enter until sigabrt is hit. ?" > > Here is the result. > > $ gdb --args perl > GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special) > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-cygwin". > For bug reporting instructions, please see: > ... > Reading symbols from /home/windows7-vm/perl-5.6.2/perl...done. > (gdb) symbol cygwin1.dll > Load new symbol table from "/usr/bin/cygwin1.dll"? (y or n) y > Reading symbols from /usr/bin/cygwin1.dll...(no debugging symbols > found)...done. > (gdb) define btc > Type commands for definition of "btc". > End with a line saying just "end". >> bt >> c >> end > (gdb) b _sigfe_free > Breakpoint 1 at 0x610d420a > (gdb) disp *((unsigned*)$esp+1) > (gdb) r > Starting program: /home/windows7-vm/perl-5.6.2/perl > [New Thread 2184.0xec0] > [New Thread 2184.0xef0] > > Breakpoint 1, 0x610d420a in _sigfe_free () > from /cygdrive/c/cygwin/bin/cygwin1.dll > 1: *((unsigned*)$esp+1) = 2147483664 > (gdb) btc > #0 0x610d420a in _sigfe_free () from /cygdrive/c/cygwin/bin/cygwin1.dll > #1 0x61082119 in malloc_init() () from /cygdrive/c/cygwin/bin/cygwin1.dll > #2 0x00000000 in ?? () > > Program received signal SIGABRT, Aborted. > 0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock () > from /cygdrive/c/Windows/system32/ntdll.dll > 1: *((unsigned*)$esp+1) = 1987840657 > (gdb) > #0 0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock () > from /cygdrive/c/Windows/system32/ntdll.dll > #1 0x7718f8b1 in ntdll!RtlUpdateClonedSRWLock () > from /cygdrive/c/Windows/system32/ntdll.dll > #2 0x767c0a91 in WaitForSingleObjectEx () > from /cygdrive/c/Windows/syswow64/KERNELBASE.dll > #3 0x000000a8 in ?? () > #4 0x00000000 in ?? () > > > > > Hello, Nicholas. It seems that perl-5.6.2 supplies its own malloc, which is incompatible to cygwin. and cygwin startfile crt0.o which is linked with your perl build accepts malloc of perl-5.6.2/malloc.c during its initialization, please fix your perl build not to override malloc. -- Regards. -- 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