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

segfault in PySide stable in Sbk_QCursor_Init

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.1.1
    • 1.1.0
    • Shiboken
    • None
    • Qt 4.8.0
      PySide latest stable versions
      64bit
    • eb2614d3ac818a6e2dfe85b1d1b98408f2d37f06

    Description

      I encountered this bug in matplotlib, where moving the mouse over a plot window causes a segfault.

      The same bug is described here: http://bugs.pyside.org/show_bug.cgi?id=1119 and here http://bugs.pyside.org/show_bug.cgi?id=1159. In the latter report, a test case is described, which runs fine on 32bit, but segfaults on 64bit. The actual error appears to be triggered by QCursor_Init (both for a matplotlib backtrace, and the minimal example below).

      (gdb) run
      Starting program: /data/home/nobackup/mhulsman/env_v1.0/sys_enhance/bin/python
      warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000
      [Thread debugging using libthread_db enabled]
      Python 2.7 (r27:82500, Mar 8 2012, 21:06:08)
      [GCC 4.6.2] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from PySide.QtCore import *
      >>> from PySide.QtGui import *
      >>> cursor = QCursor( Qt.BlankCursor )

      Program received signal SIGSEGV, Segmentation fault.
      0x00002aaaaf38434d in Shiboken::Conversions::isPythonToCppConvertible(SbkConverter*, _object*) () from /data/home/nobackup/mhulsman/env_v1.0/sys_enhance/lib/libshiboken-python2.7.so.1.1
      (gdb) bt
      #0 0x00002aaaaf38434d in Shiboken::Conversions::isPythonToCppConvertible(SbkConverter*, _object*) ()
      from /data/home/nobackup/mhulsman/env_v1.0/sys_enhance/lib/libshiboken-python2.7.so.1.1
      #1 0x00002aaab0861b41 in Sbk_QCursor_Init () from /data/home/nobackup/mhulsman/env_v1.0/sys_enhance/lib/python2.7/site-packages/PySide/QtGui.so
      #2 0x00002aaaaab56ac8 in type_call (type=<optimized out>, args=0x2aaaaaef77d0, kwds=0x0) at Objects/typeobject.c:725
      #3 0x00002aaaaaafa5a3 in PyObject_Call (func=0x2aaab12d7280, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2522
      #4 0x00002aaaaab9b5ed in do_call (nk=<optimized out>, na=<optimized out>, pp_stack=0x7fffffffd410, func=0x2aaab12d7280) at Python/ceval.c:4230
      #5 call_function (oparg=<optimized out>, pp_stack=0x7fffffffd410) at Python/ceval.c:4035
      #6 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2665
      #7 0x00002aaaaab9e595 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0,
      defcount=0, closure=0x0) at Python/ceval.c:3252
      #8 0x00002aaaaab9e6d2 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:666
      #9 0x00002aaaaabc1a32 in run_mod (arena=0x640cb0, flags=0x7fffffffd720, locals=0x640560, globals=0x640560, filename=0x2aaaaac0855f "<stdin>", mod=0x712698) at Python/pythonrun.c:1346
      #10 PyRun_InteractiveOneFlags (fp=<optimized out>, filename=0x2aaaaac0855f "<stdin>", flags=0x7fffffffd720) at Python/pythonrun.c:845
      #11 0x00002aaaaabc1c6e in PyRun_InteractiveLoopFlags (fp=0x395c3526a0, filename=0x2aaaaac0855f "<stdin>", flags=0x7fffffffd720) at Python/pythonrun.c:765
      #12 0x00002aaaaabc221c in PyRun_AnyFileExFlags (fp=0x395c3526a0, filename=0x2aaaaac0855f "<stdin>", closeit=0, flags=0x7fffffffd720) at Python/pythonrun.c:734
      #13 0x00002aaaaabd42cb in Py_Main (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:599
      #14 0x000000395c01d9b4 in __libc_start_main () from /lib64/libc.so.6
      #15 0x0000000000400619 in _start ()

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            marchulsman Marc Hulsman
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes