mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chase Douglas <chasedouglas.lists@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Signal debugging/tracing
Date: Tue, 16 Sep 2008 16:47:34 -0400	[thread overview]
Message-ID: <C8EF81DF-B01A-45B4-BBC5-7979A032381D@gmail.com> (raw)

I'm debugging a uClibc pthreads issue that occurs during a stress test  
where many threads are looping many times forking off child processes  
that exec() other executables. Child processes are writing to a pipe  
that the parent threads are reading. After some iterations in the  
loops, the threads that are reading from the pipe using read() are  
getting EINTR. If you put the read in a loop so that an EINTR is  
ignored and you just try again, each subsequent read call returns  
immediately with EINTR again.

I'm assuming right now that the EINTR is due to a stray signal  
occurring somewhere, probably due to pthreads. Unfortunately, my  
debugging isn't showing that the process is signaling any other  
process or itself in a way that would cause an EINTR. All I see are  
SIGRTMIN signals getting raised. If it truly is an issue of signals  
being raised, what techniques can be used to determine what signals  
are being sent to the process and from where are the signals coming  
from?

Thanks,
Chase Douglas

                 reply	other threads:[~2008-09-16 20:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=C8EF81DF-B01A-45B4-BBC5-7979A032381D@gmail.com \
    --to=chasedouglas.lists@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®