You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_lazy_import.test_deeply_dotted_name() does crash on Alpine Linux (SIGSEGV) and FreeBSD (SIGILL) #159535
0:06:52 load avg: 5.30 mem: 391.1 MiB [486/560/2] test_lazy_import worker non-zero exit code (Exit code -11 (SIGSEGV)) -- running (1): test_imaplib (44.2 sec)
(...)
test_module_getattr_does_not_shadow_own_lazy_import (test.test_lazy_import.LazyImportTests.test_module_getattr_does_not_shadow_own_lazy_import)
Module __getattr__ should not shadow the module's own lazy imports. ... ok
test_sys_lazy_modules (test.test_lazy_import.LazyImportTests.test_sys_lazy_modules) ... ok
test_deeply_dotted_name (test.test_lazy_import.LazyImportTypeTests.test_deeply_dotted_name)
A long dotted name must not overflow the C stack. ...
On FreeBSD, pid 5192 comm python tid 101381 stack overflow is logged when I run the test manually:
$ ./python -m test test_lazy_import -v -m test_deeply_dotted_name
== CPython 3.16.0a1+dev (heads/main:c7a17162964, Oct 16 2026, 16:10:54) [Clang 21.1.8 (https://github.com/llvm/llvm-project.git llvmorg-21.1.8-0-g2078da
== FreeBSD-16.0-CURRENT-amd64-64bit-ELF little-endian
== Python build: debug
(...)
test_deeply_dotted_name (test.test_lazy_import.LazyImportTypeTests.test_deeply_dotted_name)
A long dotted name must not overflow the C stack. ...
pid 5192 comm python tid 101381 stack overflow
pid 5192 comm python tid 101381 stack overflow
pid 5192 comm python has trashed its stack, killing
Illegal instruction (core dumped)./python -m test test_lazy_import -v -m test_deeply_dotted_name
changed the title [-]test_lazy_import: test_deeply_dotted_name() does crash (SIGSEGV) on Alpine Linux[/-][+]`test_lazy_import.test_deeply_dotted_name()` does crash on Alpine Linux (SIGSEGV) and FreeBSD (SIGILL)[/+]on Oct 16, 2026
Activity
vstinner commentedon Oct 16, 2026
test_lazy_import does crash with SIGILL on FreeBSD.
FreeBSD 16: https://buildbot.python.org/#/builders/1859/builds/10
vstinner commentedon Oct 16, 2026
On FreeBSD,
pid 5192 comm python tid 101381 stack overflowis logged when I run the test manually:vstinner commentedon Oct 16, 2026
#159376 should fix the crash in the main branch.
vstinner commentedon Oct 16, 2026
The test was added by #159289.
[-]test_lazy_import: test_deeply_dotted_name() does crash (SIGSEGV) on Alpine Linux[/-][+]`test_lazy_import.test_deeply_dotted_name()` does crash on Alpine Linux (SIGSEGV) and FreeBSD (SIGILL)[/+]vstinner commentedon Oct 17, 2026
Ah. It may fix the issue on Alpine, but not on FreeBSD: FreeBSD doesn't have
pthread_getattr_np()function.vstinner commentedon Oct 17, 2026
I wrote #159604 to fix
test_lazy_import.test_deeply_dotted_name()on FreeBSD.