[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Re: 0.37 dumps on my FreeBSD-6-stable amd64
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] Re: 0.37 dumps on my FreeBSD-6-stable amd64 |
Date: |
Mon, 29 Oct 2007 04:42:42 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Mon, Oct 29, 2007 at 10:33:41AM +0100, Lapo Luchini wrote:
> 177 shared_ptr & operator=(shared_ptr const & r) // never throws
> 178 {
> 179 px = r.px;
> 180 pn = r.pn; // shared_count::op= doesn't throw
> 181 return *this;
> 182 }
>
> ...and I have no clue how a variable assignement could dump a program,
> and only with -O2 with that regard.
Variable assignment can dump a program in this case, given that the
value being assigned is "r.px", and r is a reference, therefore
evaluated r.px involves a pointer dereference.
I'm not sure how one acquires a null reference to a shared_ptr,
though. Possibly something else is going wrong. (Have you
valgrind'ed?)
-- Nathaniel
--
"If you can explain how you do something, then you're very very bad at it."
-- John Hopfield
[Monotone-devel] Re: 0.37 dumps on my FreeBSD-6-stable amd64, Lapo Luchini, 2007/10/31