|
From: Philippe W. <phi...@sk...> - 2012-06-05 20:40:44
|
On Tue, 2012-06-05 at 18:03 +0200, Christoph Bartoschek wrote:
> I am sure that the spin lock is not used recursively because the code
> basically looks like this:
>
> mutex m;
> int data = 0;
>
> int func()
> {
> m.lock();
> int ret = ++data;
> m.unlock();
> return ret;
> }
>
> This is the only occurence of the lock.
Well, then that looks like a real bug in the pthread lib
(or a bug in the Valgrind simulation e.g. of atomic instructions use
by the pthread lib ?).
If you have a small reproducer, that will help to dig into the problem.
Otherwise, gdb on Valgrind and/or Valgrind gdbserver might help
you to see what is going (wrong).
Philippe
|