[Bug 1158543] [NEW] Segmentation fault on compilation

Budau Adrian budau.adi at gmail.com
Thu Mar 21 22:12:03 UTC 2013


Public bug reported:

Output of gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 


The way i compiled my source was: 
g++ -static -g -O2 -Wall -Wextra main.cpp -o main -lm -std=gnu++0x

I've attached the file.

The output i received is:
main.cpp: In constructor ‘SuffixAutomaton::SuffixAutomaton(const string&)’:
main.cpp:9:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccYzITUb.out file, please attach this to your bugreport.


I've also attached the preprocessed source:

** Affects: gcc-4.6 (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "The source file causing the segmentation fault and the preprocessed file returned by gcc"
   https://bugs.launchpad.net/bugs/1158543/+attachment/3589375/+files/source_and_preprocessed_file.zip

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

Title:
  Segmentation fault on compilation

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

Bug description:
  Output of gcc -v

  Using built-in specs.
  COLLECT_GCC=gcc
  COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
  Target: x86_64-linux-gnu
  Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
  Thread model: posix
  gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) 

  
  The way i compiled my source was: 
  g++ -static -g -O2 -Wall -Wextra main.cpp -o main -lm -std=gnu++0x

  I've attached the file.

  The output i received is:
  main.cpp: In constructor ‘SuffixAutomaton::SuffixAutomaton(const string&)’:
  main.cpp:9:5: internal compiler error: Segmentation fault
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
  Preprocessed source stored into /tmp/ccYzITUb.out file, please attach this to your bugreport.

  
  I've also attached the preprocessed source:

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




More information about the foundations-bugs mailing list