[Bug 2058411] Re: Builds with gcc -fsanitize=address crashing on startup

Andrew Burnard 2058411 at bugs.launchpad.net
Thu Mar 21 09:47:46 UTC 2024


Also affects me, using Uname: Linux 6.5.0-26-generic x86_64

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2058411

Title:
  Builds with gcc -fsanitize=address crashing on startup

Status in gcc-defaults package in Ubuntu:
  New

Bug description:
  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 at ws1:~/work/sqlite/bld4/tst$ gcc -fsanitize=address ./p.c
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at ws1:~/work/sqlite/bld4/tst$ ./a.out
  hello world
  dan at 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/2058411/+subscriptions




More information about the foundations-bugs mailing list