From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7856 invoked by alias); 9 Oct 2012 23:32:29 -0000 Received: (qmail 7847 invoked by uid 22791); 9 Oct 2012 23:32:28 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=BAYES_40,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mailout-de.gmx.net (HELO mailout-de.gmx.net) (213.165.64.23) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 09 Oct 2012 23:32:25 +0000 Received: (qmail invoked by alias); 09 Oct 2012 23:32:23 -0000 Received: from 209-197-162-119.cpe.distributel.net (EHLO [192.168.100.7]) [209.197.162.119] by mail.gmx.net (mp039) with SMTP; 10 Oct 2012 01:32:23 +0200 Message-ID: <5074B404.9090402@gmx.net> Date: Tue, 09 Oct 2012 23:32:00 -0000 From: Aurelian Melinte User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4 MIME-Version: 1.0 To: Arthur Schwarz CC: gdb@sourceware.org Subject: Re: SIGSERV termination on return statement References: <1349819318.23713.YahooMailRC@web181302.mail.ne1.yahoo.com> In-Reply-To: <1349819318.23713.YahooMailRC@web181302.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00050.txt.bz2 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