Hi Graham,
sip4's autopkgtests fail with Python 3.12 [1]. I've copied what I
hope is the relevant part of the log below.
[1] https://ci.debian.net/packages/s/sip4/testing/amd64/
22s autopkgtest [20:09:51]: test autodep8-python3: [-----------------------
22s Testing with python3.12:
22s <module 'sip' from
'/usr/lib/python3/dist-packages/sip.cpython-312-x86_64-linux-gnu.so'>
22s bash: line 1: 1865 Segmentation fault $py -c "import sip; print(sip)"
22s autopkgtest [20:09:51]: test autodep8-python3: -----------------------]
I can reproduce that, although I should mention that the segfault
happens during teardown, not when the module is loaded:
>>> import sip
>>> print(sip)
<module 'sip' from
'/usr/lib/python3/dist-packages/sip.cpython-312-x86_64-linux-gnu.so'>
>>> <Ctrl-D>
Program received signal SIGSEGV, Segmentation fault.
0x0000000000513a8d in PyMem_Free ()
(gdb) bt
#0 0x0000000000513a8d in PyMem_Free ()
#1 0x00007f73de6feaf9 in sip_api_free (mem=<optimized out>) at
./siplib/siplib.c:2241
#2 0x00007f73de710c6d in sipOMFinalise (om=<optimized out>) at
./siplib/objmap.c:69
#3 0x00007f73de6febaf in finalise () at ./siplib/siplib.c:2143
#4 0x00000000004591ab in ?? ()
#5 0x0000000000662d77 in Py_RunMain ()
#6 0x00000000006232eb in Py_BytesMain ()
#7 0x00007f73deba66ca in __libc_start_call_main
(main=main@entry=0x623240, argc=argc@entry=1,
argv=argv@entry=0x7ffd043a59b8) at ../sysdeps/nptl/libc_start_call_main.h:58
#8 0x00007f73deba6785 in __libc_start_main_impl (main=0x623240, argc=1,
argv=0x7ffd043a59b8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffd043a59a8)
at ../csu/libc-start.c:360
#9 0x0000000000623171 in _start ()
I'd also like to point out that SIP4 is no longer supported upstream.
The current version is 6.8.1, which is already packaged for Debian.
https://www.riverbankcomputing.com/software/sip/download
> SIP v4 is no longer supported. This is the last release.
> sip-4.19.25.tar.gz
Cura was made fit for PyQt6 and SIP6 in April 2022, and I think 5.0 has
all the needed changes. I will investigate if we can drop the dependency
on python3-sip-dev. As far as I can see, there are no other users of
SIP4 in Debian, so maybe it can be dropped completely after fixing Cura.