Re: [Bayes++] Crash on destruction of SIR_scheme
Brought to you by:
mistevens
From: yon <yo...@ci...> - 2007-09-11 21:21:55
|
Hello, Thank you for the advice. I received some other suggestions in the mean time and haven't found an answer. I have little luck with the debugger, including hardware watchpoints on those memory locations. Indeed, it's not clear that the debugger is indicating this problem when it occurs. However, it is clear that the resamples array is in a corrupted state as soon as SIR_scheme is created. I have resisted, but may be forced., to inspect matters at the assembler level. The following code reproduces the corrupt state for me: SIR_random_impl RandomHelper; bf::SIR_scheme mySirScheme(6, 10, RandomHelper); The RandomHelper is not called in the SIR_scheme constructor, so it can't possibly be to blame. Almost any operation on resamples after that breaks it (because the array bounds are completely wrong). I verified that I can instantiate and manipulate other std::vector<size_t> on my computer. In the SIR_scheme constructor, the only significant operation after resamples is created is the initialization of the wir member (an FMVec type). The compiler is gcc 4.0.1. My platform is OS X. The dev environment is xcode using the gdb debugger and the xcode debugger. Thanks for any thoughts. Best, Yon |