|
From: Yogesh B. <ybh...@ya...> - 2003-04-15 00:35:03
|
Hello, I am using valgrind for a code that uses testbuilder (www.testbuilder.net). Testbuilder is verification C++ class library that uses quickthreads to provide concurrency. I get numerous errors like: Address 0x43096454 is on thread 1's stack This error occurs at a line that looks like: if (tvm.rst == 1) { tvm is a reference to an object that was created on heap in the main testbuilder thread. rst is a data member of tvm. So I could not quite figure out the meaning of this messege. Any help understanding this error msg is greatly appreciated. Thanks, -- Yogesh PS. I thank the creators of valgrind for an excellent tool. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |
|
From: Nicholas N. <nj...@ca...> - 2003-04-15 14:25:55
|
On Mon, 14 Apr 2003, Yogesh Bhagwat wrote:
> I get numerous errors like:
> Address 0x43096454 is on thread 1's stack
>
> This error occurs at a line that looks like:
>
> if (tvm.rst == 1) {
>
> tvm is a reference to an object that was created on heap in the main
> testbuilder thread. rst is a data member of tvm.
>
> So I could not quite figure out the meaning of this messege.
> Any help understanding this error msg is greatly appreciated.
Well, 'tvm' itself may be on the stack; you could add a
debugging-printf() at that point to confirm this. I don't know if this
will make things any clearer, though.
N
|