[Bug 994402] Re: combining -fprofile-generate and -fmudflap causes gcc to segfault

Pauli 994402 at bugs.launchpad.net
Fri May 4 05:43:21 UTC 2012


-- 
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/994402

Title:
  combining -fprofile-generate and -fmudflap causes gcc to segfault

Status in “gcc-defaults” package in Ubuntu:
  New

Bug description:
  $ cat minimal.c 
  #include <stdint.h>

  #define PERF_MAX_STACK_DEPTH            255

  struct perf_callchain_entry {
  	uint64_t                           nr;
  	uint64_t                           ip[PERF_MAX_STACK_DEPTH];
  };

  
  struct perf_callchain_entry entry = {
  	.nr = 0,
  };

  int main(void)
  {
  	int i;
  	volatile unsigned long long x;
  	for (i = 0; i < entry.nr; i++)
  		x = entry.ip[i];

  	return 0;
  }

  $ gcc-4.4 -fmudflap -fprofile-generate -c minimal.c -o minimal.o
  $ gcc-4.6 -fmudflap -fprofile-generate -c minimal.c -o minimal.o
  $ gcc-4.7 -fmudflap -fprofile-generate -c minimal.c -o minimal.o (actually gcc-snapshot but same efffect)
  minimal.c: In function '_GLOBAL__sub_I_00099_1_entry':
  minimal.c:23:1: internal compiler error: Segmentation fault
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
  Preprocessed source stored into /tmp/cckrXkkP.out file, please attach this to your bugreport.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: gcc-snapshot 20111010-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-17.30-generic 3.0.22
  Uname: Linux 3.0.0-17-generic x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Fri May  4 08:38:23 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: gcc-snapshot
  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/994402/+subscriptions




More information about the foundations-bugs mailing list