public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21493] New: internal compiler error: Segmentation fault
@ 2005-05-10 15:25 mmalater at nycap dot rr dot com
  2005-05-10 15:26 ` [Bug c++/21493] " mmalater at nycap dot rr dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mmalater at nycap dot rr dot com @ 2005-05-10 15:25 UTC (permalink / raw)
  To: gcc-bugs

I cannot compile VTK using gcc 4.1.0 (at least the one shipped in gcc-snapshot).

Step to reproduce (on debian testing system):

1. sudo apt-get install gcc-snapshot (as of today)
2. Get VTK source (CVS)
3. Compile line is:

/usr/lib/gcc-snapshot/bin/g++ -save-temps -o vtkLargeInteger.o
-DvtkCommon_EXPORTS -Wall -W -Wshadow -Wunused -Wno-system-headers
-Wno-deprecated -Woverloaded-virtual -fno-trapping-math -ftrapv -fno-inline
-fno-inline-functions -Wno-long-long  -Wno-deprecated -O3 -fPIC 
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Utilities
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Rendering
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Parallel
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Hybrid
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Patented
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/VolumeRendering
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Rendering
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Rendering/Testing/Cxx
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/IO
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Imaging
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Graphics
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/GenericFiltering
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Filtering
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Common
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Utilities
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Common/Testing/Cxx
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Utilities/DICOMParser
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Utilities/DICOMParser
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Utilities/vtkfreetype/include
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Utilities/vtkfreetype/include
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Utilities/vtkfreetype
-I/home/mathieu/Dashboards/MyTests/ParaView/VTK/Utilities/ftgl/src
-I/home/mathieu/Dashboards/MyTests/VTK-gcc-snapshot/Utilities/ftgl
-I/usr/X11R6/include -I/usr/include/tcl8.4   -DVTK_IN_VTK  -c
/home/mathieu/Dashboards/MyTests/ParaView/VTK/Common/vtkLargeInteger.cxx
/home/mathieu/Dashboards/MyTests/ParaView/VTK/Common/vtkLargeInteger.cxx: In
member function 'vtkLargeInteger& vtkLargeInteger::operator<<=(int)':
/home/mathieu/Dashboards/MyTests/ParaView/VTK/Common/vtkLargeInteger.cxx:568:
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.

-- 
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mmalater at nycap dot rr dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/21493] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
@ 2005-05-10 15:26 ` mmalater at nycap dot rr dot com
  2005-05-10 15:27 ` mmalater at nycap dot rr dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmalater at nycap dot rr dot com @ 2005-05-10 15:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmalater at nycap dot rr dot com  2005-05-10 15:25 -------
$ /usr/lib/gcc-snapshot/bin/gcc --version                                      
                                                         
gcc (GCC) 4.1.0 20050508 (experimental)
Copyright (C) 2005 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.



-- 


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


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

* [Bug c++/21493] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
  2005-05-10 15:26 ` [Bug c++/21493] " mmalater at nycap dot rr dot com
@ 2005-05-10 15:27 ` mmalater at nycap dot rr dot com
  2005-05-10 16:58 ` [Bug tree-optimization/21493] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmalater at nycap dot rr dot com @ 2005-05-10 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmalater at nycap dot rr dot com  2005-05-10 15:27 -------
Created an attachment (id=8852)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8852&action=view)
/usr/lib/gcc-snapshot/bin/g++ -save-temps ...

Adding save-temps

-- 


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


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

* [Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
  2005-05-10 15:26 ` [Bug c++/21493] " mmalater at nycap dot rr dot com
  2005-05-10 15:27 ` mmalater at nycap dot rr dot com
@ 2005-05-10 16:58 ` pinskia at gcc dot gnu dot org
  2005-05-10 17:05 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 16:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-10 16:57 -------
Here is the backtrace:
#0  compare_values (val1=0x0, val2=0xb7bf1a08) at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/
tree-vrp.c:300
#1  0x084db1ae in extract_range_from_unary_expr (vr=0xbfe9b994, expr=0xb69227c0)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/tree-vrp.c:905
#2  0x084dc2f5 in vrp_visit_assignment (stmt=0xb691f948, output_p=0xbfe9b9e8)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/tree-vrp.c:1918
#3  0x08244959 in simulate_stmt (stmt=0xb691f948) at /home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/tree-ssa-propagate.c:302
#4  0x082450e1 in ssa_propagate (visit_stmt=0, visit_phi=0)
    at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/tree-ssa-propagate.c:425
#5  0x084de982 in execute_vrp () at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/tree-vrp.c:2380

I am going to reduce this soon.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org, pinskia at gcc dot gnu
                   |                            |dot org
          Component|c++                         |tree-optimization
           Keywords|                            |ice-on-valid-code
            Summary|internal compiler error:    |[4.1 Regression] internal
                   |Segmentation fault          |compiler error: Segmentation
                   |                            |fault
   Target Milestone|---                         |4.1.0


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


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

* [Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
                   ` (2 preceding siblings ...)
  2005-05-10 16:58 ` [Bug tree-optimization/21493] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-10 17:05 ` pinskia at gcc dot gnu dot org
  2005-05-10 17:20 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 17:05 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|dberlin at gcc dot gnu dot  |dnovillo at gcc dot gnu dot
                   |org                         |org


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


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

* [Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
                   ` (3 preceding siblings ...)
  2005-05-10 17:05 ` pinskia at gcc dot gnu dot org
@ 2005-05-10 17:20 ` pinskia at gcc dot gnu dot org
  2005-05-10 17:49 ` pinskia at gcc dot gnu dot org
  2005-05-15  1:41 ` mmalater at nycap dot rr dot com
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-10 17:20 -------
Confirmed, reduced testcase:
class vtkLargeInteger
{
  vtkLargeInteger& operator<<=(int n);
  vtkLargeInteger& operator>>=(int n);
};
vtkLargeInteger& vtkLargeInteger::operator<<=(int n)
{
  int i;

  if (n < 0)
    {
      *this >>= -n;
      return *this;
    }
  return *this;
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-10 17:20:41
               date|                            |


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


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

* [Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
                   ` (4 preceding siblings ...)
  2005-05-10 17:20 ` pinskia at gcc dot gnu dot org
@ 2005-05-10 17:49 ` pinskia at gcc dot gnu dot org
  2005-05-15  1:41 ` mmalater at nycap dot rr dot com
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 17:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-10 17:48 -------
(In reply to comment #4)
> Confirmed, reduced testcase:

Forgot to say only -ftrapv -O2 is needed to reproduce the bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-05-10 17:20:41         |2005-05-10 17:48:56
               date|                            |


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


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

* [Bug tree-optimization/21493] [4.1 Regression] internal compiler error: Segmentation fault
  2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
                   ` (5 preceding siblings ...)
  2005-05-10 17:49 ` pinskia at gcc dot gnu dot org
@ 2005-05-15  1:41 ` mmalater at nycap dot rr dot com
  6 siblings, 0 replies; 8+ messages in thread
From: mmalater at nycap dot rr dot com @ 2005-05-15  1:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmalater at nycap dot rr dot com  2005-05-15 01:41 -------
Just for fun I was running valgrind on g++ and the bug seems pretty
straigforward to fix once you have a g++ compile with Debug. Here is the output:

valgrind --trace-children=yes  /usr/lib/gcc-snapshot/bin/g++ --save-temps -O2
-ftrapv -c cmDependsFortranParser.cxx
==6594== Invalid read of size 4
==6594==    at 0x8457F06: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x845A713: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x845B4D3: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x81FC974: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x81FD02F: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x845D2CC: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x8182D6C: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x8182DFF: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x81830EA: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x81113A6: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x847DD6A: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x847EB2A: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x80C19BD: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x815E9A8: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x8429F31: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==    by 0x1B920E35: __libc_start_main (libc-start.c:242)
==6594==    by 0x80499A0: (within
/usr/lib/gcc-snapshot/libexec/gcc/i486-linux/4.1.0/cc1plus)
==6594==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
cmDependsFortranParser.cxx: In function 'int cmDependsFortran_yyparse(void*)':
cmDependsFortranParser.cxx:900: 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.

-- 


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


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

end of thread, other threads:[~2005-05-15  1:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-10 15:25 [Bug c++/21493] New: internal compiler error: Segmentation fault mmalater at nycap dot rr dot com
2005-05-10 15:26 ` [Bug c++/21493] " mmalater at nycap dot rr dot com
2005-05-10 15:27 ` mmalater at nycap dot rr dot com
2005-05-10 16:58 ` [Bug tree-optimization/21493] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-10 17:05 ` pinskia at gcc dot gnu dot org
2005-05-10 17:20 ` pinskia at gcc dot gnu dot org
2005-05-10 17:49 ` pinskia at gcc dot gnu dot org
2005-05-15  1:41 ` mmalater at nycap dot rr 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).