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

segfault in QApplication.setOverrideCursor()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 1.1.1
    • 1.1.0
    • Shiboken
    • None
    • Segfault occurs on 64-bit Ubuntu 11.04, but not on 32-bit Fedora Core 16
    • eb2614d3ac818a6e2dfe85b1d1b98408f2d37f06

    Description

      The following short test program segfaults on my 64-bit Ubuntu system, but
      works perfectly on my 32-bit Fedora system.

      import sys
      from PySide.QtGui import *
      from PySide.QtCore import *
      
      app = QApplication ( sys.argv )
      app.setOverrideCursor ( QCursor ( Qt.BlankCursor ) )
      window = QFrame()
      layout = QGridLayout ( window )
      window.show()
      sys.exit ( app.exec_() )
      

      I doubt that this stack trace is very useful, since it lacks debugging symbols,
      but it does indicate that the crash happens in Shiboken:

      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff4b167ed in
      Shiboken::Conversions::isPythonToCppConvertible(SbkConverter*, _object*) ()
      from /usr/lib/libshiboken-python2.7.so.1.1
      (gdb) bt
      #0  0x00007ffff4b167ed in
      Shiboken::Conversions::isPythonToCppConvertible(SbkConverter*, _object*) ()
      from /usr/lib/libshiboken-python2.7.so.1.1
      #1  0x00007ffff56bfe62 in ?? ()
         from /usr/lib/python2.7/dist-packages/PySide/QtGui.so
      #2  0x000000000048928d in ?? ()
      #3  0x000000000045d864 in PyObject_Call ()
      #4  0x0000000000496c4e in PyEval_EvalFrameEx ()
      #5  0x000000000049d325 in PyEval_EvalCodeEx ()
      #6  0x00000000004ecb02 in PyEval_EvalCode ()
      #7  0x00000000004fdc74 in ?? ()
      #8  0x000000000042c182 in PyRun_FileExFlags ()
      #9  0x000000000042cb4a in PyRun_SimpleFileExFlags ()
      #10 0x0000000000418c9e in Py_Main ()
      #11 0x00007ffff69c2eff in __libc_start_main ()
         from /lib/x86_64-linux-gnu/libc.so.6
      #12 0x00000000004c62b1 in _start ()
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            nmelchior Nik Melchior
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes