This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47204] New: [4.6 Regression] ICE: SIGSEGV in gfc_free_namespace (symbol.c:3323) on invalid code
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 7 Jan 2011 11:01:16 +0000
- Subject: [Bug fortran/47204] New: [4.6 Regression] ICE: SIGSEGV in gfc_free_namespace (symbol.c:3323) on invalid code
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47204
Summary: [4.6 Regression] ICE: SIGSEGV in gfc_free_namespace
(symbol.c:3323) on invalid code
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
----- testcase.f03 -----
select type (a)
------------------------
Compiler output:
$ gfortran testcase.f03
Error: Unexpected end of file in 'testcase.f03'
==8750== Invalid read of size 8
==8750== at 0x590EC2: gfc_free_namespace (symbol.c:3304)
==8750== by 0x5917EF: gfc_symbol_done_2 (symbol.c:3347)
==8750== by 0x553588: gfc_done_2 (misc.c:294)
==8750== by 0x55EC11: unexpected_eof (parse.c:1845)
==8750== by 0x562F5C: parse_executable (parse.c:3101)
==8750== by 0x5637C1: parse_progunit (parse.c:3939)
==8750== by 0x5643DD: gfc_parse_file (parse.c:4348)
==8750== by 0x59CB45: gfc_be_parse_file (f95-lang.c:250)
==8750== by 0x93A477: toplev_main (toplev.c:579)
==8750== by 0x6369BBC: (below main) (in /lib64/libc-2.11.2.so)
==8750== Address 0x6f16bf0 is 0 bytes inside a block of size 2,552 free'd
==8750== at 0x4C25E0D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==8750== by 0x550695: gfc_free_case_list (match.c:4361)
==8750== by 0x58BE7C: gfc_free_statements (st.c:230)
==8750== by 0x590EC1: gfc_free_namespace (symbol.c:3302)
==8750== by 0x5917EF: gfc_symbol_done_2 (symbol.c:3347)
==8750== by 0x553588: gfc_done_2 (misc.c:294)
==8750== by 0x55EC11: unexpected_eof (parse.c:1845)
==8750== by 0x562F5C: parse_executable (parse.c:3101)
==8750== by 0x5637C1: parse_progunit (parse.c:3939)
==8750== by 0x5643DD: gfc_parse_file (parse.c:4348)
==8750== by 0x59CB45: gfc_be_parse_file (f95-lang.c:250)
==8750== by 0x93A477: toplev_main (toplev.c:579)
==8750== by 0x6369BBC: (below main) (in /lib64/libc-2.11.2.so)
(many invalid reads follow, final crash is caused by double free)
f951: 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.
Tested revisions:
r168552 - crash
r165699 - crash
r161659 - crash
r158095 - OK
4.5 r168062 - OK