|
From: Bart V. A. <bar...@gm...> - 2007-02-22 17:40:31
|
There is the following comment in include/pub_tool_errormgr.h above VG_(maybe_record_error): The `extra' field can be stack-allocated; it will be copied by the core if needed (but it won't be copied if it's NULL). I do not understand this comment -- how can Valgrind's core copy the contents of the data the 'extra' pointer points at if it doesn't know the size of this data structure ? In the drd tool I allocate these 'extra' fields on the stack, but I'm afraid that this is the cause of the crash when starting the drd tool with Valgrind's command-line option -v. -- Regards, Bart Van Assche. |