This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
posix semaphores not working under gdb
- From: Daniel Juan <daniel dot juan at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 30 Nov 2005 10:42:15 +0100
- Subject: posix semaphores not working under gdb
Hi,
I'm trying to debug a multithreaded application whith gdb ( using ddd
gui) and it seems that posix semaphores (sem_wait, sem_post) are not
working as expected when I run the app in the debugger.
Basically, the application has two semaphorized threads:
- an openGL drawing one, and a message processing one. (while
drawing, it's not permitted to process, and vice versa).
and it seems that, when I run the app whith the debugger, sometimes,
the processing thread unlocks the semaphore (and starts processing)
while drawing is being done.
I don't know what I'm doing wrong.
Has someone experienced any similar issue?
# gdb --version
GNU gdb 6.3-debian
# g++ --version
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
# uname -roms
Linux 2.6.11.7-mppe i686 GNU/Linux
Thanks a lot.
--
Daniel Juan Boned
e-mail: daniel(dot)juan(at)gmail.com