From: Albert Ho <alberth@intellambda.com>
To: gdb@sources.redhat.com
Subject: gdbserver(ppc) segv on continue from gdb(x86) - v6.0
Date: Sat, 21 Feb 2004 01:13:00 -0000 [thread overview]
Message-ID: <4036B0DD.9030409@intellambda.com> (raw)
gdb version is 6.0. ppc kernel 2.4.18. linux-ppc-gcc is 2.95.3. cross
compiled from x86.
gdbserver on PPC8270 has segv when continue from gdb(x86):
The backtrace
=============
This GDB was configured as "--host=ppc-linux --target=powerpc-linux"...
Core was generated by `gdbserver :5000 foo'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libthread_db.so.1...done.
Loaded symbols for /lib/libthread_db.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 td_thr_get_info (th=0xf4240, infop=0x7ffff398) at
td_thr_get_info.c:35
35 td_thr_get_info.c: No such file or directory.
in td_thr_get_info.c
(gdb) bt
#0 td_thr_get_info (th=0xf4240, infop=0x7ffff398) at
td_thr_get_info.c:35
#1 0x10007044 in find_new_threads_callback (th_p=0xf4240,
data=0x7ffff398) at thread-db.c:289
#2 0x10006dd0 in thread_db_create_event (where=4294969443480472) at
thread-db.c:162
#3 0x10004a70 in check_breakpoints (stop_pc=4294969443480472) at
mem-break.c:201
#4 0x100059f4 in linux_wait_for_event (child=0x0) at linux-low.c:541
#5 0x10005b58 in linux_wait (status=0x7ffffd78 "T\005D") at
linux-low.c:645
#6 0x100041ac in mywait (statusp=0xf4240 <Address 0xf4240 out of
bounds>, connected_wait=2147480472) at target.c:97
#7 0x10003764 in main (argc=3, argv=0x7ffffdf4) at server.c:312
#8 0x0fee66c4 in __libc_start_main (argc=3, argv=0x7ffffdf4,
envp=0x7ffffe04, auxvec=0x7ffffe3c, rtld_fini=0xf4240,
stinfo=0x10007310, stack_on_entry=0x7ffff450) at
../sysdeps/powerpc/elf/libc-start.c:106
The question
============
The interesting thing is, gdb(x86) can stop/continue gdbserver(8270)
if place gdbserver under gdb on the PPC 8270. i.e.
$ gdb gdbserver
$ run :5000 foo
Is there a race condition in gdbserver in fetching thread info?
Thanks
Albert
next reply other threads:[~2004-02-21 1:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-21 1:13 Albert Ho [this message]
2004-02-21 1:18 ` Daniel Jacobowitz
2004-02-21 1:37 ` Albert Ho
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=4036B0DD.9030409@intellambda.com \
--to=alberth@intellambda.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