This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/18089] New: py-prettyprint.c:print_children doesn't verify the result of the children iterator is a tuple


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]