Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Juan <daniel.juan@gmail.com>
To: gdb@sourceware.org
Subject: posix semaphores not working under gdb
Date: Wed, 30 Nov 2005 10:03:00 -0000	[thread overview]
Message-ID: <f69bc2d80511300142p2568daa2yec581e1f191be2cc@mail.gmail.com> (raw)

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


             reply	other threads:[~2005-11-30  9:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-30 10:03 Daniel Juan [this message]
2005-11-30 10:40 ` Jim Blandy
2005-11-30 17:51   ` Daniel Juan
2005-12-01  7:55 Kenny Simpson
2005-12-01 13:16 ` Daniel Juan
2005-12-01 23:33   ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f69bc2d80511300142p2568daa2yec581e1f191be2cc@mail.gmail.com \
    --to=daniel.juan@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox