From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8069 invoked by alias); 21 Nov 2013 16:59:56 -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 8045 invoked by uid 48); 21 Nov 2013 16:59:55 -0000 From: "sanimir.agovic at intel dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/16200] New: Runbing inferior with incompatible architecture lead to crash Date: Thu, 21 Nov 2013 16:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: sanimir.agovic at intel 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_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-q4/txt/msg00347.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16200 Bug ID: 16200 Summary: Runbing inferior with incompatible architecture lead to crash Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: sanimir.agovic at intel dot com Selecting an architecture which is not compatible with the target architecture and running an inferior crashes gdb with an internal error 'bad register size'. One cannot recover gdb from this error anymore (Recursive internal problem) NOTE: This requires at least support for two incompatible targets e.g. --enable-targets=mips,sparc (or all) $ gdb -batch -ex 'set architecture mips' -ex run /bin/ls stdout> The target architecture is assumed to be mips stdout> warning: Selected architecture mips is not compatible with reported target stdout> architecture i386:x86-64 stdout> warning: Architecture rejected target-supplied description stdout> ../../../gdb/gdb/mips-tdep.c:715: internal-error: bad register size stdout> A problem internal to GDB has been detected, stdout> further debugging may prove unreliable. stdout> Quit this debugging session? (y or n) [answered Y; input not from terminal] stdout> ../../../gdb/gdb/mips-tdep.c:715: internal-error: bad register size stdout> A problem internal to GDB has been detected, stdout> further debugging may prove unreliable. stdout> Create a core file of GDB? (y or n) [answered Y; input not from terminal] stdout> zsh: abort (core dumped) gdb -batch -ex 'set architecture mips' -ex run /bin/ls -- You are receiving this mail because: You are on the CC list for the bug.