← Back to team overview

kernel-packages team mailing list archive

[Bug 1527599] Re: applications compiled with tsan (-fsanitize=thread) option fails to start with 3.19.0-41-generic kernel

 

** Description changed:

  Consider the following code:
- # cat test.c 
+ # cat test.c
  int main()
  {
-         return 0;
+         return 0;
  }
  
  Now compile it with clang-3.5 and -fsanitize=thread option and run:
  # clang-3.5 -fsanitize=thread -fPIE -pie test.c
- # ./a.out 
+ # ./a.out
  FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x5650b0bb2000 < 0x7cf000000000)
  FATAL: Make sure to compile with -fPIE and to link with -pie.
+ # cat /proc/sys/kernel/randomize_va_space
+ 2
  # uname -a
  Linux mikhin2 3.19.0-41-generic #46~14.04.2-Ubuntu SMP Tue Dec 8 17:46:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  
  This regression appears in 3.19.0-41-generic kernel. The example above
  runs fine (without FATAL errors) with previous  3.19.0-39-generic
  kernel.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.19.0-41-generic 3.19.0-41.46~14.04.2
  ProcVersionSignature: Ubuntu 3.19.0-39.44~14.04.1-generic 3.19.8-ckt9
  Uname: Linux 3.19.0-39-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Fri Dec 18 14:53:45 2015
  InstallationDate: Installed on 2015-12-14 (4 days ago)
  InstallationMedia: Xubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
  SourcePackage: linux-lts-vivid
  UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

- applications compiled with tsan (-fsanitize=thread) option fails to start with 3.19.0-41-generic kernel
+ applications compiled with tsan (-fsanitize=thread) option fail to start with 3.19.0-41-generic kernel

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-lts-vivid in Ubuntu.
https://bugs.launchpad.net/bugs/1527599

Title:
  applications compiled with tsan (-fsanitize=thread) option fail to
  start with 3.19.0-41-generic kernel

Status in linux-lts-vivid package in Ubuntu:
  New

Bug description:
  Consider the following code:
  # cat test.c
  int main()
  {
          return 0;
  }

  Now compile it with clang-3.5 and -fsanitize=thread option and run:
  # clang-3.5 -fsanitize=thread -fPIE -pie test.c
  # ./a.out
  FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x5650b0bb2000 < 0x7cf000000000)
  FATAL: Make sure to compile with -fPIE and to link with -pie.
  # cat /proc/sys/kernel/randomize_va_space
  2
  # uname -a
  Linux mikhin2 3.19.0-41-generic #46~14.04.2-Ubuntu SMP Tue Dec 8 17:46:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

  This regression appears in 3.19.0-41-generic kernel. The example above
  runs fine (without FATAL errors) with previous  3.19.0-39-generic
  kernel.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.19.0-41-generic 3.19.0-41.46~14.04.2
  ProcVersionSignature: Ubuntu 3.19.0-39.44~14.04.1-generic 3.19.8-ckt9
  Uname: Linux 3.19.0-39-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Fri Dec 18 14:53:45 2015
  InstallationDate: Installed on 2015-12-14 (4 days ago)
  InstallationMedia: Xubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
  SourcePackage: linux-lts-vivid
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-vivid/+bug/1527599/+subscriptions


References