From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6422 invoked by alias); 11 Feb 2014 11:14:09 -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 6348 invoked by uid 48); 11 Feb 2014 11:14:03 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/60142] New: [4.9 Regression][asan] -fsanitize=address breaks debugging - stepping into functions no longer possible Date: Tue, 11 Feb 2014 11:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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-02/txt/msg01022.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60142 Bug ID: 60142 Summary: [4.9 Regression][asan] -fsanitize=address breaks debugging - stepping into functions no longer possible Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Created attachment 32100 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32100&action=edit Small C++ testcase Debugging the following code works (on x86-64-linux) with GCC 4.8.3 20131205 - or with GCC 4.9.0 20140211 and *without* -fsanitize=address. Using ASAN, one has the following result. Namely, it is not possible to step into the function "test()". $ g++ -fsanitize=address -O0 -g test2.cxx $ gdb ./a.out ... (gdb) b main Breakpoint 1 at 0x401131: file test2.cxx, line 15. (gdb) run Starting program: /data/local_users/tobiasb/xpcbool/unittests/a.out Breakpoint 1, main () at test2.cxx:15 15 test(); (gdb) s 0: 1 1: 2 2: 3 [Inferior 1 (process 6022) exited normally]