public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple
@ 2015-03-08 7:18 dje at google dot com
2015-04-29 4:55 ` [Bug python/18089] " cvs-commit at gcc dot gnu.org
2015-04-29 5:04 ` dje at google dot com
0 siblings, 2 replies; 3+ messages in thread
From: dje at google dot com @ 2015-03-08 7:18 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug python/18089] py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple
2015-03-08 7:18 [Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple dje at google dot com
@ 2015-04-29 4:55 ` cvs-commit at gcc dot gnu.org
2015-04-29 5:04 ` dje at google dot com
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-04-29 4:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18089
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=69b4374a87e5029ac4831c7a4471815514df662f
commit 69b4374a87e5029ac4831c7a4471815514df662f
Author: Doug Evans <dje@google.com>
Date: Tue Apr 28 21:53:54 2015 -0700
PR python/18089
gdb/ChangeLog:
PR python/18089
* python/py-prettyprint.c (print_children): Verify result of children
iterator. Provide better error message.
* python/python-internal..h (gdbpy_print_python_errors_p): Declare.
* python/python.c (gdbpy_print_python_errors_p): New function.
gdb/testsuite/ChangeLog:
* gdb.python/py-bad-printers.c: New file.
* gdb.python/py-bad-printers.py: New file.
* gdb.python/py-bad-printers.exp: New file.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug python/18089] py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple
2015-03-08 7:18 [Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple dje at google dot com
2015-04-29 4:55 ` [Bug python/18089] " cvs-commit at gcc dot gnu.org
@ 2015-04-29 5:04 ` dje at google dot com
1 sibling, 0 replies; 3+ messages in thread
From: dje at google dot com @ 2015-04-29 5:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18089
dje at google dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from dje at google dot com ---
patch committed
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-29 5:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-08 7:18 [Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple dje at google dot com
2015-04-29 4:55 ` [Bug python/18089] " cvs-commit at gcc dot gnu.org
2015-04-29 5:04 ` dje at google dot com
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).