public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/15959] New: GDBserver hangs when started with --wrapper
@ 2013-09-16 14:30 qiyao at gcc dot gnu.org
  2013-09-17  3:59 ` [Bug server/15959] " qiyao at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: qiyao at gcc dot gnu.org @ 2013-09-16 14:30 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-18  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-16 14:30 [Bug server/15959] New: GDBserver hangs when started with --wrapper qiyao at gcc dot gnu.org
2013-09-17  3:59 ` [Bug server/15959] " qiyao at gcc dot gnu.org
2013-09-18  2:00 ` cvs-commit at gcc dot gnu.org
2013-09-18  2:01 ` qiyao at gcc dot gnu.org

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).