delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/03/16:06:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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, 3 Jan 2004 22:12:45 +0100
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
Message-ID: <1425423079.20040103221245@familiehaase.de>
To: Beman Dawes <bdawes AT acm DOT org>
CC: cygwin AT cygwin DOT com, "John Maddock" <john AT johnmaddock DOT co DOT uk>
Subject: Re: Bug in fstream code and gcc-2 package?
In-Reply-To: <4.3.2.7.2.20040103092732.02db6dd0@mailhost.esva.net>
References: <01e101c3d1f1$9bc8d6a0$29750252 AT fuji> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20040103092732 DOT 02db6dd0 AT mailhost DOT esva DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

Hallo Beman,

I cannot reproduce it here on my NT4 SP 6a:

$ uname -svr
CYGWIN_NT-4.0 1.5.5(0.94/3/2) 2003-09-20 16:31

$ cygcheck -c gcc
Cygwin Package Information
Package              Version        Status
gcc                  3.3.1-3        OK

$ cygcheck -c gcc-g++
Cygwin Package Information
Package              Version        Status
gcc-g++              3.3.1-3        OK


$ g++ fstream.cpp
$ ls
a.exe*  fstream.cpp
$ ./a
$ cygcheck a
Found: .\a.exe
a.exe
  H:\bin\cygwin1.dll
    C:\WINNT\System32\KERNEL32.dll
      C:\WINNT\System32\ntdll.dll

$ g++ -mno-cygwin fstream.cpp
$ ls
a.exe*  fstream.cpp
$ ./a
$ cygcheck a
Found: .\a.exe
a.exe
  C:\WINNT\System32\msvcrt.dll
    C:\WINNT\System32\KERNEL32.dll
      C:\WINNT\System32\ntdll.dll

Can you run it with gdb and try to figure out what fails for you?

Gerrit


Am Samstag, 3. Januar 2004 um 15:39 schriebst du:

> At 06:58 AM 1/3/2004, John Maddock wrote:
 >>Beman,
 >>
 >>Here's the reply I got from the cygwin list on this, can you reply with
 >>details of your system and the fact that it fails there?

> John's fstream.cpp test program fails on my Win XP SP 1 system. I've
> reinstalled cygwin gcc and mingw components freshly downloaded. The gcc and
> gcc-g++ .tar.bz2 files are identified as 3.3.1-3. The mingw-runtime id is
> 3.2-1.

> The command line I'm using is simply: g++ fstream.cpp

> Executing the resulting program results in:

>    2 [main] a 1668 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
> 413 [main] a 1668 open_stackdumpfile: Dumping stack trace to 
> a.exe.stackdump

> The program compiles and executes correctly with Borland, Intel, 
> Metrowerks, and Microsoft compilers.

> Any suggestions? This is the system used to run the Boost Win32 regression
> tests, and we would like to eliminate as many gcc/cygwin failures as
> possible. See http://boost.sourceforge.net/regression-logs/

> Thanks,

> --Beman Dawes

 >>
 >>Many thanks,
 >>
 >>John.
 >>
 >>----- Original Message -----
 >>From: "Larry Hall" <cygwin-lh AT cygwin DOT com>
 >>To: "John Maddock" <john AT johnmaddock DOT co DOT uk>; <cygwin AT cygwin DOT com>
 >>Sent: Friday, January 02, 2004 2:46 PM
 >>Subject: Re: Bug in fstream code and gcc-2 package?
 >>
 >>
 >>> At 07:54 AM 1/2/2004, John Maddock you wrote:
 >>> >The following example code works cleanly on all the platforms I've
 >>tested
 >>> >on, except the gcc-2 package where it segfaults:
 >>>
 >>>
 >>> The gcc-2 package has been removed as a package from Cygwin mirrors (or
 >>> should be) and is no longer supported.  Try it with the current Cygwin
 >>> gcc/g++ package (3.3.1).  Your code executes without a crash there.
 >>>
 >>>
 >>>
 >>> --
 >>> Larry Hall                              http://www.rfk.com
 >>> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
 >>> 838 Washington Street                   (508) 893-9889 - FAX
 >>> Holliston, MA 01746
 >>>
 >>>




-- 
=^..^=



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019