From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10204 invoked by alias); 4 Jan 2014 16:14:12 -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 10179 invoked by uid 48); 4 Jan 2014 16:14:10 -0000 From: "i at ztrix dot me" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/16392] New: info prog after failure to insert breakpoint can cause gdb crash Date: Sat, 04 Jan 2014 16:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i at ztrix dot me 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: 2014-q1/txt/msg00002.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16392 Bug ID: 16392 Summary: info prog after failure to insert breakpoint can cause gdb crash Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: breakpoints Assignee: unassigned at sourceware dot org Reporter: i at ztrix dot me Below are the steps to reproduce this bug. And this is the discussion thread about how we found this bug(Thanks to longld): https://github.com/longld/peda/issues/21 :) ~ # gdb -n -q /bin/cat Reading symbols from /usr/bin/cat...(no debugging symbols found)...done. (gdb) tbreak *0xdeadbeef Temporary breakpoint 1 at 0xdeadbeef (gdb) r Starting program: /bin/cat warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 Warning: Cannot insert breakpoint 1. Error accessing memory address 0xdeadbeef: Input/output error. (gdb) info prog thread.c:615: internal-error: is_thread_state: Assertion `tp' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y thread.c:615: internal-error: is_thread_state: Assertion `tp' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) y Aborted (core dumped) -- You are receiving this mail because: You are on the CC list for the bug.