This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41772] segfault due to wrong code in TRANSFER?
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2009 20:31:37 -0000
- Subject: [Bug fortran/41772] segfault due to wrong code in TRANSFER?
- References: <bug-41772-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from burnus at gcc dot gnu dot org 2009-10-20 20:31 -------
For input.xml "<point coord="0" />" is enough.
Valgrind shows the following (and some more str_vs / vs_str / str_alloc invalid
reads). str_vs and vs_str convert (TRANSFER) a multi-character string into a
char(1) array and vice versa.
Invalid read of size 1
at 0x4C256E8: memcpy (mc_replace_strmem.c:482)
by 0x4C0160: __fox_m_fsys_array_str_MOD_str_vs
(fox_m_fsys_array_str.F90:46)
by 0x49B050: __m_common_namespaces_MOD_checknamespaces
(m_common_namespaces.F90:603)
by 0x46B726: open_tag.1918 (m_sax_parser.F90:2360)
by 0x4549E9: __m_sax_parser_MOD_sax_parse (m_sax_parser.F90:843)
by 0x401987: __m_dom_parse_MOD_runparser (m_dom_parse.f90:500)
by 0x4016E9: __m_dom_parse_MOD_parsefile (m_dom_parse.f90:547)
by 0x40143B: MAIN__ (fox.f90:7)
by 0x40147A: main (fox.f90:1)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|segfault |segfault due to wrong code
| |in TRANSFER?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41772