From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20366 invoked by alias); 9 Dec 2014 10:07:28 -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 20336 invoked by uid 48); 9 Dec 2014 10:07:27 -0000 From: "mihai.ciric at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 10:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mihai.ciric at gmail dot com 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00353.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17627 Mihai C=C3=AEr=C3=AEc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mihai.ciric at gmail dot c= om --- Comment #2 from Mihai C=C3=AEr=C3=AEc --- Am currently facing this same problem myself. Running GDB 7.8 Am trying to debug an application which has it's own prompt. It reaches my prompt however after receiving an event it runs it but silently returns to = the gdb prompt. myprompt> anycommand =3Dthread-created,id=3D"67",group-id=3D"i1" *running,thread-id=3D"all" *application does what it's supposed to do* myprompt>=20 *here i press enter* <-but anything else is the same, basically reaches gdb &"\n" ^done *this is where it gets odd, because it doesn't always react the same, sometimes after gdb responds once, it returns to normal and, for example, a= fter another enter, myprompt is back up other times i don't get returned to my application, however all threads are still running. And if i hold enter pressed : &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done myprompt>=20 I get back inside my application Here's the same part with debug lwp: =3Dthread-exited,id=3D"68",group-id=3D"i1" &"LNW: waitpid(-1, ...) returned 0, ERRNO-OK\n" &"LLW: exit (ignore)\n" &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"\n" ^done &"linux_nat_wait: [process -1], [TARGET_WNOHANG]\n" &"LLW: enter\n" &"LNW: waitpid(-1, ...) returned 3442, ERRNO-OK\n" &"LLW: waitpid 3442 received Stopped (tty input) (stopped)\n" &"LLTA: KILL(SIG0) Thread 0xe5945b70 (LWP 3442) (OK)\n" &"LLW: Candidate event Stopped (tty input) (stopped) in Thread 0xe5945b70 (= LWP 3442).\n" Tell me if i there's any more information i can provide Mihai --=20 You are receiving this mail because: You are on the CC list for the bug. >>From gdb-prs-return-17111-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Dec 09 10:59:56 2014 Return-Path: Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 4069 invoked by alias); 9 Dec 2014 10:59: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 Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 4033 invoked by uid 48); 9 Dec 2014 10:59:55 -0000 From: "mihai.ciric at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: mihai.ciric at gmail dot com 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_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00354.txt.bz2 Content-length: 390 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17627 Mihai C=C3=AEr=C3=AEc changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical --=20 You are receiving this mail because: You are on the CC list for the bug. >>From gdb-prs-return-17112-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue Dec 09 13:30:17 2014 Return-Path: Delivered-To: listarch-gdb-prs@sources.redhat.com Received: (qmail 19129 invoked by alias); 9 Dec 2014 13:30:16 -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 Delivered-To: mailing list gdb-prs@sourceware.org Received: (qmail 19104 invoked by uid 48); 9 Dec 2014 13:30:16 -0000 From: "simon.marchi at ericsson dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't Date: Tue, 09 Dec 2014 13:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: simon.marchi at ericsson dot com 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: Message-ID: In-Reply-To: References: 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: 2014-q4/txt/msg00355.txt.bz2 Content-length: 572 https://sourceware.org/bugzilla/show_bug.cgi?id=17627 --- Comment #3 from Simon Marchi --- Hi Mihai, I sent this patch to gdb-patches, which fixes the problem I reported. https://sourceware.org/ml/gdb-patches/2014-12/msg00037.html Can you see if it helps for your problem? It specifically targets a bug when a thread exits. I see that your application has a lots of threads (...thread-created,id="67"...), so it's plausible that it will help you. Simon -- You are receiving this mail because: You are on the CC list for the bug.