From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: XXX <710492440@qq.com>
Cc: gdb@sourceware.org
Subject: Re: looking for gdb's help
Date: Fri, 17 May 2019 00:37:00 -0000 [thread overview]
Message-ID: <20190515142838.GA2700877@host1.jankratochvil.net> (raw)
In-Reply-To: <tencent_BFF0537BE500EBD744189A00B384F5C26E06@qq.com>
On Tue, 14 May 2019 09:26:56 +0200, XXX wrote:
> i have a question about gdb debugging. while a signal cause a core dump, how
> can i get which thread cause the signal.
$ eu-readelf corefile # eu-readelf is from elfutils package
Owner Data size Type
CORE 336 PRSTATUS
info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
sigpend: <>
sighold: <>
pid: 2700200, ppid: 2700198, pgrp: 2700198, sid: 2652754
^^^^^^^ = crashed thread TID
...
CORE 136 PRPSINFO
state: 2, sname: D, zomb: 0, nice: 0, flag: 0x0000000040404404
uid: 1001, gid: 1001, pid: 2700199, ppid: 2700198, pgrp: 2700198
^^^^^^^ = crashed process PID
Jan
prev parent reply other threads:[~2019-05-15 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-14 7:35 XXX
2019-05-14 16:17 ` Simon Marchi
2019-05-14 22:04 ` Simon Marchi
2019-05-17 0:37 ` Jan Kratochvil [this message]
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=20190515142838.GA2700877@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=710492440@qq.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