From: Michael Elizabeth Chastain <mec@shout.net>
To: carlton@kealia.com, gdb@sources.redhat.com
Subject: Re: attach.exp failure
Date: Tue, 05 Aug 2003 17:21:00 -0000 [thread overview]
Message-ID: <200308051721.h75HLXbq026687@duracef.shout.net> (raw)
Well now that's interesting.
attach 1065
Attaching to program: /gdb/mirror/src/gdb/testsuite/gdb.base/attach2, process 1065
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x420b0205 in nanosleep () from /lib/i686/libc.so.6
(gdb) PASS: gdb.base/attach.exp: attach call
i r r3
ERROR: Couldn't send p should_exit = 1 to GDB.
UNRESOLVED: gdb.base/attach.exp: p should_exit = 1
ERROR: Couldn't send c to GDB.
UNRESOLVED: gdb.base/attach.exp: c
Looks like gdb crashed or went into a loop. Probably crashed because
if it went into a loop, the test would take some long $TIMEOUT time
to run. Are there any funky core files lying around?
The target program is inside nanosleep, probably called from sleep, and
I know that gdb screws up the frame info when it backtraces through
sleep.
But I have never gotten this behavior. The connection between
'nanosleep' and a crash is just too tenuous. Your problem has the
word 'nanosleep' in it but I just don't see a smoking gun linking
it to the 'sleep' frame info problem. :(
What vendor/version of linux are you running on?
Can you disassemble 'sleep' from libc.so and post the first few
instructions?
Want to try this patch?
http://sources.redhat.com/ml/gdb-patches/2003-08/msg00053.html
next reply other threads:[~2003-08-05 17:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-05 17:21 Michael Elizabeth Chastain [this message]
2003-08-05 17:39 ` David Carlton
2003-08-05 18:06 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2003-08-05 19:55 Michael Elizabeth Chastain
2003-08-05 16:50 David Carlton
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=200308051721.h75HLXbq026687@duracef.shout.net \
--to=mec@shout.net \
--cc=carlton@kealia.com \
--cc=gdb@sources.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