From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28660 invoked by alias); 19 Dec 2012 14:10:23 -0000 Received: (qmail 28391 invoked by uid 48); 19 Dec 2012 14:09:56 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55341] address-sanitizer and Fortran Date: Wed, 19 Dec 2012 14:10: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: URL 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/msg01876.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55341 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://gcc.gnu.org/ml/gcc-p | |atches/2012-12/msg01178.htm | |l --- Comment #26 from Joost VandeVondele 2012-12-19 14:09:54 UTC --- with Jakob's patch (http://gcc.gnu.org/ml/gcc-patches/2012-12/msg01178.html), the code runs further, now stopping on another error which seems to be in asan shadow, and also triggering some kind of an asan internal assert: ================================================================= ==32737== ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff5c9ec638 at pc 0x4468bb bp 0x7fff5c9ec610 sp 0x7fff5c9ec608 WRITE of size 8 at 0x7fff5c9ec638 thread T0 #0 0x4468ba in __cp_log_handling_MOD_cp_int_to_string /data/vjoost/gnu/cp2k/cp2k/src/../src/cp_log_handling.F:882 ==32737== AddressSanitizer CHECK failed: ../../../../gcc/libsanitizer/asan/asan_report.cc:149 "((name_end)) != (0)" (0x0, 0x0) #0 0x7feaeae78d83 in AsanCheckFailed _asan_rtl_ #1 0x7feaeae7d3b3 in _ZN11__sanitizer11CheckFailedEPKciS1_yy /data/vjoost/gnu/gcc_trunk/obj/x86_64-unknown-linux-gnu/libsanitizer/sanitizer_common/../../../../gcc/libsanitizer/sanitizer_common/sanitizer_common.cc:49 Stats: 415M malloced (231M for red zones) by 484257 calls Stats: 0M realloced by 0 calls Stats: 282M freed by 427195 calls Stats: 264M really freed by 150081 calls Stats: 418M (107040 full pages) mmaped in 357 calls mmaps by size class: 7:294840; 8:24564; 9:22506; 10:9198; 11:18615; 12:6656; 13:5632; 14:96; 15:16; 16:8; 18:2; 21:7; 23:1; 24:2; 25:2; 26:2; mallocs by size class: 7:335865; 8:33279; 9:33157; 10:17200; 11:24104; 12:20478; 13:19994; 14:147; 15:11; 16:5; 18:2; 21:7; 23:1; 24:2; 25:3; 26:2; frees by size class: 7:320075; 8:18667; 9:20241; 10:16596; 11:11548; 12:19958; 13:19970; 14:124; 15:2; 16:5; 21:6; 23:1; 25:1; 26:1; rfrees by size class: 7:43981; 8:18546; 9:20241; 10:16454; 11:11497; 12:19531; 13:19693; 14:124; 15:2; 16:4; 21:6; 25:1; 26:1; Stats: malloc large: 33 small slow: 11769