public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16200] New: Runbing inferior with incompatible architecture lead to crash
@ 2013-11-21 16:59 sanimir.agovic at intel dot com
  2013-11-21 17:01 ` [Bug gdb/16200] Running an " sanimir.agovic at intel dot com
  0 siblings, 1 reply; 2+ messages in thread
From: sanimir.agovic at intel dot com @ 2013-11-21 16:59 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/16200] Running an inferior with incompatible architecture lead to crash
  2013-11-21 16:59 [Bug gdb/16200] New: Runbing inferior with incompatible architecture lead to crash sanimir.agovic at intel dot com
@ 2013-11-21 17:01 ` sanimir.agovic at intel dot com
  0 siblings, 0 replies; 2+ messages in thread
From: sanimir.agovic at intel dot com @ 2013-11-21 17:01 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16200

sagovic <sanimir.agovic at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Runbing inferior with       |Running an inferior with
                   |incompatible architecture   |incompatible architecture
                   |lead to crash               |lead to crash

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-21 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-21 16:59 [Bug gdb/16200] New: Runbing inferior with incompatible architecture lead to crash sanimir.agovic at intel dot com
2013-11-21 17:01 ` [Bug gdb/16200] Running an " sanimir.agovic at intel dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).