Builds with gcc -fsanitize=address crashing on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Builds of any code using -fsanitize=address sometimes crash, as shown below. Sometimes they run successfully, sometimes failing with this "AddressSantize
$ cat p.c
#include <stdio.h>
int main(int argc, char **argv){
printf("hello world\n");
return 0;
}
dan@ws1:
dan@ws1:
hello world
dan@ws1:
hello world
dan@ws1:
hello world
dan@ws1:
hello world
dan@ws1:
hello world
dan@ws1:
hello world
dan@ws1:
AddressSanitize
AddressSanitize
AddressSanitize
AddressSanitize
AddressSanitize
AddressSanitize
AddressSanitize
Segmentation fault
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gcc 4:11.2.0-1ubuntu1
ProcVersionSign
Uname: Linux 6.5.0-26-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
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)
Also affects me, using Uname: Linux 6.5.0-26-generic x86_64