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

             Bug #: 57215
           Summary: cc1plus causes possible glibc free corruption
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: dcb...@hotmail.com


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

I just tried to compile the package efte-1.1-6
on gcc-4.9 trunk dated 20130508 on an AMD x86_64 box.

The compiler said

/home/dcb/rpmbuild/BUILD/efte-1.1/src/h_c.cpp:32:5: internal compiler error:
Aborted
 int Hilit_C(EBuffer *BF, int /*LN*/, PCell B, int Pos, int Width, ELine *Line,
hlState &State, hsState *StateMap, int *ECol) {
     ^
0xaa373f crash_signal
    ../../src/trunk/gcc/toplev.c:333
0xeceaf1 analyze_candidates_and_replace
    ../../src/trunk/gcc/gimple-ssa-strength-reduction.c:3414
0xeceaf1 execute_strength_reduction
    ../../src/trunk/gcc/gimple-ssa-strength-reduction.c:3463
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

glibc said

*** glibc detected ***
/home/dcb/gcc/results/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1plus:
free(): invalid next size (fast): 0x000000000346d8d0 ***

It looks to me like some memory allocation goes wrong because
glibc complains.

Preprocessed source code attached. Flag -O2 required.

Reply via email to