From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12037 invoked by alias); 4 Feb 2015 19:00:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11993 invoked by uid 48); 4 Feb 2015 19:00:54 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/64921] [4.9/5 Regression] FAIL: gfortran.dg/class_allocate_18.f90 Date: Wed, 04 Feb 2015 19:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00353.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64921 --- Comment #9 from Dominique d'Humieres --- > If I have understood correctly, -fPIC is not supported on x86_64 and so, > unless I am mistaken, I cannot help you further. This is not how I understand comment 1. Note that if I compile with -fsanitize=address, the executable crashes with allocated! ================================================================= ==73209==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000e040 at pc 0x000103b59dbd bp 0x7fff5c0a6fa0 sp 0x7fff5c0a6f98 READ of size 8 at 0x60200000e040 thread T0 #0 0x103b59dbc (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x100001dbc) #1 0x103b595aa (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x1000015aa) #2 0x103b59889 (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x100001889) #3 0x103b5a7a6 (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x1000027a6) #4 0x7fff8fd1e5c8 (/usr/lib/system/libdyld.dylib+0x35c8) #5 0x0 () 0x60200000e040 is located 0 bytes to the right of 16-byte region [0x60200000e030,0x60200000e040) allocated by thread T0 here: #0 0x103b8d1fa (/opt/gcc/gcc4.10w/lib/libasan.2.dylib+0x2f1fa) #1 0x103b59642 (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x100001642) #2 0x103b5a7a6 (/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out+0x1000027a6) #3 0x7fff8fd1e5c8 (/usr/lib/system/libdyld.dylib+0x35c8) #4 0x0 () SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 ?? Shadow bytes around the buggy address: 0x1c0400001bb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1c0400001bc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1c0400001bd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1c0400001be0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1c0400001bf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa 01 fa =>0x1c0400001c00: fa fa 00 fa fa fa 00 00[fa]fa 07 fa fa fa 07 fa 0x1c0400001c10: fa fa 06 fa fa fa 00 06 fa fa 00 00 fa fa 03 fa 0x1c0400001c20: fa fa 00 06 fa fa 00 07 fa fa 00 fa fa fa 00 00 0x1c0400001c30: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00 0x1c0400001c40: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00 0x1c0400001c50: fa fa 00 00 fa fa 00 00 fa fa 00 00 fa fa 00 00 I see this for r220302, r220156, r220109, and r219830 (i.e., all the revisions I have tested). Note that Janus has removed the -fsanitize=undefined option at r220181, while it worked for me provided I ran the test after install.