From: "Jüri Põldre" <jyri.poldre@artecdesign.com>
To: <gdb@sourceware.org>
Subject: Thread stuck in ioctl
Date: Thu, 14 Oct 2010 12:05:00 -0000 [thread overview]
Message-ID: <6B1F55F835FC4A81A2E9F991800A4E80@UserPC> (raw)
Hello,
DVB hardware platform is using ioctl based interface to engage kernel calls
from userspace. The code base is rather large and extends inside kernel to
two separate processors - one for video and another for audio decoding.
During bad signal quality one of these calls locks up causing userspace
thread to do the same. After some time watchdog resets device.
Although it is possible to add debug printouts to this interface doing so
would cause a lot of traffic and also shift process timings. Embedded
platforms are relatively slow and lot of debug info chokes them pretty fast.
It would be very helpful to print backtrace of stuck thread.
It is possible to start gdb debugging in non-stop mode. After ioctl locks
switch to locked thread with "thread nr" command works but nothing can be
done as it is running. Stopping thread with "interrupt" command does not
succeed because breakpoint in thread is never reached causing gdb to wait
forever.
Scheduler should be aware of locked thread environment. Can you tell me if
this is fundamental issue or can it be overcome? It is ok that program
cannot be debugged further, only information about stuck thread backtrace
is required.
HW platform MIPS32r2 300 MHz, Linux 2.6.18, gdb 7.2
Sincerely,
Jüri Põldre.
reply other threads:[~2010-10-14 12:05 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=6B1F55F835FC4A81A2E9F991800A4E80@UserPC \
--to=jyri.poldre@artecdesign.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