This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIGSERV termination on return statement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]