From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7983 invoked by alias); 29 Jun 2012 10:39:57 -0000 Received: (qmail 7892 invoked by uid 22791); 29 Jun 2012 10:39:56 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtprelay03.ispgateway.de (HELO smtprelay03.ispgateway.de) (80.67.29.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Jun 2012 10:39:41 +0000 Received: from [149.241.51.111] (helo=[192.168.1.62]) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1SkYbz-0005Ks-Jy; Fri, 29 Jun 2012 12:39:39 +0200 Message-ID: <4FED85E3.3040907@mfriebe.de> Date: Fri, 29 Jun 2012 10:39:00 -0000 From: Martin User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: gdb@sourceware.org Subject: w32 gdb crash on loading dll Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Df-Sender: bGF6YXJ1c0BtZnJpZWJlLmRl X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00095.txt.bz2 Hi, I have a gdb crash on win32 (xp, Vista). It is triggered by loading a library. Before I go into the details, the library is part of someone else's project. (I only got involved because the person uses several languages and IDE, including fpc/lazarus, where I happen to look at gdb integration) *** I have this persons ok, to forward it to gdb developer(s). But I do not want to upload it somewhere public on the internet. The dll was created with visual studio. running a project using that dll, the following output is given before the crash * mingw gdb 7.4 Reading symbols from b:\tmp\dll_crash\proffofconcept\vbr32.dll... * cygwin gdb 7.3 Reading symbols from /cygdrive/b/tmp/dll_crash/proffofconcept/vbr32.dll... 1 [main] gdb 11536 exception::handle: Exception: STATUS_ACCESS_VIOLATION 38396 [main] gdb 11536 open_stackdumpfile: Dumping stack trace to gdb.exe.stackdump trace is at end of file, but has no symbol info (I do not build gdb myself) The error can be caused without the need of a project by loading gdb as gdb.exe vbr32.dll It affects all versions of gdb since at least (and including) 6.7.5. It does not affect 6.6 and before (presumingly loading dll info was added then ?) It also does not happen if set auto-solib-add off is used. That is all the info I have so far. Please contact me if there is anything else. I can put it in the bug tracker, but due to the need of sending the dll in private, I wanted to check here first. Thank you Martin Exception: STATUS_ACCESS_VIOLATION at eip=0050D10E eax=00000000 ebx=00000001 ecx=00000002 edx=00000000 esi=00000001 edi=00000000 ebp=0149CAC8 esp=0149C9B0 program=c:\FPC\GDB\7.3.50_cygwin\gdb.exe, pid 11536, thread main cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023 Stack trace: Frame Function Args 0149CAC8 0050D10E (01CCB478, 00000006, 00000002, 611289CB) 0149CB08 0040D47B (01CCB478, 00000000, 00000000, 00000000) 0149CB48 0040D736 (00000000, 00000000, 00000000, 00000000) 0149CB68 0040D9A6 (0149CD23, 00000006, 00000000, 00000000) 0149CB88 0040DD49 (0149CD23, 00000001, 01CC72A0, 61073F40) 0149CBB8 0041CE32 (0040DE60, 0149CD23, 00000001, 00000006) 0149CC48 00401F73 (0149CCAC, 00000000, 01C61EB0, 00686100) 0149CC78 0041CEEB (00401450, 0149CCAC, 0068F8A8, 00000006) 0149CC98 00401211 (0149CCAC, 00000002, 49435341, 00000002) 0149CCC8 004011C2 (01C61DCF, 00000000, 0149CD68, 61007038) 0149CD68 61007038 (00000000, 0149CDA4, 61006980, 7FFD9000) End of stack trace