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++/46242] New: Segmentation fault in ipcp_driver


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

           Summary: Segmentation fault in ipcp_driver
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


Created attachment 22207
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22207
C++ source code

I just tried to compile package sword-1.6.1 with the latest 4.6
snapshot 20101023 on a Fedora Linux box. The compiler said

gbfidx.cpp: At global scope:
gbfidx.cpp:305:1: internal compiler error: Segmentation fault

valgrind says

==3149== Invalid read of size 2
==3149==    at 0xB0CE2E: ipcp_driver (ipa-cp.c:1292)
==3149==    by 0x86658E: execute_one_pass (passes.c:1560)
==3149==    by 0x866C69: execute_ipa_pass_list (passes.c:1927)
==3149==    by 0xB09E37: cgraph_optimize (cgraphunit.c:1730)
==3149==    by 0xB0A079: cgraph_finalize_compilation_unit (cgraphunit.c:1016)
==3149==    by 0x53E9BC: cp_write_global_declarations (decl2.c:3936)
==3149==    by 0x906EA7: toplev_main (toplev.c:931)
==3149==    by 0x325FC1EC5C: (below main) (in /lib64/libc-2.12.so)
==3149==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3149==

Source code attached. Flag -O3 required.


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