http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54327
Bug #: 54327
Summary: Segmentation fault in init_ggc
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
I just tried to compile the package httrack-3.43.9-5
on gcc-4.8 trunk dated 20120819 on an AMD x86_64 box.
The compiler said
htslib.c: In function 'treathead':
htslib.c:1246:6: internal compiler error: Segmentation fault
void treathead(t_cookie* cookie,char* adr,char* fil,htsblk* retour,char* rcvd)
{
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Here is valgrind with some more details
==13706== Invalid read of size 4
==13706== at 0xD4FF90: linemap_location_from_macro_expansion_p(line_maps*,
un
signed int) (line-map.c:796)
==13706== by 0xD4FFCF: linemap_lookup(line_maps*, unsigned int)
(line-map.c:5
12)
==13706== by 0x8E6534:
virt_loc_aware_diagnostic_finalizer(diagnostic_context
*, diagnostic_info*) (tree-diagnostic.c:113)
==13706== by 0xD3A263: diagnostic_report_diagnostic(diagnostic_context*,
diag
nostic_info*) (diagnostic.c:652)
==13706== by 0xD3B03F: internal_error(char const*, ...) (diagnostic.c:957)
==13706== by 0x8B800F: crash_signal(int) (toplev.c:335)
==13706== by 0x3809C3599F: ??? (in /usr/lib64/libc-2.15.so)
==13706== by 0x5A7625: init_ggc() (hwint.h:264)
==13706== by 0x8B967F: toplev_main(int, char**) (toplev.c:1137)
==13706== by 0x3809C21734: (below main) (in /usr/lib64/libc-2.15.so)
==13706== Address 0x24 is not stack'd, malloc'd or (recently) free'd
==13706==
Preprocessed source code attached. Flag -O2 required.