This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tdep/17379] New: PowerPC: internal-error: value_of_register_lazy: Assertion `frame_id_p (get_frame_id (frame))' failed.


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

            Bug ID: 17379
           Summary: PowerPC: internal-error: value_of_register_lazy:
                    Assertion `frame_id_p (get_frame_id (frame))' failed.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: emachado at sourceware dot org
          Reporter: emachado at sourceware dot org
                CC: uweigand at sourceware dot org

GDB throws this internal-error when debugging a piece of code in ppc64 (also
reproducible in ppc64le):

$ cat bug.S 
#include <ppc-asm.h>
FUNC_START(main)
        li      sp,0
        mtlr    sp
        blr
FUNC_END(main)

$ gcc -g bug.S -o bug

$ ~/gdb/binutils-gdb.git/build.orig/gdb/gdb ./bug 
GNU gdb (GDB) 7.8.50.20140911-cvs
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./bug...done.
(gdb) run
Starting program: /home/emachado/gdb/bugs/bug 

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) info registers 
../../gdb/findvar.c:290: internal-error: value_of_register_lazy: Assertion
`frame_id_p (get_frame_id (frame))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

../../gdb/findvar.c:290: internal-error: value_of_register_lazy: Assertion
`frame_id_p (get_frame_id (frame))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]