This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed
Type: Stage:
Components: Tests Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: cstratak, vstinner
Priority: normal Keywords:

Created on 2022-03-21 03:44 by vstinner, last changed 2022-04-11 14:59 by admin.

Messages (7)
msg415658 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 03:44
aarch64 Fedora Rawhide 3.9:
https://buildbot.python.org/all/#/builders/245/builds/445

It seems like the "ldconfig" command crashed (signal 11: SIGSEGV).

ldconfig is used by _findSoname_ldconfig() of ctypes.util which runs the "/sbin/ldconfig -p" command with LC_ALL=C and LANG=C env vars.

It looks like a Fedora issue rather than a Python bug.


journalctl:
---
mars 19 20:08:06 python-builder-fedora-rawhide-aarch64 systemd[1]: ldconfig.service - Rebuild Dynamic Linker Cache was skipped because all trigger condition checks failed.
(...)
mars 19 15:50:06 python-builder-fedora-rawhide-aarch64 audit[1587976]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 pid=1587976 comm="ldconfig" exe="/usr/sbin/ldconfig" sig=11 res=1
(...)
mars 19 15:50:06 python-builder-fedora-rawhide-aarch64 audit[1587976]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 pid=1587976 comm="ldconfig" exe="/usr/sbin/ldconfig" sig=11 res=1
(...)
mars 19 01:02:52 python-builder-fedora-rawhide-aarch64 audit[512983]: ANOM_ABEND auid=4294967295 uid=1000 gid=1000 ses=4294967295 subj=system_u:system_r:unconfined_service_t:s0 pid=512983 comm="ldconfig" exe="/usr/sbin/ldconfig" sig=11 res=1
(...)
mars 18 19:33:00 python-builder-fedora-rawhide-aarch64 systemd[1]: ldconfig.service - Rebuild Dynamic Linker Cache was skipped because all trigger condition checks failed.
---

configure:
---
checking for --with-system-ffi... yes
---

test.pythoninfo:
---
CC.version: gcc (GCC) 12.0.1 20220308 (Red Hat 12.0.1-0)
---

Logs:
---
0:00:18 load avg: 12.24 [241/425/1] test_ctypes failed (env changed)
Warning -- files was modified by test_ctypes
test_anon (ctypes.test.test_anon.AnonTest) ... ok
(...)
test_variant_bool (ctypes.test.test_wintypes.WinTypesTest) ... ok

----------------------------------------------------------------------
Ran 494 tests in 1.350s

OK (skipped=88)
  Before: []
  After:  ['.1587976']

1 test altered the execution environment:
    test_ctypes
---
msg415659 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 03:46
# rpm -qf /sbin/ldconfig 
glibc-2.35.9000-11.fc37.aarch64
msg415661 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 03:51
/var/log/dnf.log:

2022-03-18T19:32:05+0100 DEBUG Upgraded: glibc-2.35.9000-11.fc37.aarch64
...
2022-03-20T06:55:49+0100 DDEBUG Cleaning up.
2022-03-20T06:55:49+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35-2.fc37.aarch64.rpm removed
2022-03-20T06:55:49+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-7.fc37.aarch64.rpm removed
2022-03-20T06:55:49+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-10.fc37.aarch64.rpm removed
2022-03-20T06:55:50+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-11.fc37.aarch64.rpm removed
2022-03-20T06:55:50+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-6.fc37.aarch64.rpm removed
2022-03-20T06:55:50+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-5.fc37.aarch64.rpm removed
2022-03-20T06:55:50+0100 DDEBUG /var/cache/dnf/rawhide-135a69fc59e3201d/packages/glibc-2.35.9000-9.fc37.aarch64.rpm removed
msg415663 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 04:27
Fedora glibc issue: https://bugzilla.redhat.com/show_bug.cgi?id=2066147
msg415666 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 04:59
Oh, the kernel was also upgraded. /var/log/dnf.log:
---
2022-03-18T19:32:05+0100 DEBUG Installed: kernel-5.17.0-0.rc8.123.fc37.aarch64
---


== Build 440 (old, ok) ==

https://buildbot.python.org/all/#/builders/245/builds/440

os.uname: posix.uname_result(sysname='Linux', nodename='python-builder-fedora-rawhide-aarch64', release='5.17.0-0.rc0.20220112gitdaadb3bd0e8d.63.fc36.aarch64', version='#1 SMP Wed Jan 12 18:56:05 UTC 2022', machine='aarch64')

== Build 445 (new, bug) ==

https://buildbot.python.org/all/#/builders/245/builds/445

os.uname: posix.uname_result(sysname='Linux', nodename='python-builder-fedora-rawhide-aarch64', release='5.17.0-0.rc8.123.fc37.aarch64', version='#1 SMP Mon Mar 14 17:54:40 UTC 2022', machine='aarch64')
msg415681 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-21 12:10
I still reproduce the issue after an upgrade to the Linux kernel:
5.17.0-0.rc8.20220318git551acdc3c3d2.125.fc37.aarch64
msg415739 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2022-03-22 02:39
It's a Linux kernel 5.17 regression on static-pie programs affecting AArch64:
https://bugzilla.kernel.org/show_bug.cgi?id=215720
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91234
2022-03-22 02:39:01vstinnersetmessages: + msg415739
2022-03-21 12:10:03vstinnersetmessages: + msg415681
2022-03-21 04:59:21vstinnersetmessages: + msg415666
2022-03-21 04:27:40vstinnersetmessages: + msg415663
2022-03-21 03:51:38vstinnersetmessages: + msg415661
2022-03-21 03:46:36vstinnersetmessages: + msg415659
2022-03-21 03:45:35vstinnersettitle: test_ctypes modified files on aarch64 Fedora Rawhide 3.9 -> test_ctypes modified files on aarch64 Fedora Rawhide 3.9: ldconfig crashed
2022-03-21 03:45:04vstinnersetnosy: + cstratak
2022-03-21 03:44:55vstinnercreate