From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63932 invoked by alias); 21 Aug 2015 14:45:53 -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 61254 invoked by uid 48); 21 Aug 2015 14:45:44 -0000 From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/67308] New: FATAL: ThreadSanitizer: unexpected memory mapping Date: Fri, 21 Aug 2015 14:45: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: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 target_milestone 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: 2015-08/txt/msg01495.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308 Bug ID: 67308 Summary: FATAL: ThreadSanitizer: unexpected memory mapping Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: doko 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 Target Milestone: --- [forwarded from https://bugs.debian.org/796246] seen on the gcc-5-branch. $ uname -r 4.1.0-3-generic $ echo 'void main(void){}' | gcc -pie -fPIE -fsanitize=thread -xc - -ltsan && ./a.out FATAL: ThreadSanitizer: unexpected memory mapping 0x555caf24a000-0x555caf24b000 """ There was an intentional change in the kernel that causes PIEs to be loaded in a different address range: https://git.kernel.org/linus/d1fd836dcf00d2028c700c7e44d2c23404062c90 I think ThreadSanitizer is just going to have to learn about this. """