public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9590: ifstream (inherited?) destructor overwrites memory causing segfault
@ 2003-02-13 20:18 paolo
  0 siblings, 0 replies; 4+ messages in thread
From: paolo @ 2003-02-13 20:18 UTC (permalink / raw)
  To: cgf, d.siegel, gcc-bugs, gcc-prs, k.schaefer, nobody

Synopsis: ifstream (inherited?) destructor overwrites memory causing segfault

Responsible-Changed-From-To: unassigned->cgf
Responsible-Changed-By: paolo
Responsible-Changed-When: Thu Feb 13 20:18:27 2003
Responsible-Changed-Why:
    Cygwin project lead.
State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Thu Feb 13 20:18:27 2003
State-Changed-Why:
    Hi. Could you possibly confirm this bug with an up to date
    Cygwin distribution? Can be serious...
    Thanks, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9590


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/9590: ifstream (inherited?) destructor overwrites memory causing segfault
@ 2003-02-25 16:06 cgf
  0 siblings, 0 replies; 4+ messages in thread
From: cgf @ 2003-02-25 16:06 UTC (permalink / raw)
  To: cgf, d.siegel, gcc-bugs, gcc-prs, k.schaefer, nobody

Synopsis: ifstream (inherited?) destructor overwrites memory causing segfault

Responsible-Changed-From-To: cgf->unassigned
Responsible-Changed-By: cgf
Responsible-Changed-When: Tue Feb 25 16:06:16 2003
Responsible-Changed-Why:
    I don't fix C++ problems

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9590


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/9590: ifstream (inherited?) destructor overwrites memory causing segfault
@ 2003-02-25 14:56 Karl George Schaefer
  0 siblings, 0 replies; 4+ messages in thread
From: Karl George Schaefer @ 2003-02-25 14:56 UTC (permalink / raw)
  To: cgf; +Cc: gcc-prs

The following reply was made to PR libstdc++/9590; it has been noted by GNATS.

From: Karl George Schaefer <k.schaefer@icarnegie.com>
To: paolo@gcc.gnu.org, cgf@gcc.gnu.org, d.siegel@icarnegie.com,
   gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
   gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/9590: ifstream (inherited?) destructor overwrites
 memory causing segfault
Date: Tue, 25 Feb 2003 09:49:37 -0500

 Paolo,
 
 Sorry for the delay.  I downloaded the latest version of Cygwin 1.3.20-1. 
 I ran the program as described in my report and encounter a segmentation 
 fault.
 
 Karl
 
 --On Thursday, February 13, 2003 8:18 PM +0000 paolo@gcc.gnu.org wrote:
 
 > Synopsis: ifstream (inherited?) destructor overwrites memory causing
 > segfault
 >
 > Responsible-Changed-From-To: unassigned->cgf
 > Responsible-Changed-By: paolo
 > Responsible-Changed-When: Thu Feb 13 20:18:27 2003
 > Responsible-Changed-Why:
 >     Cygwin project lead.
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: paolo
 > State-Changed-When: Thu Feb 13 20:18:27 2003
 > State-Changed-Why:
 >     Hi. Could you possibly confirm this bug with an up to date
 >     Cygwin distribution? Can be serious...
 >     Thanks, Paolo.
 >
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gc
 > c&pr=9590
 >
 
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/9590: ifstream (inherited?) destructor overwrites memory causing segfault
@ 2003-02-05 21:56 k.schaefer
  0 siblings, 0 replies; 4+ messages in thread
From: k.schaefer @ 2003-02-05 21:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: d.siegel


>Number:         9590
>Category:       libstdc++
>Synopsis:       ifstream (inherited?) destructor overwrites memory causing segfault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 05 21:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     k.schaefer@icarnegie.com
>Release:        unknown-1.0
>Organization:
>Environment:
Windows 2000 SP3 with Cygwin 1.3.19-1, running g++ (G++) 3.2 20020927 (prerelease)
>Description:
In the following example, uncommenting the char array illustrates that something in the destruction of the ifstream object overwrites memory.  Leaving it commented causes a segmenation fault.  The char array in the example code is the minimum buffer that will allow the program to execute without faulting.

//--- begin code
#include <fstream>

using namespace std;

//takes one param - a filename
int main(int argc, char *argv[]) {
  //when uncommented allows program not to segfault.
  //char a[17];
  ifstream infile(argv[1]);

  infile.close();

  return 0;
}

// -- end code
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-25 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-13 20:18 libstdc++/9590: ifstream (inherited?) destructor overwrites memory causing segfault paolo
  -- strict thread matches above, loose matches on Subject: below --
2003-02-25 16:06 cgf
2003-02-25 14:56 Karl George Schaefer
2003-02-05 21:56 k.schaefer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).