This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 06 Mar 2015 23:24:26 +0000
- Subject: [Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18089
Bug ID: 18089
Summary: py-prettyprint.c:print_children doesn't verify the
result of the children iterator is a tuple
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com
I was getting this error from a pretty-printer:
SystemError: new style getargs format but argument is not a tuple
and traced it to this:
if (! PyArg_ParseTuple (item, "sO", &name, &py_v))
{
=> gdbpy_print_stack ();
Py_DECREF (item);
continue;
}
We first need to make sure item is a tuple.
This is important to fix because the user gets no python backtrace,
and no clue of where to start looking.
--
You are receiving this mail because:
You are on the CC list for the bug.