I just tried to compile the Suse Linux package libmodplug-0.8.7-1.5
with the G++ compiler version 4.5 snapshot 20090618.
The compiler said

In file included from /usr/include/string.h:428:0,
                 from load_pat.cpp:33:
In function 'char* strncpy(char*, const char*, size_t)'
/usr/include/bits/string3.h: In function 'void
_ZL19pat_read_waveheaderP8_IO_FILEP10WaveHeaderi.clone.1(FILE*, WaveHeader*)':
/usr/include/bits/string3.h:122:71: 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 attached. Flag -O2 required.

Here is valgrind helping out with a stack backtrace.

==32091== Invalid read of size 2
==32091==    at 0x53989D: cp_diagnostic_starter (error.c:2581)
==32091==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


-- 
           Summary: crash in cp_diagnostic_starter
           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=40502

Reply via email to