Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-83

shiboken.dump segfaults when called on deleted object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.2.x
    • Shiboken
    • None

    Description

      The following code leads to segfault:

      from PySide.QtCore import QObject
      import shiboken

      o = QObject()
      shiboken.delete(o)
      shiboken.dump(o)

      The root cause is std::string info(SbkObject* self) in libshiboken/basewrapper.cpp does not check to see if self->d->cptr is NULL before indexing it as an array.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            setanta Marcelo Lira
            njsmith Nathan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes