Re: [Bayes++] Crash on destruction of SIR_scheme
Brought to you by:
mistevens
From: Michael S. <ma...@mi...> - 2007-09-06 09:22:04
|
Hello, On Thursday 06 September 2007 06:02, yon wrote: > Hello, > > Just to follow up, I have isolated the problem to the resamples > member of SIR_scheme. > > The allocator for the underlying vector of unsigned ints obtains an > invalid finish ptr at some point, as noted, which causes the program > to hang when deconstructed. > > I don't think this member is touched in my code in the case under > consideration, but am attempting to isolate where this occurs. > > If someone knows what operations can modify the finish ptr of the > vector allocator for such a vector (some sort of invalid resize > operation?), that would be helpful to know. I think the most likely is probably an array overflow or pointer problem causing the finish ptr to be corrupted. This could be in Bayes++ but much more likely to be in your code :-) Not sure what system you are developing with but the debugger can help you out here. Certainly the Visual C++ debugger has the ability to set a breakpoint which is trigger when a memory location is modifed. You can use this to find any corruption of the finish ptr. Alternatively under Linux you the valgrind tool is very helpful to look for incorrect memory access. Good luck, Michael -- ___________________________________ Michael Stevens Systems Engineering 34128 Kassel, Germany Phone/Fax: +49 561 5218038 Navigation Systems, Estimation and Bayesian Filtering http://bayesclasses.sf.net ___________________________________ |