Public bug reported: Builds of any code using -fsanitize=address sometimes crash, as shown below. Sometimes they run successfully, sometimes failing with this "AddressSantizer:DEADLYSIGNAL" message. I've just run "software updater" and upgraded everything.
$ cat p.c #include <stdio.h> int main(int argc, char **argv){ printf("hello world\n"); return 0; } dan@ws1:~/work/sqlite/bld4/tst$ gcc -fsanitize=address ./p.c dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out hello world dan@ws1:~/work/sqlite/bld4/tst$ ./a.out AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL Segmentation fault ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: gcc 4:11.2.0-1ubuntu1 ProcVersionSignature: Ubuntu 6.5.0-26.26~22.04.1-generic 6.5.13 Uname: Linux 6.5.0-26-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu82.5 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Wed Mar 20 00:40:15 2024 InstallationDate: Installed on 2022-10-07 (528 days ago) InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419) SourcePackage: gcc-defaults UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: gcc-defaults (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug jammy third-party-packages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2058411 Title: Builds with gcc -fsanitize=address crashing on startup To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/2058411/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs