[Bug 1683573] [NEW] GCC crashes with segmentation fault

chris 1683573 at bugs.launchpad.net
Tue Apr 18 03:04:19 UTC 2017


Public bug reported:

Segementation fault in GCC when compiling the attached file.

The following command line triggers the crash:

/usr/bin/g++ -c -O3 -g -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-
needed -DENABLE_TASK -std=c++0x -DTO_OMP -fopenmp -fexceptions
-DUSE_ALAMERE_TASKQ -w  -DNDEBUG -o
obj/Arrays/ARRAY_PARALLEL_OPERATIONS.o ARRAY_PARALLEL_OPERATIONS.ii

The error message is:
Arrays/ARRAY_PARALLEL_OPERATIONS.cpp: In copy constructor ‘PhysBAM::ARRAY<T>::ARRAY(const PhysBAM::ARRAY<T>&, bool) [with T = PhysBAM::ARRAY_PARALLEL_OPERATIONS_HELPER<PhysBAM::VECTOR_2D<float>, float, PhysBAM::VECTOR_2D<float> >]’:
Arrays/ARRAY_PARALLEL_OPERATIONS.cpp:298:1: internal compiler error: Segmentation fault
   create_task0(spawn Array_Parallel_Operations_Helper(&helpers(i)));
 ^

This happens with gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~16.04) 
The same error happens with gcc-6.2
Intel ICC can compile the same code without any errors.

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

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

Title:
  GCC crashes with segmentation fault

Status in gcc-5 package in Ubuntu:
  New

Bug description:
  Segementation fault in GCC when compiling the attached file.

  The following command line triggers the crash:

  /usr/bin/g++ -c -O3 -g -funroll-loops -fprefetch-loop-arrays
  -fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both
  ,--as-needed -DENABLE_TASK -std=c++0x -DTO_OMP -fopenmp -fexceptions
  -DUSE_ALAMERE_TASKQ -w  -DNDEBUG -o
  obj/Arrays/ARRAY_PARALLEL_OPERATIONS.o ARRAY_PARALLEL_OPERATIONS.ii

  The error message is:
  Arrays/ARRAY_PARALLEL_OPERATIONS.cpp: In copy constructor ‘PhysBAM::ARRAY<T>::ARRAY(const PhysBAM::ARRAY<T>&, bool) [with T = PhysBAM::ARRAY_PARALLEL_OPERATIONS_HELPER<PhysBAM::VECTOR_2D<float>, float, PhysBAM::VECTOR_2D<float> >]’:
  Arrays/ARRAY_PARALLEL_OPERATIONS.cpp:298:1: internal compiler error: Segmentation fault
     create_task0(spawn Array_Parallel_Operations_Helper(&helpers(i)));
   ^

  This happens with gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~16.04) 
  The same error happens with gcc-6.2
  Intel ICC can compile the same code without any errors.

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



More information about the foundations-bugs mailing list