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

Crash when Slot is a decorated method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.3.0, 6.5.0
    • PySide
    • None
    • Linux/X11
    • a088afe16 (dev), 65ef70760 (6.5)

    Description

      When using a decorated method as a Slot, connecting a signal to it fails on segfault.

      Reproducer is attached. Here is the bactrace when running on my computer.

      {{Core was generated by `python3 minimal_test.py'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x00007fb033d90167 in ?? () from /home/maria/.local/lib/python3.9/site-packages/PySide6/libpyside6.abi3.so.6.5
      [Current thread is 1 (Thread 0x7fb049cc1740 (LWP 1005493))]
      (gdb) #0  0x00007fb033d90167 in ?? () from /home/maria/.local/lib/python3.9/site-packages/PySide6/libpyside6.abi3.so.6.5
      #1  0x00007fb033d904a2 in ?? () from /home/maria/.local/lib/python3.9/site-packages/PySide6/libpyside6.abi3.so.6.5
      #2  0x00007fb033d9072c in PySide::qobjectConnectCallback(QObject*, char const*, _object*, Qt::ConnectionType) ()
         from /home/maria/.local/lib/python3.9/site-packages/PySide6/libpyside6.abi3.so.6.5
      #3  0x00007fb033f74866 in ?? () from /home/maria/.local/lib/python3.9/site-packages/PySide6/QtCore.abi3.so
      #4  0x000000000053f350 in ?? ()
      #5  0x00000000005ce922 in PyObject_CallObject ()
      #6  0x00007fb033d9b565 in ?? () from /home/maria/.local/lib/python3.9/site-packages/PySide6/libpyside6.abi3.so.6.5
      #7  0x000000000052ab71 in ?? ()
      #8  0x0000000000512192 in _PyEval_EvalFrameDefault ()
      #9  0x00000000005106ed in ?? ()
      #10 0x0000000000528d21 in _PyFunction_Vectorcall ()
      #11 0x0000000000537b80 in ?? ()
      #12 0x000000000051d6f5 in _PyObject_MakeTpCall ()
      #13 0x00000000005170e4 in _PyEval_EvalFrameDefault ()
      #14 0x00000000005106ed in ?? ()
      #15 0x0000000000510497 in _PyEval_EvalCodeWithName ()
      #16 0x00000000005f5be3 in PyEval_EvalCode ()
      #17 0x0000000000619de7 in ?? ()
      #18 0x0000000000615610 in ?? ()
      #19 0x0000000000619d79 in ?? ()
      #20 0x0000000000619816 in PyRun_SimpleFileExFlags ()
      #21 0x000000000060d4e3 in Py_RunMain ()
      #22 0x00000000005ea6e9 in Py_BytesMain ()
      #23 0x00007fb049ceb18a in __libc_start_call_main (main=main@entry=0x5ea6b0, argc=argc@entry=2, argv=argv@entry=0x7fff71737f98) at ../sysdeps/nptl/libc_start_call_main.h:58
      #24 0x00007fb049ceb245 in __libc_start_main_impl (main=0x5ea6b0, argc=2, argv=0x7fff71737f98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
          stack_end=0x7fff71737f88) at ../csu/libc-start.c:381
      #25 0x00000000005ea5ea in _start ()
      }}

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            marenamat Maria Matejka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes