From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4788 invoked by alias); 6 May 2003 19:58:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4764 invoked from network); 6 May 2003 19:58:08 -0000 Received: from unknown (HELO beauty.ant.gliwice.pl) (213.186.82.3) by sources.redhat.com with SMTP; 6 May 2003 19:58:08 -0000 Received: from maly (chello062179010229.chello.pl [62.179.10.229]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beauty.ant.gliwice.pl (Postfix) with ESMTP id 8CA75FA6E for ; Tue, 6 May 2003 21:58:06 +0200 (CEST) From: =?iso-8859-2?Q?=A3ukasz_Michalski?= To: Subject: gdb crash Date: Tue, 06 May 2003 19:58:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-SW-Source: 2003-05/txt/msg00083.txt.bz2 Hi, I am developing application using wxWindows for Linux and MS Windows platforms using wxWindows. Under windows I am using mingw with latest patches and Dev-Cpp (latest beta) I have problems using gdb under windows. When I run my application standalone everything works correct. But when run under gdb app crashes and gdb crashes just after. When I try to run app step-by-step by setting breakpoint to first line and stepping over gdb crashes when accessing first static variable. It crashes always with the same message: Access violation in gdb exe. Memory at address 0x0000004 cannot be "read". I want to generate reasonable bug report, but I have no idea how to do it. My app with debug info has 45Mb and is linked with wxWindows compiled with -g flag and some other smaller libraries also compiled with -g flag. Here are versions of compiler and gdb: C:\>gdb -v GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. [...] This GDB was configured as "mingw32". C:\>gcc -v Reading specs from P:/DevCpp/bin/../lib/gcc-lib/mingw32/3.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host= mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --en able -languages=f77,c++,objc,ada --disable-win32-registry --disable-shared Thread model: win32 gcc version 3.2 (mingw special 20020817-1) I can try to strip the code, but cannot make my app independent of wxWindows and I use slightly modified version than original. I will be very graceful for any suggestions what to do to make gdb work. Under Linux everything works fine. Regards, £ukasz Michalski