From: xxhdx1985126 <xxhdx1985126@163.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: How to determine the thread holding a mutex?
Date: Tue, 10 Jan 2017 10:34:00 -0000 [thread overview]
Message-ID: <65e6915e.b19a.15987f1923b.Coremail.xxhdx1985126@163.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 276 bytes --]
Hi, everyone.
I'm trying to debug a problem that appears to be a deadlock. I wonder if I can use gdb to find out which thread is holding a mutex. If so, my work would be much easier, as there are many threads in my program.
Please help me, Thank you:-)\x16º&ÖëzÛ«y×¹b²Ö«r\x18\x1d
next reply other threads:[~2017-01-10 10:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-10 10:34 xxhdx1985126 [this message]
2017-01-10 17:09 ` Philippe Waroquiers
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=65e6915e.b19a.15987f1923b.Coremail.xxhdx1985126@163.com \
--to=xxhdx1985126@163.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