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

Segmentation fault/access violation when connecting signal of temporary object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5: Not important
    • 6.5.1, 6.6.0
    • 6.5.0
    • PySide
    • None
    • Linux/Other display system, Windows
    • 9af348ae6 (dev), dfa32dcec (6.5)

    Description

      bug.py

       

      from PySide6.QtCore import QObject, Signal 
      class Signaller(QObject):
           signal = Signal() 
      Signaller().signal.connect(None)

      To reproduce, on Linux:

      pip install PySide6-Essentials==6.5.0 && python bug.py

      On Windows, it's a bit more involved to reproduce the crash:

      pip install pytest==7.3.1 PySide6-Essentials==6.5.0 && pip uninstall pytest-qt && pytest bug.py

       

      Attachments

        1. pyside2328_pyqt.py
          0.4 kB
        2. pyside2328_stack.txt
          120 kB
        3. pyside2328.py
          0.4 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              bers bers bers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes