public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/35696] Segmentation fault
       [not found] <bug-35696-4@http.gcc.gnu.org/bugzilla/>
@ 2012-02-02 18:37 ` pinskia at gcc dot gnu.org
  2021-12-24 20:57 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-02 18:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 18:37:07 UTC ---
The testcase in comment #1 works for me with 4.3 and 4.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/35696] Segmentation fault
       [not found] <bug-35696-4@http.gcc.gnu.org/bugzilla/>
  2012-02-02 18:37 ` [Bug middle-end/35696] Segmentation fault pinskia at gcc dot gnu.org
@ 2021-12-24 20:57 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-24 20:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED
   Target Milestone|---                         |4.3.0

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Worked for me back in GCC 4.3 so closing.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/35696] Segmentation fault
  2008-03-25 20:44 [Bug preprocessor/35696] New: " sprinkle at ECE dot Arizona dot Edu
                   ` (2 preceding siblings ...)
  2008-07-18 20:01 ` sam dot hendley at plymouthsystems dot com
@ 2008-07-21 13:51 ` sam dot hendley at plymouthsystems dot com
  3 siblings, 0 replies; 6+ messages in thread
From: sam dot hendley at plymouthsystems dot com @ 2008-07-21 13:51 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2486 bytes --]



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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/35696] Segmentation fault
  2008-03-25 20:44 [Bug preprocessor/35696] New: " sprinkle at ECE dot Arizona dot Edu
  2008-03-25 20:53 ` [Bug middle-end/35696] " pinskia at gcc dot gnu dot org
  2008-03-25 22:25 ` sprinkle at ECE dot Arizona dot Edu
@ 2008-07-18 20:01 ` sam dot hendley at plymouthsystems dot com
  2008-07-21 13:51 ` sam dot hendley at plymouthsystems dot com
  3 siblings, 0 replies; 6+ messages in thread
From: sam dot hendley at plymouthsystems dot com @ 2008-07-18 20:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sam dot hendley at plymouthsystems dot com  2008-07-18 20:00 -------
Created an attachment (id=15929)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15929&action=view)
Preprocessed file created by seg fault


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/35696] Segmentation fault
  2008-03-25 20:44 [Bug preprocessor/35696] New: " sprinkle at ECE dot Arizona dot Edu
  2008-03-25 20:53 ` [Bug middle-end/35696] " pinskia at gcc dot gnu dot org
@ 2008-03-25 22:25 ` sprinkle at ECE dot Arizona dot Edu
  2008-07-18 20:01 ` sam dot hendley at plymouthsystems dot com
  2008-07-21 13:51 ` sam dot hendley at plymouthsystems dot com
  3 siblings, 0 replies; 6+ messages in thread
From: sprinkle at ECE dot Arizona dot Edu @ 2008-03-25 22:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sprinkle at ECE dot Arizona dot Edu  2008-03-25 22:24 -------
(In reply to comment #2)
> I think this is a dup of bug 32197.
> 

After this ping, I tried on the same machine, with gcov off, and it worked.
However, it also worked by not using ccache (it seems that on this machine, CC
and CXX are environment variables mapping to ccache). Perhaps that is the real
issue? If I set
 unset CC
 unset CXX
 cd build
 rm -rf *
 cmake .. && make

Then I achieve success, even with gcov enabled...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/35696] Segmentation fault
  2008-03-25 20:44 [Bug preprocessor/35696] New: " sprinkle at ECE dot Arizona dot Edu
@ 2008-03-25 20:53 ` pinskia at gcc dot gnu dot org
  2008-03-25 22:25 ` sprinkle at ECE dot Arizona dot Edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-25 20:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-03-25 20:52 -------
I think this is a dup of bug 32197.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
          Component|preprocessor                |middle-end


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35696


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-24 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-35696-4@http.gcc.gnu.org/bugzilla/>
2012-02-02 18:37 ` [Bug middle-end/35696] Segmentation fault pinskia at gcc dot gnu.org
2021-12-24 20:57 ` pinskia at gcc dot gnu.org
2008-03-25 20:44 [Bug preprocessor/35696] New: " sprinkle at ECE dot Arizona dot Edu
2008-03-25 20:53 ` [Bug middle-end/35696] " pinskia at gcc dot gnu dot org
2008-03-25 22:25 ` sprinkle at ECE dot Arizona dot Edu
2008-07-18 20:01 ` sam dot hendley at plymouthsystems dot com
2008-07-21 13:51 ` sam dot hendley at plymouthsystems dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).