Re: [Bayes++] Crash on destruction of SIR_scheme
Brought to you by:
mistevens
|
From: Michael S. <ma...@mi...> - 2007-09-10 12:49:28
|
On Sunday 09 September 2007 00:57, yon wrote:
> Hello Michael,
>
> Copying this message to the list in case it may be useful to others.
>
> Following up on my previous email, the resamples vector has a valid
> memory allocation inside the SIR_scheme constructor when it is
> created, as I am able to verify in the debugger. As soon as I step
> from that constructor back out to the constructor of the class I
> derived from SIR_scheme, the _M_finish ptr of resamples' allocator is
> invalid in the way I described before. Program-wise, nothing occurs
> between (not even the constructors of other members are called yet),
> except that the context in which I am looking at this variable changes.
Two possibilities.
a) Something inbetween is changing it. I guess you would have to single step
and the machine code level.
b) The debugger is not showing the corruption until to late.
> As noted earlier, when I destroy my class instance, the program is
> stuck in an infinite loop due to the invalid _M_finish ptr, as I
> verify in the debugger.
>
> I can't see any way for this to be occuring. I'm going to try to
> change some project related settings and rearrange the order of
> members of the class to see if there is any change in behavior.
This is starting to look like a compiler bug. Which compiler are you using?
Do you have a small test case? If so maybe you can send it to see if the
problem is reproducable.
All the best,
Michael
--
___________________________________
Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation and
Bayesian Filtering
http://bayesclasses.sf.net
___________________________________
|