https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84428
--- Comment #18 from Vojtech Fried <vfried at opentext dot com> --- Created attachment 43866 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43866&action=edit simple repro I have added a simple way to reproduce it. Unpack and run run.sh. You need python3 installed (including dev packages). It creates a simple python3 module and runs a python script using it. If built and run with sanitizers, it will reproduce the problem.