From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26643 invoked by alias); 10 Dec 2012 13:26:57 -0000 Received: (qmail 26183 invoked by uid 48); 10 Dec 2012 13:26:32 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55341] address-sanitizer and Fortran Date: Mon, 10 Dec 2012 13:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-12/txt/msg00980.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55341 --- Comment #11 from Joost VandeVondele 2012-12-10 13:26:31 UTC --- (In reply to comment #10) > >> ./a.out | python ./asan_symbolize.py > It should be > ./a.out 2>&1 | python ./asan_symbolize.py not good yet, line numbers are 0. Also happens for a C testcase. Also addr2line seems not happy: addr2line -e ./a.out 0x400921 ??:0 > gfortran -g -O0 -fsanitize=address -fno-omit-frame-pointer asan_test.f90 ; ./a.out 2>&1 | python ./asan_symbolize.py ================================================================= ==45957== ERROR: AddressSanitizer: stack-buffer-underflow on address 0x7fff9752bdd8 at pc 0x400922 bp 0x7fff9752bda0 sp 0x7fff9752bd98 WRITE of size 4 at 0x7fff9752bdd8 thread T0 #0 0x400921 in test_asan_01_ ??:0 #1 0x400942 in MAIN__ asan_test.f90:0 #2 0x400978 in main ??:0 #3 0x351661ecdc in ?? ??:0 Address 0x7fff9752bdd8 is located at offset 24 in frame of T0's stack: