Skip to content

NOGIL build of 3.15.0~a7 fails in Objects/typeobject.c@type_new_set_slots: internal compiler error: Segmentation fault #145803

@mcepl

Description

@mcepl

Bug report

Bug description:

When building Python 3.15.0~a7 in the openSUSE Build Service (and only there, I have hard time to reproduce this locally), I get this error while building

[  329s] make[1]: Entering directory '/home/abuild/rpmbuild/BUILD/python315-nogil-nogil-core-3.15.0_a7-build/Python-3.15.0a7'
[  329s] gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -march=x86-64-v3 -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -DOPENSSL_LOAD_CONF -fwrapv  -fno-semantic-interposition -march=x86-64-v3 -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -IVendor/ -march=x86-64-v3 -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -g -IVendor/  -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -g -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -fprofile-use -fprofile-correction -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include   -fPIC -DPy_BUILD_CORE -o Objects/typeobject.o Objects/typeobject.c
[  329s] during IPA pass: profile
[  329s] Objects/typeobject.c: In functiontype_new_set_slots’:
[  329s] Objects/typeobject.c:12849:1: internal compiler error: Segmentation fault
[  329s] 12849 | };
[  329s]       | ^
[  329s] 0x170bff4 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t)
[  329s]        ???:0
[  329s] 0x16d996f internal_error(char const*, ...)
[  329s]        ???:0

[  329s] 0x163f4eb mcf_smooth_cfg()
[  329s]        ???:0
[  329s] 0x103dfa7 branch_prob(bool)
[  329s]        ???:0
[  329s] Please submit a full bug report, with preprocessed source (by using -freport-bug).
[  329s] Please include the complete backtrace with any bug report.
[  329s] See <https://bugs.opensuse.org/> for instructions.
[  329s] make[1]: *** [Makefile:3354: Objects/typeobject.o] Error 1

That is using GCC gcc (SUSE Linux) 15.2.1 20260202 and kernel (if it matters) 6.19.6.

Complete build log from the build system with all packages used and record of everything which lead to the crash.

I have tried to reproduce the crash locally, but I have never tried (even adding -freport-bug didn’t return anything special). Attaching the output of find . -name typeobject.*, but I am afraid it would be of the limited value.

CPython versions tested on:

3.15

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions