Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 17 May 2003 06:49:26 +0800 From: Greg Matheson To: cygwin Subject: Re: Perl instabilities Message-ID: <20030517064926.A19551@ms.chinmin.edu.tw> Mail-Followup-To: cygwin References: <52-474606809 DOT 20030516144739 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <52-474606809.20030516144739@familiehaase.de>; from freeweb@nyckelpiga.de on Fri, May 16, 2003 at 14:47:39 +0200 On Fri, 16 May 2003, Gerrit P. Haase wrote: > I have a DEBUGGING version of perl-5.8.0, compiled on another machine, > http://iokaste.koeln.convey.de/cygwin/perl/perl-5.8.0-w98test.tar.bz2 > http://iokaste.koeln.convey.de/cygwin/perl/perl-5.8.0-w98test-src.tar.bz2 Running this one outside gdb, it gives the same invalid page fault, but inside gdb, it segfaults. It wasn't doing that before. greg AT 7106 / $ gdb /usr/bin/perl GNU gdb 2003-03-03-cvs (cygwin-special) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"...(no debugging symbols found)... (gdb) run -MFcntl -e 'system "ls fool"' Starting program: /usr/bin/perl.exe -MFcntl -e 'system "ls fool"' Program received signal SIGSEGV, Segmentation fault. 0x1718947a in ?? () (gdb) bt #0 0x1718947a in ?? () #1 0x61007408 in cygwin1!__assert () from /usr/bin/CYGWIN1.DLL #2 0x610076ed in dll_crt0 AT 0 () from /usr/bin/CYGWIN1.DLL #3 0x00403ed2 in ?? () #4 0x0040103c in ?? () #5 0xbff8b6be in KERNEL32!EnumTimeFormatsA () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #6 0xbff8b570 in KERNEL32!FT_Thunk () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #7 0xbff89f33 in KERNEL32!BeginUpdateResourceA () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL Cannot access memory at address 0x8360afec (gdb) stepi 181 [main] perl 787385 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION 4278 [main] perl 787385 open_stackdumpfile: Dumping stack trace to PERL.EXE.stackdump Program received signal SIGSEGV, Segmentation fault. 0x61011d33 in strerror () from /usr/bin/CYGWIN1.DLL (gdb) bt #0 0x61011d33 in strerror () from /usr/bin/CYGWIN1.DLL #1 0x61011e61 in strerror () from /usr/bin/CYGWIN1.DLL #2 0x6101266d in cygwin_stackdump () from /usr/bin/CYGWIN1.DLL #3 0xbff768c9 in KERNEL32!CallNamedPipeW () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #4 0xbff8813d in KERNEL32!BuildCommDCBA () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #5 0xffecbad7 in ?? () #6 0x61007408 in cygwin1!__assert () from /usr/bin/CYGWIN1.DLL #7 0x610076ed in dll_crt0 AT 0 () from /usr/bin/CYGWIN1.DLL #8 0x00403ed2 in ?? () #9 0x0040103c in ?? () #10 0xbff8b6be in KERNEL32!EnumTimeFormatsA () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #11 0xbff8b570 in KERNEL32!FT_Thunk () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL #12 0xbff89f33 in KERNEL32!BeginUpdateResourceA () from /cy/c/WINDOWS/SYSTEM/KERNEL32.DLL Cannot access memory at address 0x8360afec (gdb) stepi Program exited with code 0305400. (gdb) bt No stack. And PERL.EXE.stackdump is: Exception: STATUS_ACCESS_VIOLATION at eip=1718947A eax=00000000 ebx=00000000 ecx=83566000 edx=83566000 esi=00000000 edi=004041D0 ebp=0073FC18 esp=0073FC00 program=C:\CYGWIN\BINERL.EXE cs=017F ds=0187 es=0187 fs=404F gs=0000 ss=0187 Stack trace: Frame Function Args 0073FC18 1718947A (00000004, 10151370, 10150328, 6107CDD0) 0073FDB8 61007408 (61007607, FFFFFFFE, 00000010, 610D1E7C) 0073FE08 610076ED (00000000, 00000000, BFFC9490, 0073FF68) 0073FE28 00403ED2 (00401090, 037F0500, 0073FF78, BFF8B6BE) 0073FE38 0040103C (00000000, 817CC368, 00530000, 6C726550) 0073FF78 BFF8B6BE (817CE29C, 817CC368, 00000008, 00000000) 57398384 [main] perl 787385 handle_exceptions: Exception: STATUS_ACCESS_VIOLATIO N 57399537 [main] perl 787385 handle_exceptions: Error while dumping state (probab ly corrupted stack) I wasn't getting the following lines with my backtraces on the earlier debuggables. HOw do I find out what is being asserted at 0x61007408? > (gdb) bt > #0 0x1718947a in ?? () > #1 0x61007408 in cygwin1!__assert () from /usr/bin/CYGWIN1.DLL > #2 0x610076ed in dll_crt0 AT 0 () from /usr/bin/CYGWIN1.DLL > #3 0x00403ed2 in ?? () > # -- Greg Matheson Walk the talk. Dr Bean's Penpal Pool Talk the walk. Address: palpool --Anonymous Domain: @cn91.chinmin.edu.tw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/