From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21849 invoked by alias); 19 Dec 2012 16:08:46 -0000 Received: (qmail 21089 invoked by uid 48); 19 Dec 2012 16:08:16 -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 16:08: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/msg01894.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55341 --- Comment #31 from Joost VandeVondele 2012-12-19 16:08:14 UTC --- (In reply to comment #27) > This time it looks like a valid error report (stack buffer overflow), but asan > crashes while reporting it. If I add -fno-omit-frame-pointer, the stack trace becomes better. the check now fails in what I believe would be a gfortran provided routine (__MAIN or similar). The invalid write of size 8 has become one of size 4: WRITE of size 4 at 0x7fff2faeb270 thread T0 #0 0x4472d9 in __cp_log_handling_MOD_cp_int_to_string /data/vjoost/gnu/cp2k/cp2k/src/../src/cp_log_handling.F:882 #1 0x6419b5 in __input_section_types_MOD_section_vals_get_subs_vals /data/vjoost/gnu/cp2k/cp2k/src/../src/input_section_types.F:1103 (discriminator 2) #2 0x48a77b in __f77_interface_MOD_create_force_env /data/vjoost/gnu/cp2k/cp2k/src/../src/f77_interface.F:817 #3 0x41566a in __cp2k_runs_MOD_cp2k_run /data/vjoost/gnu/cp2k/cp2k/src/../src/cp2k_runs.F:307 #4 0x4167f2 in __cp2k_runs_MOD_run_input /data/vjoost/gnu/cp2k/cp2k/src/../src/cp2k_runs.F:1133 #5 0x407289 in cp2k /data/vjoost/gnu/cp2k/cp2k/src/../src/cp2k.F:285 #6 0x40751a in main /data/vjoost/gnu/cp2k/cp2k/src/../src/cp2k.F:41 #7 0x351661ecdc in ?? ??:0 ==70361== AddressSanitizer CHECK failed: ../../../../gcc/libsanitizer/asan/asan_report.cc:149 "((name_end)) != (0)" (0x0, 0x0) #0 0x7f068f37bd83 in AsanCheckFailed _asan_rtl_ #1 0x7f068f3803b3 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