Details
Description
Here is an example application that exhibits this behavior: https://github.com/dylanchapell/pyside6-segfault-demo-dylanchapell
The offending code is bad_fn in Bad.py, which is declared as @QtCore.Slot(result=QtCore.QObject) and returns a python tuple of strings.
Here is the error when run in GDB:
Thread 1 "python3" received signal SIGSEGV, Segmentation fault. 0x0000ffffe97daeec in Shiboken::Object::cppPointer(SbkObject*, _typeobject*) () from /home/dylanchapell/Documents/Team Software/segfault_test/venv-312/lib64/python3.12/site-packages/shiboken6/libshiboken6.abi3.so.6.6
Here is a link to a core dump. This dump is from an aarch64 Fedora machine, but I have reproduced this on x86_64 Ubuntu and MacOS.
[^pyside6-dump]