From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17310 invoked by alias); 28 Aug 2013 10:45:18 -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 17287 invoked by uid 48); 28 Aug 2013 10:45:18 -0000 From: "pmuldoon at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug python/15461] crash: gdb-7.6 gdbarch in archpy_disassemble() overwritten with NULL causes crash due to assert(gdbarch != NULL) Date: Wed, 28 Aug 2013 10:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pmuldoon at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: pmuldoon at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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: 2013-q3/txt/msg00274.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15461 Phil Muldoon changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Phil Muldoon --- gdb.Architecture should never be instantiated directly. Regardless, we should gate the calls to the functions to check that there is a valid architecture. I have a patch pending for this. I will update the PR when it is submitted, reviewed and accepted. Just as a note, to get an architecture object, one should obtain it from a frame. For example: frame = gdb.selected_frame() arch = frame.architecture() As each frame can have a different architecture. -- You are receiving this mail because: You are on the CC list for the bug.