Pstack in a shared library (c/c++). Corrupted shared library?

valgrind.org would be my suggestion.

Up vote 1 down vote favorite share g+ share fb share tw.

I have a process that attaches to several shared libraries. One action, eg createObject1 works 99% but 1% creates a pstack. The problem is not easy to reproduce, it happens sometimes in real time.

The shared library has an array of various Object1. Before writing the new Object1, we are doing a get operation in order to see if the object already exists. The array is defined static at global scope and every object in the array is a pointer to an Object1.

As I have already wrote 99% the code works fine. How can I debug the issue? Is it possible a memory leak to overwrite the static data of the shared library?

Code in Linux c++ c linux shared-libraries link|improve this question edited Mar 8 '11 at 23:10 asked Mar 8 '11 at 22:39cateof8851316 96% accept rate.

valgrind.org/ would be my suggestion.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions