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 python/19286] New: crash when requesting "pc" from pending frame object


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

            Bug ID: 19286
           Summary: crash when requesting "pc" from pending frame object
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I'm writing an unwinder in Python.

If I try to get the register "pc" from the pending frame object
that is passed to my unwinder, gdb crashes:

../../binutils-gdb/gdb/regcache.c:796: internal-error:
regcache_cooked_read_value: Assertion `regnum <
regcache->descr->nr_cooked_registers' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]

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

../../binutils-gdb/gdb/regcache.c:796: internal-error:
regcache_cooked_read_value: Assertion `regnum <
regcache->descr->nr_cooked_registers' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]


I think either this should work, or it should throw a python exception.

-- 
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]