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

signalFree may segfault under pydev

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.0.2
    • PySide
    • None
    • Linux/X11, macOS

    Description

      Running the snippet below under pydev (PyCharm's debugger) causes a segmentation fault in PySide6's signalFree():

      from PySide6.QtCore import *
      app = QCoreApplication([])
      QThread(app)
      class Foo(QObject):
          ready = Signal()
      

      Not sure if the issue lies with pydev or PySide6, though I wasn't able to reproduce this crash with your competitor.

      pydev is launched via PyCharm with the following command:

      /opt/homebrew/bin/python3 -X pycache_prefix=/Users/u/Library/Caches/JetBrains/PyCharmCE2024.2/cpython-cache /Applications/PyCharm\ CE.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py --multiprocess --qt-support=pyside6 --client 127.0.0.1 --port 52573 --file signalfree1.py 

      Attached is a macOS crash report. I could reproduce this on Linux as well.

      Python 3.13.0, PySide6 6.8.0.2.

      Attachments

        1. crashreport.txt
          46 kB
        2. PYSIDE-2923.py
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ij Iliyas Jorio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes