public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Aurelian Melinte <ame01@gmx.net>
To: Arthur Schwarz <aschwarz1309@att.net>
Cc: gdb@sourceware.org
Subject: Re: SIGSERV termination on return statement
Date: Tue, 09 Oct 2012 23:32:00 -0000	[thread overview]
Message-ID: <5074B404.9090402@gmx.net> (raw)
In-Reply-To: <1349819318.23713.YahooMailRC@web181302.mail.ne1.yahoo.com>

On 09/10/2012 5:48 PM, Arthur Schwarz wrote:
>     SlipCell&  SlipSublist::replace(SlipCell&  X) {               // Replace a cell
> on a list with a new cell
>        SlipCell&  cell = *this;
>        if (X.isData()) {
>           cell = assignData(X); // failure before return to this statement from
> method
> ***         delete this;
>        } else {
>           *this = X;
>        }
> ***      return cell;
>     }; // SlipCell&  SlipSublist::replace(SlipCell&  X)
>    

Are you returning from a deleted object then using it afterward?

Regards,
Aurelian

  reply	other threads:[~2012-10-09 23:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-09 21:48 Arthur Schwarz
2012-10-09 23:32 ` Aurelian Melinte [this message]
2012-10-10 16:01   ` Arthur Schwarz
2012-10-11  0:27     ` Aurelian Melinte
2012-10-11  9:40       ` John Gilmore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5074B404.9090402@gmx.net \
    --to=ame01@gmx.net \
    --cc=aschwarz1309@att.net \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).