This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24228] New: Segfault in chrec_contains_undetermined () at tree-chrec.c:871


Attached testcase segfaults when compiled with gcc version 4.1.0 20051006:

~/gcc-build/gcc/cc1plus -O3 -ftree-vectorize -fdump-tree-vect-all -quiet
-march=pentium4 express.ii
express.cpp: In function âvoid pov::Parse_Num_Factor(double*, int*)â:
express.cpp:1040: warning: converting to âintâ from âdoubleâ
express.cpp: In function âvoid pov::Parse_Num_Term(double*, int*)â:
express.cpp:1520: internal compiler error: Segmentation fault

Backtrace:

#4  0x0826c4fa in tree_complete_unroll () at tree-ssa-loop.c:376
#3  0x0828f1a7 in tree_unroll_loops_completely () at
tree-ssa-loop-ivcanon.c:381
#2  0x0828efb1 in canonicalize_loop_induction_variables () at
tree-ssa-loop-ivcanon.c:309
#1  0x0860faf7 in chrec_contains_undetermined () at tree-chrec.c:878
#0  0x0860f926 in chrec_contains_undetermined () at tree-chrec.c:871

This is the exact place of the segfault:

871 switch (TREE_CODE_LENGTH (TREE_CODE (chrec)))
872    {
873    case 3:

chrec value is 0xa5a5a5a5, which is rather suspicious.


-- 
           Summary: Segfault in chrec_contains_undetermined () at tree-
                    chrec.c:871
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uros at kss-loka dot si
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]