#1059648 sip4: autopkgtest failure with Python 3.12

#1059648#5
Date:
2023-12-29 19:09:41 UTC
From:
To:
Hi Maintainer

sip4's autopkgtests fail with Python 3.12 [1].  I've copied what I
hope is the relevant part of the log below.

Regards
Graham


[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: -----------------------]

#1059648#10
Date:
2024-01-07 14:40:49 UTC
From:
To:
Hi Graham,

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.

#1059648#15
Date:
2024-01-07 15:34:24 UTC
From:
To:
Hi Gregor!

Yes, I saw the same.

In SIP 6, there were 3 commits to add support for Python 3.12, but the code
diverged a lot so it's not trivial to backport them to SIP 4.

Unfortunately there are other users:

$ reverse-depends src:sip4 -r sid
Reverse-Recommends
==================
* krita [amd64 arm64 armel armhf i386 mips64el ppc64el s390x]

Reverse-Depends
===============
* gnuradio [amd64 arm64 armel armhf i386 mips64el ppc64el s390x]
* meteo-qt [amd64 arm64 armel armhf i386 mips64el ppc64el s390x]
* python3-pykdl [amd64 arm64 armel armhf i386 mips64el ppc64el s390x]
* python3-python-qt-binding     (for python3-sip-dev)
* python3-python-qt-binding     (for sip-dev)
* qutebrowser                   (for python3-sip)
* tulip [amd64 arm64 i386 mips64el ppc64el s390x]
* vistrails                     (for python3-sip)

$ reverse-depends -b src:sip4 -r sid
Reverse-Testsuite-Triggers
==========================
* geophar                       (for python3-sip)

Reverse-Build-Depends
=====================
* ball                          (for python3-sip-dev)
* geophar                       (for python3-sip)
* guidata                       (for python3-sip)
* krita                         (for python3-sip-dev)
* libarcus                      (for python3-sip-dev)
* libsavitar                    (for python3-sip-dev)
* openstructure                 (for sip-dev)
* orocos-kdl                    (for python3-sip-dev)
* pynest2d                      (for python3-sip-dev)
* pyqwt3d                       (for python3-sip-dev)
* stimfit                       (for python3-sip-dev)
* tulip                         (for python3-sip-dev)

Reverse-Build-Depends-Indep
===========================
* eric                          (for python3-sip-dev)

krita and pyqwt3d have open bugs to move to sip6, but I will need to file
bugs for the other packages too.

#1059648#20
Date:
2024-01-13 16:29:41 UTC
From:
To:
#1059648#29
Date:
2025-08-19 10:23:57 UTC
From:
To:
Please remove sip4. It is not useful anymore because it used to be part
of pyqt4 which is long gone from the aarchive. There are three reverse
dependencies with pending patches.

#1059648#48
Date:
2025-08-25 10:47:02 UTC
From:
To:
We believe that the bug you reported is now fixed; the following
package(s) have been removed from unstable:

python-sip-doc | 4.19.25+dfsg-5 | all
python3-sip | 4.19.25+dfsg-5+b4 | amd64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x
python3-sip | 4.19.25+dfsg-5+b5 | arm64
python3-sip-dev | 4.19.25+dfsg-5+b4 | amd64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x
python3-sip-dev | 4.19.25+dfsg-5+b5 | arm64
   sip-dev | 4.19.25+dfsg-5+b4 | amd64, armel, armhf, i386, mips64el, ppc64el, riscv64, s390x
   sip-dev | 4.19.25+dfsg-5+b5 | arm64
      sip4 | 4.19.25+dfsg-5 | source
------------------- Reason ------------------- ROM; remaining pkg of qt4 era; RC-buggy ---------------------------------------------- Note that the package(s) have simply been removed from the tag database and may (or may not) still be in the pool; this is not a bug. The package(s) will be physically removed automatically when no suite references them (and in the case of source, when no binary references it). Please also remember that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. Packages are usually not removed from testing by hand. Testing tracks unstable and will automatically remove packages which were removed from unstable when removing them from testing causes no dependency problems. The release team can force a removal from testing if it is really needed, please contact them if this should be the case. We try to close bugs which have been reported against this package automatically. But please check all old bugs, if they were closed correctly or should have been re-assigned to another package. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1059648@bugs.debian.org. The full log for this bug can be viewed at https://bugs.debian.org/1059648 This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org. Debian distribution maintenance software pp. Thorsten Alteholz (the ftpmaster behind the curtain)