public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x" Date: Sat, 01 Nov 2008 22:39:00 -0000 [thread overview] Message-ID: <20081101223849.25577.qmail@sourceware.org> (raw) In-Reply-To: <bug-37992-13404@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from burnus at gcc dot gnu dot org 2008-11-01 22:38 ------- First valgrind error: ==21621== Invalid read of size 8 ==21621== at 0x46AAEA: gfc_resolve_expr (resolve.c:4248) That is: if (e->symtree == NULL || e->symtree->n.sym == NULL) I think e->expr_type == EXPR_FUNCTION, i.e. the access should be OK?!? Second valgrind error: ==21621== Address 0x65b2ef8 is 40 bytes inside a block of size 56 free'd ==21621== at 0x4C243AF: free (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) ==21621== by 0x482C6A: gfc_delete_symtree (symbol.c:2269) That's st0 = gfc_find_symtree (*root, name); st.name = gfc_get_string (name); gfc_delete_bbt (root, &st, compare_symtree); gfc_free (st0); // <<<< Line 2269 Seemingly, the recovery after detecting the error half deletes a symbol. I think the problem is the "foo" which exists not only as local symbol. Note: If one adds "IMPLICIT NONE" the ICE disappears. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37992
next prev parent reply other threads:[~2008-11-01 22:39 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-01 22:05 [Bug fortran/37992] New: " burnus at gcc dot gnu dot org 2008-11-01 22:39 ` burnus at gcc dot gnu dot org [this message] 2008-11-01 22:44 ` [Bug fortran/37992] " janus at gcc dot gnu dot org 2008-11-02 17:51 ` mikael dot morin at tele2 dot fr 2008-11-02 18:04 ` mikael dot morin at tele2 dot fr 2008-11-03 11:03 ` dominiq at lps dot ens dot fr 2008-11-04 8:00 ` pault at gcc dot gnu dot org 2008-11-05 14:03 ` mikael at gcc dot gnu dot org 2008-11-05 17:03 ` [Bug fortran/37992] ICE while resolving charlen for rejected statements mikael at gcc dot gnu dot org 2008-11-05 18:48 ` mikael at gcc dot gnu dot org 2008-11-05 22:30 ` dominiq at lps dot ens dot fr 2008-11-16 20:47 ` mikael at gcc dot gnu dot org 2008-11-16 21:06 ` mikael at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20081101223849.25577.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).