This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]