From: David Lecomber <david@allinea.com>
To: gdb <gdb@sources.redhat.com>
Subject: ptrace PEEKTEXT IO error?!
Date: Wed, 05 Oct 2005 17:10:00 -0000 [thread overview]
Message-ID: <1128531841.21837.96.camel@delmo.priv.wark.uk.streamline-computing.com> (raw)
Dear all,
I have a multithreaded code which is misbehaving in GDB (verified on
latest CVS). After threads are created, the target suddenly seems to
become unwriteable, and even unreadable in some bits.
(gdb) n
Single stepping until exit from function sleep,
which has no line number information.
main (argc=1, argv=0x7ffffffff3d8, environ=0x7ffffffff3e8) at hello.c:89
89 MPI_Init(&argc, &argv);
(gdb) n
[New Thread 32769 (LWP 18096)]
[New Thread 16386 (LWP 18097)]
[New Thread 32771 (LWP 18098)]
90 MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
(gdb) info threads
4 Thread 32771 (LWP 18098) 0x00002aaaab5f8bc9 in ioctl ()
from /lib64/libc.so.6
3 Thread 16386 (LWP 18097) 0x00002aaaab5f8bc9 in ioctl ()
from /lib64/libc.so.6
2 Thread 32769 (LWP 18096) 0x00002aaaab5f7829 in poll ()
from /lib64/libc.so.6
* 1 Thread 16384 (LWP 17994) main (argc=1, argv=0x7ffffffff3d8,
environ=0x7ffffffff3e8) at hello.c:90
(gdb) info address hello.c:90
No symbol "hello.c:90" in current context.
(gdb) info line
Line 90 of "hello.c" starts at address 0x402042 <main+316> and ends at
0x402056 <main+336>.
(gdb) n
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x402056: Input/output error.
If I then strace the running GDB, I see the following errors (and a few
more ptrace errors)..
ptrace(PTRACE_PEEKTEXT, 17994, 0x407480, [0]) = -1 EIO (Input/output
error)
ptrace(PTRACE_POKEDATA, 17994, 0x407480, 0xffffffffffffccff) = -1 EIO
(Input/output error)
Anyone know what could be going on here? It's a 2.6.11 kernel, x86_64
based on Debian.
Cheers
David
next reply other threads:[~2005-10-05 17:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 17:10 David Lecomber [this message]
2005-10-05 17:11 ` Daniel Jacobowitz
2005-10-05 18:26 ` David Lecomber
2005-10-05 18:40 ` David Lecomber
2005-10-05 18:41 ` Daniel Jacobowitz
2005-10-05 19:50 ` David Lecomber
2005-10-05 19:54 ` Daniel Jacobowitz
2005-10-05 20:31 ` David Lecomber
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=1128531841.21837.96.camel@delmo.priv.wark.uk.streamline-computing.com \
--to=david@allinea.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).