[xenial] backtrace gives python error on i386

Bug #1513922 reported by Sebastien Bacher
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
Fix Released
High
Unassigned

Bug Description

That's using i386, using "backtrace" gives those errors

"Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/FrameDecorator.py", line 97, in function
    if not isinstance(self._base, gdb.Frame):
SystemError: <built-in function isinstance> returned a result with an error set

#1 0xffffffff in OverflowError: Python int too large to convert to C long"

Revision history for this message
Julian Taylor (jtaylor) wrote :

can't reproduce from an amd64 kernel, though this patch might be worth a try

--- gdb-7.10.orig/gdb/python/py-framefilter.c
+++ gdb-7.10/gdb/python/py-framefilter.c
@@ -1111,7 +1111,7 @@ py_print_frame (PyObject *filter, int fl

          if (paddr != Py_None)
            {
- address = PyLong_AsLong (paddr);
+ address = PyLong_AsUnsignedLongLong (paddr);
              has_addr = 1;
            }
          Py_DECREF (paddr);

Revision history for this message
Sebastien Bacher (seb128) wrote :

The patch indeed fixes the issue, thanks

Changed in gdb (Ubuntu):
importance: Undecided → High
summary: - [xenial] backtrace gives python error
+ [xenial] backtrace gives python error on i386
tags: added: rls-x-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdb - 7.10.90.20160220-0ubuntu1

---------------
gdb (7.10.90.20160220-0ubuntu1) xenial; urgency=medium

  * Snapshot, taken from the gdb-7.11 branch.
  * Build again the pdf docs with fixed texinfo.
  * Fix OverflowError in backtrace command on 32bit kernels. LP: #1513922.

 -- Matthias Klose <email address hidden> Sat, 20 Feb 2016 17:52:18 +0100

Changed in gdb (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.