From: Andrew Cagney <cagney@gnu.org>
To: Manoj Iyer <manjo@austin.ibm.com>
Cc: gilliam@us.ibm.com, gdb-patches@sources.redhat.com
Subject: Re: [RFC] New thread testcase.
Date: Thu, 12 Aug 2004 16:04:00 -0000 [thread overview]
Message-ID: <411B94E1.30803@gnu.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0408101503500.30104@lazy>
> oh! sorry abt that... got confused btwn 'bugs'...
>
> The kernel bug was causing gdb to fail when passing a 32bit address to the
> kernel. this was causing 32 bit gdb to fail in linux_test_for_tracefork()
> by always returning second_pid = 0 in the PTRACE_GETEVENTMSG call.
>
> this resulted in linux_enable_event_reporting() not setting the PTRACE
> fork options for the pid and then the thread never received a SIGSTOP.
>
> John Engel, kernel developer, debugged and fixed this problem in the
> kernel after we reported this GDB problem to him...
>
> So, when you debug a multi-threaded app with 32bit GDB on a PPC64 system,
> and you set a break point at the thread function and tried to step, you
> get the message "reading register pc (#64): No such process." for example:
Ewww! Yes, very good test, should have exercised this [not so] edge
case years ago.
One tweak, can the sleep(100) be avoided, instead using synchronization
primatives? That way its clear that the test runs at full speed.
Andrew
next prev parent reply other threads:[~2004-08-12 16:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-09 22:18 [patch/testsuite/mi/copyright] gdb.mi/mi2-*.exp: update copyright years Michael Chastain
2004-08-10 6:10 ` [RFC] New thread testcase Manoj Iyer
2004-08-10 7:24 ` Michael Chastain
2004-08-10 15:13 ` Andrew Cagney
2004-08-10 20:22 ` Manoj Iyer
2004-08-10 20:33 ` Andrew Cagney
2004-08-10 20:44 ` Manoj Iyer
2004-08-12 16:04 ` Andrew Cagney [this message]
2004-08-27 3:25 ` Michael Snyder
2004-08-27 13:48 ` Manoj Iyer
2004-08-10 20:13 ` Manoj Iyer
2004-08-12 0:26 ` Michael Snyder
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=411B94E1.30803@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=gilliam@us.ibm.com \
--cc=manjo@austin.ibm.com \
/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