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.
"""

Reply via email to