From: Matthias Klose <doko@ubuntu.com>
To: gdb-patches@sourceware.org
Cc: Sebastien Bacher <seb128@ubuntu.com>,
Julian Taylor <jtaylor.debian@googlemail.com>
Subject: [patch] fix OverflowError in backtraces with 32bit kernels
Date: Sat, 20 Feb 2016 17:19:00 -0000 [thread overview]
Message-ID: <56C8A021.1000800@ubuntu.com> (raw)
This was reported at
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1513922
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"
and a patch was suggested by Julian Taylor, which applies to the trunk as well.
Matthias
--- 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);
next reply other threads:[~2016-02-20 17:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-20 17:19 Matthias Klose [this message]
2016-10-04 14:24 ` Pedro Alves
2016-10-04 16:16 ` Yao Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56C8A021.1000800@ubuntu.com \
--to=doko@ubuntu.com \
--cc=gdb-patches@sourceware.org \
--cc=jtaylor.debian@googlemail.com \
--cc=seb128@ubuntu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).