gdb crash

"Kholodov, Igor" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.general
Message-ID <[email protected]>
hi,

The following behavior occurs on windows 2000:
after exe is compiled, as soon as it is loaded into gdb, gdb crashes.
This happens only if source files RegularExpression.cpp and termite.cpp are compiled with -g.
My source and makefile are attached. Please see also attached readme file that contains my Cygwin/bash/win200/gcc/gdb versions, etc. Thanks,

_igor


Igor Kholodov
Senior Software Engineer
Standard and Poor's
Real Estate Finance
2 Oliver Street, 10th Floor
Boston, MA 02109
Phone: 617-896-9249
 
 
 
--------------------------------------------------------
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer.
 
Thank you,
 
Standard & Poor's
 
--------------------------------------------------------
gdb_bug.zip (application/x-zip-compressed, 70.1 KB) - not displayed
error.jpg (image/jpeg, 13.1 KB) - not displayed
readme.txt (text/plain, 8.6 KB)
Command
$ gdb termite.exe

crashes gdb on windows 2000:
-----------------------------------------------------------------------------------------
TclNotifier: gdb.exe - Application Error
The instruction at "0x6637cae0" referenced memory at "0x00000028".
Memory could not be "read".
-----------------------------------------------------------------------------------------
Steps to reproduce:

1. Compile program: make -f makefile.txt
2. Run gdb termite.exe

-----------------------------------------------------------------------------------------
Below is my system information:
-----------------------------------------------------------------------------------------
System Information report written at: 11/21/2002 01:21:18 PM
[System Summary]

Item	Value
OS Name	Microsoft Windows 2000 Professional
Version	5.0.2195 Service Pack 2 Build 2195
OS Manufacturer	Microsoft Corporation
System Name	OCTOPUS-I
System Manufacturer	Dell Computer Corporation
System Model	OptiPlex GX150               
System Type	X86-based PC
Processor	x86 Family 6 Model 8 Stepping 10 GenuineIntel ~1000 Mhz
BIOS Version	Phoenix ROM BIOS PLUS Version 1.10 A06
Windows Directory	C:\WINNT
System Directory	C:\WINNT\System32
Boot Device	\Device\Harddisk0\Partition1
Locale	United States
User Name	MHF2\OCTOPUSI
Time Zone	Eastern Standard Time
Total Physical Memory	522,768 KB
Available Physical Memory	127,528 KB
Total Virtual Memory	1,799,168 KB
Available Virtual Memory	1,098,524 KB
Page File Space	1,276,400 KB
Page File	C:\pagefile.sys

-----------------------------------------------------------------------------------------
$ uname -a
CYGWIN_NT-5.0 OCTOPUS-I 1.3.15(0.63/3/2) 2002-11-07 13:57 i686 unknown

$ bash --version
GNU bash, version 2.05b.0(7)-release (i686-pc-cygwin)
Copyright (C) 2002 Free Software Foundation, Inc.

$ gdb
(gdb) show version
GNU gdb 5.0 (20010428-3)
Copyright 2001 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".

$ g++ -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posi
x --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable
-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)

$ cygcheck -V
cygcheck version 1.29
System Checker for Cygwin
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
Compiled on Nov  7 2002

$ cygcheck -s

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Nov 21 13:32:07 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

Path:   C:\cygwin\usr\local\bin
        C:\cygwin\bin
        C:\cygwin\bin
        c:\Oracle817\bin
        c:\Program Files\Oracle\jre\1.3.1\bin
        c:\Program Files\Oracle\jre\1.1.8\bin
        c:\PERL\BIN
        c:\WINNT\SYSTEM32
        c:\WINNT
        c:\WINNT\SYSTEM32\WBEM
        c:\DMI\WIN32\BIN
        c:\MSSQL7\BINN
        c:\PROGRAM FILES\SYMANTEC\PCANYWHERE\
        .\
        C:\cygwin\bin
        .
        x:\Oracle817\bin
        x:\Oracle817\jre\1.1.7\bin
        c:\ofa63\bin
        c:\ofa63\olap\xsa632
        c:\ofa63\olap\bin
        x:\bin
        x:\ccwin20
        x:\orant\bin
        x:\orawin\bin
        x:\adp

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/cygdrive/C/Igor/Projects/junk/gcc/gdb_bug'
USER = `Administrator'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS   38130Mb  85% CP CS UN PA FC     Local Disk
d:  net NTFS   69458Mb  38% CP CS UN PA FC     DataBase
e:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
f:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
g:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
i:  net NTFS   17316Mb  87% CP CS UN PA FC     Local Disk
l:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
n:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
p:  net NTFS   17316Mb  87% CP CS UN PA FC     Local Disk
r:  cd           N/A    N/A
t:  net NTFS   69462Mb  94% CP CS UN PA FC     Data
x:  net NTFS   69462Mb  94% CP CS UN PA FC     Data

C:\cygwin      /          system  textmode
C:\cygwin/bin  /usr/bin   system  textmode
C:\cygwin/lib  /usr/lib   system  textmode
.              /cygdrive  user    textmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll
   81k 2001/10/20 C:\cygwin\bin\cygitcl30.dll
   35k 2001/10/20 C:\cygwin\bin\cygitk30.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll
  390k 2001/10/20 C:\cygwin\bin\cygtcl80.dll
    5k 2001/10/20 C:\cygwin\bin\cygtclpip80.dll
   10k 2001/10/20 C:\cygwin\bin\cygtclreg80.dll
  623k 2001/10/20 C:\cygwin\bin\cygtk80.dll
   50k 2002/03/12 C:\cygwin\bin\cygz.dll
  906k 2002/11/07 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.3.15
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 63
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Thu Nov 7 13:57:47 EST 2002
        CVS tag: cygwin-1-3-15-1
        Shared id: cygwin1S3


Cygwin Package Information
Package             Version
_update-info-dir    00091-1
ash                 20020731-1
base-files          1.0-1
base-passwd         1.0-1
bash                2.05b-7
binutils            20021117-1
bison               1.75-1
byacc               1.9-1
crypt               1.0-1
cvs                 1.11.0-1
cygwin              1.3.15-2
diff                1.0-1
diffutils           2.8.1-1
fileutils           4.1-1
findutils           4.1.7-4
gawk                3.1.1-5
gcc                 3.2-3
gcc-mingw           3.2-20020817-1
gdb                 20010428-3
gdbm                1.8.0-4
grep                2.5-1
groff               1.17.2-1
gzip                1.3.3-4
less                374-1
libiconv2           1.8-2
libintl1            0.10.40-1
libintl2            0.11.5-1
libncurses5         5.2-1
libncurses6         5.2-8
libreadline4        4.1-2
libreadline5        4.3-2
login               1.7-1
m4                  0.0
make                3.79.1-7
man                 1.5g-2
mingw-runtime       2.2-1
ncurses             5.2-8
pcre                3.7-1
rcs                 5.7-3
readline            4.3-2
sed                 4.0.1-1
sh-utils            2.0-2
tar                 1.13.25-1
termcap             20020930-1
terminfo            5.2-3
texinfo             4.2-4
textutils           2.0.21-1
w32api              2.0-1
which               1.5-1
zlib                1.1.4-1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.