From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4538 invoked by alias); 16 Sep 2013 14:30:55 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 4503 invoked by uid 48); 16 Sep 2013 14:30:55 -0000 From: "qiyao at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug server/15959] New: GDBserver hangs when started with --wrapper Date: Mon, 16 Sep 2013 14:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qiyao at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q3/txt/msg00351.txt.bz2 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 , target_options=target_options@entry=0) at ../../../../git/gdb/gdbserver/linux-low.c:2308 #6 0x0806b3b2 in linux_wait (ptid=..., ourstatus=0x80919f0 , target_options=0) at ../../../../git/gdb/gdbserver/linux-low.c:2782 #7 0x0805707c in mywait (ptid=..., ourstatus=ourstatus@entry=0x80919f0 , 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.