From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26583 invoked by alias); 1 Aug 2014 14:08:00 -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 26476 invoked by uid 48); 1 Aug 2014 14:07:51 -0000 From: "kcc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/61978] implement blacklist for sanitizer Date: Fri, 01 Aug 2014 14:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kcc at gcc dot gnu.org X-Bugzilla-Status: RESOLVED 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: 2014-08/txt/msg00053.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978 --- Comment #8 from Kostya Serebryany --- (In reply to Daniel Pinol from comment #7) > thank you everybody for your great feedback! > > @kostya: I provide here the full log. Even removing the #if's, it still > aborts. strict_memcmp=0 worked like a charm. Thanks! Good. Formally this is a bug, but in most cases not a very harmful one. So, just continue using strict_memcmp=0 > > I guess there's no way to just report the errors but not abort execution, > right? Right, asan exits on first error. (First entry in FAQ: https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer#FAQ) > > > 0x09de51cc is located 52 bytes to the left of global variable '*.LC2' from > '/home/dani/svn/robot/sources/src/interaction/gui/touchscreen/ReemH/ > videoWindow/VideoWindow.cpp' (0x9de5200) of size 1 > '*.LC2' is ascii string '' > 0x09de51cc is located 0 bytes to the right of global variable '*.LC1' from > '/home/dani/svn/robot/sources/src/interaction/gui/touchscreen/ReemH/ > videoWindow/VideoWindow.cpp' (0x9de51c0) of size 12 > '*.LC1' is ascii string 'VideoWindow' > SUMMARY: AddressSanitizer: global-buffer-overflow > ../../.././libsanitizer/asan/asan_interceptors.cc:325 __interceptor_memcmp > Shadow bytes around the buggy address: > 0x213bc9e0: 04 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 > 0x213bc9f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x213bca00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x213bca10: 01 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 f9 f9 f9 f9 > 0x213bca20: 01 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 > =>0x213bca30: 00 00 00 00 00 00 00 00 00[04]f9 f9 f9 f9 f9 f9 > 0x213bca40: 01 f9 f9 f9 f9 f9 f9 f9 00 00 01 f9 f9 f9 f9 f9 > 0x213bca50: 00 00 01 f9 f9 f9 f9 f9 00 07 f9 f9 f9 f9 f9 f9 > 0x213bca60: 00 05 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 > 0x213bca70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 0x213bca80: 00 01 f9 f9 f9 f9 f9 f9 00 00 03 f9 f9 f9 f9 f9 > Shadow byte legend (one shadow byte represents 8 application bytes): > Addressable: 00 > Partially addressable: 01 02 03 04 05 06 07 > Heap left redzone: fa > Heap right redzone: fb > Freed heap region: fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack partial redzone: f4 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned by user: f7 > Contiguous container OOB:fc > ASan internal: fe > ==19590==ABORTING