This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/15959] New: GDBserver hangs when started with --wrapper
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 16 Sep 2013 14:30:53 +0000
- Subject: [Bug server/15959] New: GDBserver hangs when started with --wrapper
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=15959
Bug ID: 15959
Summary: GDBserver hangs when started with --wrapper
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: server
Assignee: unassigned at sourceware dot org
Reporter: qiyao at gcc dot gnu.org
Use option --wrapper for first time, and get GDBserver hang there,
$ ./gdbserver/gdbserver --wrapper env TEST=5 -- :1234 ../foo.exe
Process ../foo.exe created; pid = 15074
GDB shows it hangs in sigsuspend
#0 0xb77ae424 in __kernel_vsyscall ()
#1 0x4ce9fd47 in sigsuspend () from /lib/libc.so.6
#2 0x080712f8 in my_waitpid (pid=pid@entry=-1, status=status@entry=0xbf97cff4,
flags=-2147483647, flags@entry=1073741824)
at ../../../../git/gdb/gdbserver/../nat/linux-waitpid.c:100
#3 0x0806954a in linux_wait_for_lwp (options=1073741824, wstatp=0xbf97cff4,
ptid=...) at ../../../../git/gdb/gdbserver/linux-low.c:1290
#4 linux_wait_for_event (ptid=..., wstat=wstat@entry=0xbf97cff4,
options=options@entry=1073741824) at
../../../../git/gdb/gdbserver/linux-low.c:1845
#5 0x0806a46c in linux_wait_1 (ptid=..., ourstatus=ourstatus@entry=0x80919f0
<last_status>, target_options=target_options@entry=0)
at ../../../../git/gdb/gdbserver/linux-low.c:2308
#6 0x0806b3b2 in linux_wait (ptid=..., ourstatus=0x80919f0 <last_status>,
target_options=0) at ../../../../git/gdb/gdbserver/linux-low.c:2782
#7 0x0805707c in mywait (ptid=..., ourstatus=ourstatus@entry=0x80919f0
<last_status>, options=options@entry=0, connected_wait=connected_wait@entry=0)
at ../../../../git/gdb/gdbserver/target.c:83
#8 0x080510ac in start_inferior (argv=0x90701e8) at
../../../../git/gdb/gdbserver/server.c:272
#9 0x0804a379 in main (argc=7, argv=0xbf97d244) at
../../../../git/gdb/gdbserver/server.c:2912
--
You are receiving this mail because:
You are on the CC list for the bug.