This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: SIGSERV termination on return statement
- From: Aurelian Melinte <ame01 at gmx dot net>
- To: Arthur Schwarz <aschwarz1309 at att dot net>
- Cc: gdb at sourceware dot org
- Date: Tue, 09 Oct 2012 19:32:20 -0400
- Subject: Re: SIGSERV termination on return statement
- References: <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