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++/30490] New: Segmentation fault for legal code with -O2


I just tried to compile package FlightGear-0.9.10-40
with the GNU C++ compiler version 4.3 snapshot 20070112.

The compiler said

replay.cxx: In function 'FGReplayData interpolate(double, FGReplayData,
FGReplayData)':
replay.cxx:224: 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.

Here is some help from valgrind

==7400== Invalid read of size 8
==7400==    at 0x5C731A: finalize_ssa_vuses (tree-ssa-operands.c:553)
==7400==    by 0x5C8047: finalize_ssa_stmt_operands (tree-ssa-operands.c:1169)
==7400==    by 0x5C8D3D: update_stmt_operands (tree-ssa-operands.c:2357)
==7400==    by 0x5D20C4: compute_may_aliases (tree-flow-inline.h:388)
==7400==    by 0x905CC4: execute_one_pass (passes.c:951)
==7400==    by 0x905EFB: execute_pass_list (passes.c:999)
==7400==    by 0x905F0D: execute_pass_list (passes.c:1000)
==7400==    by 0x58D0D1: tree_rest_of_compilation (tree-optimize.c:543)
==7400==    by 0x4F0317: expand_body (semantics.c:3095)
==7400==    by 0x95EF41: cgraph_expand_function (cgraphunit.c:989)
==7400==    by 0x960F75: cgraph_optimize (cgraphunit.c:1052)
==7400==    by 0x4924D4: cp_write_global_declarations (decl2.c:3347)
==7400==  Address 0xAFAFAFAFAFAFAFAF is not stack'd, malloc'd or (recently)
free'd

Preprocessed source code attached. Flag -O2 required.


-- 
           Summary: Segmentation fault for legal code with -O2
           Product: gcc
           Version: 4.3.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=30490


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