public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66578] New: [F2008] Invalid free on allocate(...,source=a(:)) in block Date: Wed, 17 Jun 2015 19:29:00 -0000 [thread overview] Message-ID: <bug-66578-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66578 Bug ID: 66578 Summary: [F2008] Invalid free on allocate(...,source=a(:)) in block Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- $ cat a4.f90 program main integer :: n n = 42 block real, dimension(0:n) :: a real, dimension(:), allocatable :: c call random_number(a) allocate(c,source=a(:)) end block end program main $ gfortran -g a4.f90 $ ./a.out *** Error in `./a.out': free(): invalid pointer: 0x00000000020c2110 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7364f)[0x7fa5b086664f] /lib64/libc.so.6(+0x78eae)[0x7fa5b086beae] ./a.out[0x400b0d] ./a.out[0x400b6b] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fa5b0814be5] ./a.out[0x4007c9] ======= Memory map: ======== 00400000-00401000 r-xp 00000000 08:04 4731063 /home/ig25/Krempel/Andre/a.out 00601000-00602000 r--p 00001000 08:04 4731063 /home/ig25/Krempel/Andre/a.out 00602000-00603000 rw-p 00002000 08:04 4731063 /home/ig25/Krempel/Andre/a.out 020bf000-020e0000 rw-p 00000000 00:00 0 [heap]
next reply other threads:[~2015-06-17 19:29 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-06-17 19:29 tkoenig at gcc dot gnu.org [this message] 2015-06-17 19:31 ` [Bug fortran/66578] " tkoenig at gcc dot gnu.org 2015-06-17 20:49 ` dominiq at lps dot ens.fr 2015-06-18 9:37 ` vehre at gcc dot gnu.org 2015-06-18 14:32 ` vehre at gcc dot gnu.org 2015-06-18 17:14 ` tkoenig at gcc dot gnu.org 2015-06-18 18:03 ` vehre at gcc dot gnu.org 2015-06-18 18:17 ` mikael at gcc dot gnu.org 2015-06-19 6:24 ` tkoenig at gcc dot gnu.org 2015-06-19 9:06 ` mikael at gcc dot gnu.org 2015-06-19 9:45 ` vehre at gcc dot gnu.org 2015-06-21 19:03 ` mikael at gcc dot gnu.org 2015-06-21 20:11 ` tkoenig at gcc dot gnu.org 2015-06-22 11:29 ` vehre at gcc dot gnu.org 2015-07-01 14:24 ` vehre at gcc dot gnu.org 2015-07-07 11:10 ` vehre at gcc dot gnu.org 2015-07-09 10:43 ` vehre at gcc dot gnu.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=bug-66578-4@http.gcc.gnu.org/bugzilla/ \ --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).