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

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).