------- Comment #5 from sam dot hendley at plymouthsystems dot com 2008-07-21 13:51 ------- Hello, I would like to report that I have had the same type of issue. I run into this issue only when compiling with the coverage flags turned on. Here is the output (inlcuding the location and version of g++):
Compiling PositionEstimator.cpp with g++ (for coverage) which g++ /usr/bin/g++ g++ --version g++ (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ -Wall -Wextra -g -O0 -I ../Astro -I /home/sam/dnp/External/tools/boost_1_35_0 -I ../DNPStack -I ../External/TrackerLib -I ../External/TrackerLib/leastsquares -I ../External/quat -I includes -I ../ETracker -pg -fprofile-arcs -ftest-coverage -D PSI_CYGWIN -fprofile-arcs -ftest-coverage -c PositionEstimator.cpp -MD -o Linux_i686/PositionEstimator.o -save-temps PositionEstimator.cpp: In function (static initializers for PositionEstimator.cpp): PositionEstimator.cpp:47: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. Preprocessed source stored into /tmp/ccWZm8Cl.out file, please attach this to your bugreport. Whats really strange about this error is that a tiny source update resolves the problem for that file but causes a previously fine file to have a similar issue. If I move the call to "FloatEqual" out of the if block it works without a problem. Also if I remove the -fstack-protector flags it works as well. So I'm pretty sure it has to do with the -fstack-protector flag. However if I add the -fno-stack-protector flag the same sort of problem can pop up in a totally different file. I had this same problem with a previous file and adding a single new line into the file fixed the compilation. -- sam dot hendley at plymouthsystems dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam dot hendley at | |plymouthsystems dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696