From: "ismail dönmez" <ismail.donmez@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Latest 2.6 kernels broke debugging of threaded applications
Date: Sat, 14 Aug 2004 20:36:57 +0300 [thread overview]
Message-ID: <2a4f155d0408141036e114001@mail.gmail.com> (raw)
Hi all,
I am having weird problems with gdb & latest 2.6 kernels
I tested 2.6.6,.2.6.7,.2.6.8 and they all have the same problem. When
I try to debug a threaded application in gdb applications freezes and
gdb doesn't output anything. strace shows this interesting piece at
the point the application freezes :
<snip>
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [RTMIN])
wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP}], 0, NULL) = 17055
ptrace(PTRACE_GETREGS, 17055, 0, 0xbfffea60) = 0
ptrace(PTRACE_PEEKUSER, 17055, offsetof(struct user, u_debugreg) + 24,
[0xffff4ff0]) = 0
ptrace(PTRACE_PEEKTEXT, 17055, 0x4000af40, [0x5de58955]) = 0
ptrace(PTRACE_PEEKTEXT, 17055, 0x4000af40, [0x5de58955]) = 0
ptrace(PTRACE_POKEDATA, 17055, 0x4000af40, 0x5de589cc) = 0
ptrace(PTRACE_CONT, 17055, 0, SIG_0) = 0
wait4(-1, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP} | 0x30000], 0,
NULL) = 17055
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [RTMIN])
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [RTMIN])
ptrace(0x4201 /* PTRACE_??? */, 17055, 0, 0xbfffec08) = 0
wait4(17062, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], __WCLONE,
NULL) = 17062
ptrace(PTRACE_DETACH, 17062, 0, SIG_0) = 0
wait4(-1,
</snip>
Debugging works fine with 2.4.26 and 2.6.8-rc4-mm1. Any ideas?
P.S: I am on a Slackware 10 box.
Cheers,
ismail
--
Time is what you make of it
reply other threads:[~2004-08-14 17:37 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=2a4f155d0408141036e114001@mail.gmail.com \
--to=ismail.donmez@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.