From: "J. Johnston" <jjohnstn@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com, roland@redhat.com
Subject: Re: RFC: nptl threading patch for linux
Date: Mon, 12 May 2003 19:36:00 -0000 [thread overview]
Message-ID: <3EBFF7C3.2000905@redhat.com> (raw)
In-Reply-To: <20030510215939.GA4907@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Sat, May 10, 2003 at 05:18:55PM -0400, Daniel Jacobowitz wrote:
>
>>On Fri, May 09, 2003 at 06:00:11PM -0400, Daniel Jacobowitz wrote:
>>
>>>On Thu, Apr 24, 2003 at 04:52:04PM -0400, J. Johnston wrote:
>>>
>>>>The following is the last part of my revised nptl patch that has
>>>>been broken up per Daniel J.'s suggestion. There are no generated
>>>>files included in the patch.
>>>
>>>Well, this patch doesn't work for me :( Using 2.5.69, since I don't
>>>have any of the Red Hat kernels available here at the moment. It looks
>>>like GDB bellies up around the second thread creation.
>>
>>Sorry, I found the problem. Configure was not finding tkill. Entirely
>>a local problem; but how would you feel about something which set the
>>default number for __NR_tkill if __i386__? Or has someone already
>>discouraged that approach?
>>
Glad to hear this.
>>So:
>>
>>
>>> - stop_wait_callback should be fixed to not be so dumb when this
>>> happens.
>>
>>This one is still true. Patch for another day.
>>
>>
>>> - we need to figure out how we got into this mess.
>>> - and why the SIGSTOP never showed up.
>>
>>But these are resolved.
>>
>>
>>I now get fairly good test results with your patch and NPTL; there are
>>some failures because of the vsyscall issue being currently discussed.
>>Backtraces in linux-dp don't work because the threads are stopped in
>>the kernel page.
>>
>>I can also report that the kernel change I am testing to report thread
>>exits does not appear to cause your patch any problems. Yay! More on
>>that in a little while.
>
More good news.
>
> I could cause segfaults in both the inferior and GDB, and some missed
> single-steps. I don't know if my kernel patch is at fault or your
> patch, but I figured I'd write them up anyway for posterity and later
> review.
>
> Start with gdb.threads/print-threads. Put a breakpoint on
> thread_function and one on the printf ("Done\n") main. Run, disable
> the first breakpoint when you hit it, and say next. You'll hit the
> breakpoint in main instead of staying within thread_function.
>
This does not fail on my test system. I end up on line 42 after the next
is issued.
> This is timing sensitive. It didn't show up with set debug
> lin-lwp/target both on.
>
> In other interesting notes, it looks like there is a (related?) problem
> with target_thread_alive. The LWP I'm single-stepping in appears to be
> marked as not alive about half the time. No idea what's up with that.
> It appears to come from thread_db_thread_alive, not from
> lin_lwp_thread_alive, which always succeeds.
>
> I can't reproduce the SIGSEGV now for some reason.
>
Have you managed to trace which test in thread_db_alive is returning false?
-- Jeff J.
next prev parent reply other threads:[~2003-05-12 19:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 22:05 J. Johnston
2003-05-09 22:00 ` Daniel Jacobowitz
2003-05-09 22:36 ` Andrew Cagney
2003-05-10 0:58 ` Daniel Jacobowitz
2003-05-09 23:38 ` J. Johnston
2003-05-10 0:58 ` Daniel Jacobowitz
2003-05-10 21:18 ` Daniel Jacobowitz
2003-05-10 21:59 ` Daniel Jacobowitz
2003-05-12 19:36 ` J. Johnston [this message]
2003-08-17 20:49 ` Daniel Jacobowitz
2003-06-02 18:49 ` Michael Snyder
2003-06-04 20:52 ` J. Johnston
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=3EBFF7C3.2000905@redhat.com \
--to=jjohnstn@redhat.com \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
--cc=roland@redhat.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