Tim Gessner
|
Re: coredumps with multithreaded processes
|
Tim Gessner
08/28/2008 5:42 PM
post12586
|
Re: coredumps with multithreaded processes
|
|
|
Tim Gessner
|
Re: coredumps with multithreaded processes
|
Tim Gessner
09/02/2008 12:20 PM
post12693
|
Re: coredumps with multithreaded processes
The Memory Analysis tool running from the IDE freezes the remote QNX system (I am windows hosted).
Here is what I'm doing to test. I have a resource mgr which does not have any hardware device. It is a error logging
component which holds a stl deque in memory. It is multithreaded. I have an additional thread in that component which
takes the errors from the stl deque and writes them to a database.
The stl deque is protected with a mutex. The additional thread which updates the database blocks on a conditional
variable until an error is logged.
I have a very simple multithreaded test program which just writes error messages to the logging component. When I run
these two without the memory analysis, the event logging component crashes on a memory access of some type. The
specific access is random, but it is always on a memory allocation, deletion or simple read.
When I run the memory analysis from the IDE the keyboard on the remote QNX machine freezes until I stop the debugger
from the IDE.
Any help would be greatly appreciated! Thanx
Tim
|
|
|