posix semaphores not working under gdb

Daniel Juan daniel.juan@gmail.com
Wed Nov 30 17:51:00 GMT 2005


Totally agree,

I don't think that GDB is the responsible of this strange behaviour, 
I only would like to know if someone experienced something similar
when debugging a multithreaded application. Because I can't, right
now, find any clue on whats wrong In the code.

On 11/30/05, Jim Blandy <jimb@red-bean.com> wrote:
> I'd be surprised if GDB were really disturbing the behavior of the
> semaphores.  It's much more likely that GDB is disturbing the
> real-time behavior of your program and showing up a bug in the locking
> that your program, just by luck, never encounters when it's not being
> debugged.
>
> I don't know of any stories offhand of GDB breaking semaphores or mutexes.
>


--
Daniel Juan Boned
e-mail: daniel(dot)juan(at)gmail.com



More information about the Gdb mailing list