public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/5006: Multiple temporary objects created on stack in the same location.
@ 2002-03-19  4:46 Richard Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Smith @ 2002-03-19  4:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR optimization/5006; it has been noted by GNATS.

From: Richard Smith <richard@ex-parrot.com>
To: <gcc-gnats@gcc.gnu.org>,  <gcc-prs@cc.gnu.org>,  <richard@ex-parrot.com>, 
     <gcc-bugs@gcc.gnu.org>,  <nobody@gcc.gnu.org>
Cc:  
Subject: Re: optimization/5006: Multiple temporary objects created on stack
 in the same location. 
Date: Tue, 19 Mar 2002 12:44:43 +0000 (GMT)

 It looks like this has been fixed on the 3.1 branch... at least the test
 cases that I originally had are now all running happily.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5006
 
 --
 Richard Smith
 


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

* Re: optimization/5006: Multiple temporary objects created on stack in the same location.
@ 2002-04-03  1:21 rth
  0 siblings, 0 replies; 3+ messages in thread
From: rth @ 2002-04-03  1:21 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, richard

Synopsis: Multiple temporary objects created on stack in the same location.

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr  3 01:21:51 2002
State-Changed-Why:
    Reported fixed for 3.1.

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


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

* optimization/5006: Multiple temporary objects created on stack in the same location.
@ 2001-12-04  3:26 richard
  0 siblings, 0 replies; 3+ messages in thread
From: richard @ 2001-12-04  3:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5006
>Category:       optimization
>Synopsis:       Multiple temporary objects created on stack in the same location.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 04 03:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Richard Smith
>Release:        3.0.2 (and 3.0.1)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
When compiling with -O, the compiler creates a temporary object of type auto_ptr<A> on the stack.  It then overwrites this with a temporary of type A before calling the destructor on the original auto_ptr<A>.  This tries to call ::operator delete() on what it thinks is the heap-allocated pointer owned by the auto_ptr but is actually a string literal owned by A.  Depending on the exact memory layout, a segv sometimes results.
>How-To-Repeat:
Build with -O to duplicate the bug.  A run-time segv (usually) results.
>Fix:

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


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

end of thread, other threads:[~2002-04-03  9:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19  4:46 optimization/5006: Multiple temporary objects created on stack in the same location Richard Smith
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03  1:21 rth
2001-12-04  3:26 richard

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).