I just tried to compile package libgeos_c1-3.1.1 with the GNU C++ compiler
version 4.5 snapshot 20091126 and the compiler said

AbstractSTRtree.cpp: In member function 'geos::index::strtree::ItemsList*
geos::index::strtree::AbstractSTRtree::itemsTree(geos::index::strtree::AbstractNode*)':
AbstractSTRtree.cpp:365:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. Flags -O2 -funroll-loops required.

Here is valgrind helping out with a stack backtrace

==896== Invalid read of size 8
==896==    at 0x6A2309: cancel_loop_tree (cfgloop.c:1307)
==896==    by 0x6A231C: cancel_loop_tree (cfgloop.c:1308)
==896==    by 0x6A51DE: remove_path (cfgloopmanip.c:352)
==896==    by 0x81A1C3: unroll_and_peel_loops (loop-unroll.c:513)
==896==    by 0x80F416: rtl_unroll_and_peel_loops (loop-init.c:338)
==896==    by 0x84A51B: execute_one_pass (passes.c:1522)
==896==    by 0x84A7C4: execute_pass_list (passes.c:1577)
==896==    by 0x84A7D6: execute_pass_list (passes.c:1578)
==896==    by 0x84A7D6: execute_pass_list (passes.c:1578)
==896==    by 0x943460: tree_rest_of_compilation (tree-optimize.c:411)
==896==    by 0xAC61FB: cgraph_expand_function (cgraphunit.c:1178)
==896==    by 0xAC80A4: cgraph_optimize (cgraphunit.c:1245)
==896==  Address 0xa5a5a5a5a5a5a5d5 is not stack'd, malloc'd or (recently)
free'd
==896==


-- 
           Summary: cancel_loop_tree: bad read causes ice
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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

Reply via email to