This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++-2 causes a segmentation fault


Hi,

I have an application that segfaults when I run it, if its compiled with gcc2 
(2.95.3-10), but will run fine it its compiled with gcc (3.3.1-2).  If I 
uninstall gcc 3.3.1-2, and install gcc 2.95.3-5 (from my archive of old set-ups) 
then the application will run fine, regardless of whether it is compiled with 
gcc or gcc2.

Searching the archives, I find that this was reported, along with a simple test 
case, on the 24th of September (see 
http://www.cygwin.com/ml/cygwin/2003-09/msg01533.html ).  There is no solution 
in the archives - but I note that there were no posts at all for over 5 hours 
just after that message, which suggests that there may have been a problem with 
the cygwin mailing lists and a solution has been posted, but lost.

The output from cygcheck -svr is attached.

Is is possible to get gcc2 and the latest gcc to reside happily on the machine?

Thanks for any help,
James.

James Begley
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Sep 30 12:47:50 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:	.
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\Perl\bin\
	c:\WINNT\Tcl\bin
	c:\MikTex\miktex\bin
	c:\WINNT\system32
	c:\WINNT
	c:\Program Files\Common Files\Adaptec Shared\System
	c:\Program Files\doxygen\bin
	c:\Program Files\TortoiseCVS
	c:\Program Files\Java\j2re1.4.2_01\bin
	C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 15530(james) GID: 545(Users)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 15530(james) GID: 545(Users)
545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\james'
MAKE_MODE = `unix'
PWD = `/home/james'
USER = `james'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\james\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `HAFNASANDUR'
COMSPEC = `C:\WINNT\system32\cmd.exe'
HOMEDRIVE = `Y:'
HOMEPATH = `\.profiles'
HOMESHARE = `\\hafkaldi\james'
HOSTNAME = `hafnasandur'
LOGONSERVER = `\\HAFRO'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/gadget/fleksibest'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyc;.pyo;.pyw;.pys;.tcl'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b01'
PROGRAMFILES = `C:\Program Files'
PS1 = `\[\033]0;\w\007
\033[32m\]\w \[\033[33m\t\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\Temp'
TERM = `cygwin'
TMP = `c:\Temp'
USERDOMAIN = `HAF'
USERNAME = `james'
USERPROFILE = `C:\Documents and Settings\james'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   10001Mb  64% CP CS UN PA FC     JUMBO
d:  cd           N/A    N/A                    
e:  net NTFS   44285Mb  99% CP CS    PA        james
f:  cd           N/A    N/A                    
h:  net NTFS   137816Mb  66% CP CS    PA        haf
m:  net NTFS   34185Mb  74% CP CS    PA        pakkar
r:  net NTFS   68314Mb  66% CP CS    PA        reikn
u:  net NTFS   68314Mb  66% CP CS    PA        u2
y:  net NTFS   44285Mb  99% CP CS    PA        james

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

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.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\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/9 6:35
   14k 2003/08/10 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2003/8/10 20:57
  849k 2003/08/11 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/8/11 8:58
  645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2003/4/11 10:37
   28k 2003/08/11 C:\cygwin\bin\cygcygipc-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcygipc-2.dll" v0.0 ts=2003/8/11 0:54
  380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-3.1.dll" v0.0 ts=2002/7/24 16:24
  487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 16:25
  132k 2003/07/12 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2003/7/12 11:33
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 5:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 6:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 9:25
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 7:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/11 2:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 3:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 8:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 2:13
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 22:10
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/10 22:11
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 22:10
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 4:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 23:16
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/10 20:57
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 9:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 21:50
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 17:09
  132k 2003/08/11 C:\cygwin\bin\cygjpeg-62.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg-62.dll" v0.0 ts=2003/8/11 0:37
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 5:19
   32k 2003/08/18 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2003/8/18 5:35
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 5:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 6:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 9:25
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 5:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 6:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 5:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 6:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 9:24
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 5:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 6:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 9:24
   67k 2003/09/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/9/10 14:25
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 8:31
   15k 2003/09/10 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/9/10 14:25
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 8:31
 1100k 2003/08/29 C:\cygwin\bin\cygperl5_8_0.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8_0.dll" v0.0 ts=2003/8/29 10:20
  173k 2003/08/10 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2003/8/10 22:35
  170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2002/1/21 1:05
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 5:45
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 4:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 23:16
  176k 2003/08/11 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/8/11 8:58
  165k 2003/04/11 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2003/4/11 10:37
  254k 2003/09/18 C:\cygwin\bin\cygtidy-0-99-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygtidy-0-99-0.dll" v0.0 ts=2003/9/18 15:52
  281k 2003/02/24 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2003/2/24 4:58
  282k 2003/08/11 C:\cygwin\bin\cygtiff4.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff4.dll" v0.0 ts=2003/8/11 2:32
   60k 2003/08/09 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/8/9 6:28
  949k 2003/09/20 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/9/20 20:31
    Cygwin DLL version info:
        DLL version: 1.5.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 94
        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: Sat Sep 20 16:31:15 EDT 2003
        CVS tag: cr-0x9b
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\Cygwin\setup
Last downloaded files from: http://mirrors.rcn.net/pub/sourceware/cygwin

Package              Version            
_update-info-dir     00221-1            
a2ps                 4.13-1             
ash                  20020731-3         
autoconf             2.57a-1            
autoconf-devel       2.57-2             
autoconf-stable      2.13-5             
automake             1.7.5a-1           
automake-devel       1.7.6-2            
automake-stable      1.4p5-6            
base-files           2.6-1              
base-passwd          1.1-1              
bash                 2.05b-15           
bc                   1.06-1             
binutils             20030901-1         
bzip2                1.0.2-5            
ccache               2.2-1              
chkconfig            1.2.24h-1          
clear                1.0-1              
cron                 3.0.1-11           
cygipc               2.01-2             
cygrunsrv            0.96-2             
cygutils             1.2.1-2            
cygwin               1.5.5-1            
cygwin-doc           1.3-6              
diff                 1.0-1              
diffutils            2.8.4-1            
doxygen              1.2.18-1           
dpkg                 1.10.4-2           
ed                   0.2-1              
editrights           1.01-1             
enscript             1.6.3-3            
expat                1.95.6-2           
file                 4.03-2             
fileutils            4.1-2              
findutils            4.1.7-4            
gawk                 3.1.3-3            
gcc                  3.3.1-2            
gcc-mingw            20030911-3         
gcc2                 2.95.3-10          
gdb                  20030919-1         
gdbm                 1.8.3-7            
gettext              0.12.1-3           
gettext-devel        0.12.1-3           
ghostscript          7.05-2             
ghostscript-base     7.05-2             
grep                 2.5-1              
groff                1.18.1-2           
gsl                  1.4-1              
gzip                 1.3.5-1            
indent               2.2.8-1            
initscripts          0.9-1              
irc                  20010101-3         
jpeg                 6b-11              
keychain             1.9-1              
less                 381-1              
libbz2_1             1.0.2-5            
libcharset1          1.9.1-3            
libdb3.1             3.1.17-2           
libgdbm              1.8.0-5            
libgdbm-devel        1.8.3-7            
libgdbm3             1.8.3-3            
libgdbm4             1.8.3-7            
libgettextpo0        0.12.1-3           
libiconv             1.9.1-3            
libiconv2            1.9.1-3            
libintl              0.10.38-3          
libintl1             0.10.40-1          
libintl2             0.12.1-3           
libjpeg62            6b-11              
libjpeg6b            6b-8               
libltdl3             1.5-3              
libncurses5          5.2-1              
libncurses6          5.2-8              
libncurses7          5.3-4              
libpcre              4.1-1              
libpcre0             4.4-2              
libpng               1.2.5-4            
libpng12             1.2.5-4            
libpng2              1.0.12-1           
libpopt0             1.6.4-4            
libreadline4         4.1-2              
libreadline5         4.3-5              
libtiff3             3.6.0-2            
libtiff4             3.6.0-5            
libtool              1.5a-1             
libtool-devel        1.5-3              
libtool-stable       1.4.3-2            
login                1.9-7              
lynx                 2.8.4-7            
m4                   1.4-1              
make                 3.80-1             
man                  1.5j-2             
mingw-runtime        3.1-1              
mktemp               1.5-3              
more                 2.11o-1            
mutt                 1.4-1              
ncurses              5.3-4              
newlib-man           20020801           
openssh              3.7.1p2-1          
openssl              0.9.7b-3           
openssl096           0.9.6j-1           
patch                2.5.8-8            
patchutils           0.2.22-2           
pcre                 4.4-2              
pcre-doc             4.4-2              
perl                 5.8.0-5            
perl_manpages        5.8.0-5            
pkgconfig            0.15.0-4           
postgresql           7.3.4-2            
psutils              1.17-1             
python               2.3-2              
readline             4.3-5              
rsync                2.5.6-2            
sed                  4.0.7-3            
setsid               0.0-3              
sh-utils             2.0.15-4           
sharutils            4.2.1-3            
shutdown             1.4-1              
splint               3.1.1-1            
ssmtp                2.38.7-4           
sysvinit             2.84-4             
tar                  1.13.25-3          
tcltk                20030901-1         
tcsh                 6.12.00-7          
termcap              20021106-2         
terminfo             5.3_20030726-1     
texinfo              4.2-4              
textutils            2.0.21-1           
tidy                 030901-1           
time                 1.7-1              
unzip                5.50-5             
vim                  6.2.098-1          
w32api               2.4-1              
wget                 1.8.2-2            
which                1.5-2              
whois                4.6.7-1            
zip                  2.3-5              
zlib                 1.1.4-4            
Use -h to see help about each section
--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]