Package: python3.12
Version: 3.12.1-2
Severity: normal

Hi,

python3-celery test suite crashes with python 3.12 during gc before exit (see 
attached stack trace).

It can be reproduced quickly with

apt build-dep celery
dget -xu https://deb.debian.org/debian/pool/main/c/celery/celery_5.3.4-2.dsc
cd celery-5.3.4
python3.12 -m pytest -vvvvv 
t/unit/tasks/test_canvas.py::test_group::test_apply_contains_chords_containing_empty_chain
 t/unit/tasks/test_canvas.py::test_group::test_apply
 
> Results (0.56s):
       1 passed
       1 xfailed
Erreur de segmentation (core dumped)

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3.12 depends on:
ii  libpython3.12-stdlib  3.12.1-2
ii  media-types           10.1.0
ii  python3.12-minimal    3.12.1-2
ii  tzdata                2023d-1

Versions of packages python3.12 recommends:
ii  ca-certificates  20230311

Versions of packages python3.12 suggests:
ii  binutils         2.42-2
pn  python3.12-doc   <none>
pn  python3.12-venv  <none>

-- no debconf information
#0  0x00007f9768de516c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f9768d97472 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x000000000069c0d0 in faulthandler_fatal_error (signum=6) at 
../Modules/faulthandler.c:329
#3  <signal handler called>
#4  0x00007f9768de516c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00007f9768d97472 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007f9768d814b2 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f9768d813d5 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f9768d903a2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x00000000006d1f78 in _PyType_GetModuleState (type=<optimized out>) at 
../Include/internal/pycore_typeobject.h:105
#10 0x00000000006d1f81 in get_module_state_by_cls (cls=<optimized out>) at 
../Modules/itertoolsmodule.c:52
#11 0x00000000006d26ea in teedataobject_clear (tdo=tdo@entry=0x2e30800) at 
../Modules/itertoolsmodule.c:835
#12 0x00000000006d3f4a in teedataobject_dealloc (tdo=0x2e30800) at 
../Modules/itertoolsmodule.c:845
#13 0x00000000005026bd in _Py_Dealloc (op=op@entry=<itertools._tee_dataobject 
at remote 0x2e30800>) at ../Objects/object.c:2625
#14 0x00000000006d22f0 in Py_DECREF (filename=filename@entry=0x72c1d7 
"../Modules/itertoolsmodule.c", lineno=lineno@entry=1050, 
op=<itertools._tee_dataobject at remote 0x2e30800>) at ../Include/object.h:691
#15 0x00000000006d56dd in tee_clear (to=to@entry=0x7f97655226f0) at 
../Modules/itertoolsmodule.c:1050
#16 0x00000000006d5707 in tee_dealloc (to=0x7f97655226f0) at 
../Modules/itertoolsmodule.c:1059
#17 0x00000000005026bd in _Py_Dealloc (op=op@entry=<itertools._tee at remote 
0x7f97655226f0>) at ../Objects/object.c:2625
#18 0x00000000004d53ee in Py_DECREF (filename=filename@entry=0x714e38 
"../Objects/frameobject.c", lineno=lineno@entry=911, op=<itertools._tee at 
remote 0x7f97655226f0>) at ../Include/object.h:691
#19 0x00000000004d66c1 in frame_dealloc (f=Python Exception <class 
'__main__.NullPyObjectPtr'>: <__main__.PyCodeObjectPtr object at 0x7fbd68277bd0>
) at ../Objects/frameobject.c:911
#20 0x00000000005026bd in _Py_Dealloc (op=op@entry=Python Exception <class 
'gdb.error'>: There is no member named f_frame.
) at ../Objects/object.c:2625
#21 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=Python Exception <class 
'gdb.error'>: There is no member named f_frame.
) at ../Include/object.h:691
#22 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#23 0x000000000061af2d in tb_dealloc (tb=0x7f9765a1fca0) at 
../Python/traceback.c:191
#24 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765a1fca0>) at ../Objects/object.c:2625
#25 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765a1fca0>) at ../Include/object.h:691
#26 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#27 0x000000000061af24 in tb_dealloc (tb=0x7f9765a1e350) at 
../Python/traceback.c:190
#28 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765a1e350>) at ../Objects/object.c:2625
#29 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765a1e350>) at ../Include/object.h:691
#30 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#31 0x000000000061af24 in tb_dealloc (tb=0x7f9765a1eee0) at 
../Python/traceback.c:190
#32 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765a1eee0>) at ../Objects/object.c:2625
#33 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765a1eee0>) at ../Include/object.h:691
#34 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#35 0x000000000061af24 in tb_dealloc (tb=0x7f9765aeb7a0) at 
../Python/traceback.c:190
#36 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765aeb7a0>) at ../Objects/object.c:2625
#37 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765aeb7a0>) at ../Include/object.h:691
#38 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#39 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae8fa0) at 
../Python/traceback.c:190
#40 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae8fa0>) at ../Objects/object.c:2625
#41 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae8fa0>) at ../Include/object.h:691
#42 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#43 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae8690) at 
../Python/traceback.c:190
#44 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae8690>) at ../Objects/object.c:2625
#45 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae8690>) at ../Include/object.h:691
#46 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#47 0x000000000061af24 in tb_dealloc (tb=0x7f9765aea940) at 
../Python/traceback.c:190
#48 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765aea940>) at ../Objects/object.c:2625
#49 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765aea940>) at ../Include/object.h:691
#50 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#51 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae8a50) at 
../Python/traceback.c:190
#52 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae8a50>) at ../Objects/object.c:2625
#53 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae8a50>) at ../Include/object.h:691
#54 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#55 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae8550) at 
../Python/traceback.c:190
#56 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae8550>) at ../Objects/object.c:2625
#57 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae8550>) at ../Include/object.h:691
#58 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#59 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae9c20) at 
../Python/traceback.c:190
#60 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae9c20>) at ../Objects/object.c:2625
#61 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae9c20>) at ../Include/object.h:691
#62 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#63 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae93b0) at 
../Python/traceback.c:190
#64 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae93b0>) at ../Objects/object.c:2625
#65 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae93b0>) at ../Include/object.h:691
#66 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#67 0x000000000061af24 in tb_dealloc (tb=0x7f9765ae9180) at 
../Python/traceback.c:190
#68 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765ae9180>) at ../Objects/object.c:2625
#69 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765ae9180>) at ../Include/object.h:691
#70 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#71 0x000000000061af24 in tb_dealloc (tb=0x7f9765aea580) at 
../Python/traceback.c:190
#72 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765aea580>) at ../Objects/object.c:2625
#73 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765aea580>) at ../Include/object.h:691
#74 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#75 0x000000000061af24 in tb_dealloc (tb=0x7f9767b05db0) at 
../Python/traceback.c:190
#76 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9767b05db0>) at ../Objects/object.c:2625
#77 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9767b05db0>) at ../Include/object.h:691
#78 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#79 0x000000000061af24 in tb_dealloc (tb=0x7f9765bf7930) at 
../Python/traceback.c:190
#80 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765bf7930>) at ../Objects/object.c:2625
#81 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765bf7930>) at ../Include/object.h:691
#82 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#83 0x000000000061af24 in tb_dealloc (tb=0x7f9765aff570) at 
../Python/traceback.c:190
#84 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765aff570>) at ../Objects/object.c:2625
#85 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765aff570>) at ../Include/object.h:691
#86 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#87 0x000000000061af24 in tb_dealloc (tb=0x7f9765afe800) at 
../Python/traceback.c:190
#88 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f9765afe800>) at ../Objects/object.c:2625
#89 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x70d22f 
"../Include/object.h", lineno=lineno@entry=799, op=<traceback at remote 
0x7f9765afe800>) at ../Include/object.h:691
#90 0x000000000061ad7d in Py_XDECREF (op=<optimized out>) at 
../Include/object.h:799
#91 0x000000000061af24 in tb_dealloc (tb=0x7f97659ae620) at 
../Python/traceback.c:190
#92 0x00000000005026bd in _Py_Dealloc (op=op@entry=<traceback at remote 
0x7f97659ae620>) at ../Objects/object.c:2625
#93 0x000000000061acdc in Py_DECREF (filename=filename@entry=0x721a01 
"../Python/traceback.c", lineno=lineno@entry=207, op=<traceback at remote 
0x7f97659ae620>) at ../Include/object.h:691
#94 0x000000000061ae7f in tb_clear (tb=0x7f97659ae030) at 
../Python/traceback.c:207
#95 0x000000000062cbfb in delete_garbage (tstate=tstate@entry=0xc088d8 
<_PyRuntime+475672>, gcstate=gcstate@entry=0xbab018 <_PyRuntime+92504>, 
collectable=collectable@entry=0x7ffd7dcecca0, old=old@entry=0xbab060 
<_PyRuntime+92576>) at ../Modules/gcmodule.c:1029
#96 0x000000000062d42b in gc_collect_main (tstate=0xc088d8 <_PyRuntime+475672>, 
generation=generation@entry=2, n_collected=n_collected@entry=0x0, 
n_uncollectable=n_uncollectable@entry=0x0, nofail=nofail@entry=1) at 
../Modules/gcmodule.c:1303
#97 0x000000000062de5f in _PyGC_CollectNoFail (tstate=tstate@entry=0xc088d8 
<_PyRuntime+475672>) at ../Modules/gcmodule.c:2135
#98 0x00000000005fb749 in finalize_modules (tstate=tstate@entry=0xc088d8 
<_PyRuntime+475672>) at ../Python/pylifecycle.c:1628
#99 0x0000000000600ab1 in Py_FinalizeEx () at ../Python/pylifecycle.c:1889
#100 0x000000000062b3cb in Py_RunMain () at ../Modules/main.c:711
#101 0x000000000062b41a in pymain_main (args=args@entry=0x7ffd7dcecdd0) at 
../Modules/main.c:739
#102 0x000000000062b4a2 in Py_BytesMain (argc=<optimized out>, argv=<optimized 
out>) at ../Modules/main.c:763
#103 0x0000000000422053 in main (argc=<optimized out>, argv=<optimized out>) at 
../Programs/python.c:15

Reply via email to