public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Dominique d'Humières" <dominiq@lps.ens.fr>
To: paul Thomas <paul.richard.thomas@gmail.com>
Cc: gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [Patch, committed] PR67933
Date: Tue, 27 Oct 2015 18:26:00 -0000	[thread overview]
Message-ID: <1193782F-944B-4E6C-A494-3A41058E0D1A@lps.ens.fr> (raw)

Dear Paul,

> I have added a testcase, which has been committed as revision 229452.

If I compile the test with -fsanitize=address,undefined I get at run time

==72440==ERROR: AddressSanitizer: global-buffer-overflow on address 0x00010adfee20 at pc 0x00010adf913d bp 0x7fff54e0a270 sp 0x7fff54e0a268
READ of size 8 at 0x00010adfee20 thread T0
    #0 0x10adf913c in __test_mod_MOD_method (a.out+0x10000413c)
    #1 0x10adf9aac in MAIN__ (a.out+0x100004aac)
    #2 0x10adf9b30 in main (a.out+0x100004b30)
    #3 0x7fff8e6de5c8 in start (libdyld.dylib+0x35c8)
    #4 0x0  (<unknown module>)

0x00010adfee20 is located 0 bytes to the right of global variable 'x' defined in '/opt/gcc/_clean/gcc/testsuite/gfortran.dg/allocate_with_source_15.f03:75' (0x10adfed80) of size 160
SUMMARY: AddressSanitizer: global-buffer-overflow (a.out+0x10000413c) in __test_mod_MOD_method
Shadow bytes around the buggy address:
…

Dominique

             reply	other threads:[~2015-10-27 18:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 18:26 Dominique d'Humières [this message]
2015-10-28  6:29 ` Paul Richard Thomas
  -- strict thread matches above, loose matches on Subject: below --
2015-10-29 11:22 Dominique d'Humières
2015-10-29 13:09 ` Bill Schmidt
2015-10-27 18:21 Paul Richard Thomas
2015-10-28 21:26 ` Bill Schmidt

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=1193782F-944B-4E6C-A494-3A41058E0D1A@lps.ens.fr \
    --to=dominiq@lps.ens.fr \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=paul.richard.thomas@gmail.com \
    /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: link
Be 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).