delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Boris Schaeling" <boriss AT web DOT de> |
To: | "Chris January" <chris AT atomice DOT net>, |
"Cygwin AT Cygwin DOT Com" <cygwin AT cygwin DOT com> | |
Subject: | RE: Bug in g++: Testcase exits with segmentation fault |
Date: | Tue, 14 Jan 2003 18:46:46 +0100 |
Message-ID: | <LOBBKDBPKEGJJFKNFHKBOENLIFAA.boriss@web.de> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
In-Reply-To: | <LPEHIHGCJOAIPFLADJAHMEFIDDAA.chris@atomice.net> |
Importance: | Normal |
> -----Original Message----- > From: cygwin-return-64848-boriss=web DOT de AT cygwin DOT com > [mailto:cygwin-return-64848-boriss=web DOT de AT cygwin DOT com]On Behalf Of Chris > January > Sent: Tuesday, January 14, 2003 6:01 PM > To: Boris Schaeling > Cc: Cygwin AT Cygwin DOT Com > Subject: RE: Bug in g++: Testcase exits with segmentation fault > [...] > The bug is actually in your testcase. > The line: > Observers.push_back(observer()); > creates a temporary observer object. So when the line > observer::observer() { Select.give(this); } > calls give(), it leaves a dangling pointer. Oh, you are right. I've forgotten to use a smart pointer ... thanks for your feedback! Boris -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |