From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25108 invoked by alias); 6 Oct 2014 13:12:46 -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 25081 invoked by uid 48); 6 Oct 2014 13:12:45 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/17300] crash in non-stop mode with continue -a & (readline_callback_read_char() called with no handler!) Date: Mon, 06 Oct 2014 13:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat dot com X-Bugzilla-Status: REOPENED 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/msg00025.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17300 --- Comment #3 from Pedro Alves --- It seems GDB loses the & in "c -a&" when putting that command in the history (a bug in itself), and so the second actually executes "c -a". Here's what I've reduced the reproducer to so far: $ gdb -ex "set non-stop on" --args /usr/bin/sleep 10000 (gdb) r Starting program: /usr/bin/sleep 10000 ^C Program received signal SIGINT, Interrupt. 0x00000033356bc780 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:81 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) (gdb) c -a& Continuing. (gdb) c -a Continuing. readline: readline_callback_read_char() called with no handler! Program received signal SIGABRT, Aborted. 0x0000003335635887 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); (top-gdb) -- You are receiving this mail because: You are on the CC list for the bug.