asan causes hangs on arm64

Bug #1709727 reported by dann frazier
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-5 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Zesty
Triaged
Undecided
Unassigned
gcc-6 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Invalid
Undecided
Unassigned
Zesty
Triaged
Undecided
Unassigned

Bug Description

[Impact]
Binaries built w/ asan support hang on arm64. This causes many timeouts during the test phase of a gcc build, causing builds to need ~24 hours to complete.

[Test Case]
$ cat test.c
#include <stdio.h>

void main() {
  printf("hi.\n");
}
$ gcc test.c -g -fsanitize=address -fno-omit-frame-pointer test.c -o test
$ ./test
==46644==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/sanitizer_common/sanitizer_allocator.h:844 "((res)) < ((kNumPossibleRegions))" (0xffffb4b, 0x8000000)
[... HANG ...]

Plus see the tests in the libasan testsuite succeed.

[Regression Risk]
None, unless the 48bit-vma support is removed again from the kernel. Can't find the corresponding kernel SRU which explained the regression potential in this kernel change.

Revision history for this message
dann frazier (dannf) wrote :
dann frazier (dannf)
Changed in gcc-6 (Ubuntu Xenial):
status: New → Invalid
tags: added: patch
Revision history for this message
dann frazier (dannf) wrote :

The same fix works for gcc-5/xenial.

dann frazier (dannf)
Changed in gcc-5 (Ubuntu):
status: New → Triaged
Changed in gcc-5 (Ubuntu Xenial):
status: New → Triaged
Changed in gcc-5 (Ubuntu Zesty):
status: New → Triaged
Changed in gcc-6 (Ubuntu):
status: New → Triaged
Changed in gcc-6 (Ubuntu Zesty):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-6 - 6.4.0-4ubuntu1

---------------
gcc-6 (6.4.0-4ubuntu1) artful; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-6 (6.4.0-4) unstable; urgency=medium

  * Update to SVN 20170820 (r251205) from the gcc-6-branch.
    - Fix PR target/81894 (x86), PR target/81861 (x86),
      PR tree-optimization/81354, PR c++/71570.
  * Don't build the gc enabled libobjc for cross compilers. Closes: #872301.
  * Fix hangs w/ asan binaries on arm64 (Dann Frazier). LP: #1709727.

 -- Matthias Klose <email address hidden> Sun, 20 Aug 2017 17:27:57 +0200

Changed in gcc-6 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package gcc-5 - 5.4.1-12ubuntu2

---------------
gcc-5 (5.4.1-12ubuntu2) artful; urgency=medium

  * Merge with Debian; remaining changes:
    - Build from upstream sources.

gcc-5 (5.4.1-12) unstable; urgency=medium

  * Update to SVN 20170820 (r251205, 5.4.1) from the gcc-5-branch.
    - Fix PR libgomp/80394, PR sanitizer/77396, PR sanitizer/80166,
      PR c++/78761, PR gcov-profile/78783, PR c++/79641, PR c/80097,
      PR c++/79512, PR c/77767, PR c/67410, PR c/72816, PR libgomp/80394,
      PR rtl-optimization/80385, PR target/80286 (x86), PR debug/80025,
      PR sanitizer/80168, PR rtl-optimization/80112, PR c++/80129,
      PR sanitizer/79944, PR target/79932 (x86), PR target/79932 (x86),
      PR rtl-optimization/79901, PR rtl-optimization/79901, PR target/79807,
      PR target/79729 (x86), PR middle-end/79396, PR target/79570,
      PR target/79494 (x86), PR target/79568 (x86), PR target/79559 (x86),
      PR tree-optimization/79411, PR middle-end/79399, PR target/79197 (PPC),
      PR ipa/77905, PR target/78796 (AArch64), PR fortran/78298,
      PR middle-end/69183, PR middle-end/78416, PR middle-end/67335,
      PR rtl-optimization/78378, PR target/78227 (x86), PR sanitizer/66343,
      PR rtl-optimization/77919, PR fortran/77665, PR middle-end/77624,
      PR target/77587, PR middle-end/77594, PR sanitizer/68260,
      PR fortran/77516, PR debug/77363, PR middle-end/77377, PR target/71910,
      PR tree-optimization/72824, PR tree-optimization/72824,
      PR sanitizer/71953, PR middle-end/79931, PR ipa/65972, PR lto/50345,
      PR gcov-profile/78783, PR gcov-profile/80413, PR ipa/80212,
      PR sanitizer/70878, PR gcov-profile/80224, PR ipa/80205, PR ipa/80104,
      PR c++/80363, PR c++/80176, PR c++/80141, PR c++/79896, PR c++/79664,
      PR c++/79512, PR c++/78341, PR c++/78949, PR c++/78649, PR c++/77739,
      PR c++/77285, PR c++/78089, PR c++/77467, PR c++/77722, PR c++/77637,
      PR c++/77375, PR c++/72868, PR fortran/78866, PR fortran/77666,
      PR fortran/77500, PR middle-end/50199, PR sanitizer/78992,
      PR sanitizer/78532, PR libstdc++/81002, PR c/81006, PR target/81894 (x86),
      PR target/81861 (x86), PR tree-optimization/81354, PR sanitizer/81604,
      PR tree-optimization/81555, PR tree-optimization/81556,
      PR tree-optimization/81162, PR target/80569 (x86), PR target/81471 (x86),
      PR target/81375 (x86), PR target/81300 (x86), PR tree-optimization/81192,
      PR target/80382 (PPC), PR target/80966 (PPC), PR rtl-optimization/73650,
      PR target/61729 (PPC), PR target/77850 (PPC), PR target/80382 (PPC),
      PR middle-end/80692, PR target/80966 (PPC), PR middle-end/80902,
      PR target/79155 (x86), PR other/80909, PR ipa/80663, PR ipa/79850,
      PR driver/31468, PR other/80589, PR gcov-profile/53915, PR driver/56469,
      PR target/80968 (SPARC), PR target/80968 (SPARC), PR c/81006,
      PR fortran/70601.
    - Fix PR sanitizer/66343. LP: #1704401.
  * Don't build the gc enabled libobjc for cross compilers. Closes: #872233.
  * Fix hangs w/ asan binaries on arm64 (Dann Frazier). LP: #1709727.
  * Linaro branch only: Fix PR target/79041, aarch64 backend em...

Read more...

Changed in gcc-5 (Ubuntu):
status: Triaged → Fix Released
Matthias Klose (doko)
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello dann, or anyone else affected,

Accepted gcc-5 into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gcc-5/5.4.0-6ubuntu1~16.04.5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in gcc-5 (Ubuntu Xenial):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-xenial
Revision history for this message
dann frazier (dannf) wrote :

xenial/gcc-5 verification:

ubuntu@neander:~$ gcc -v 2>&1 | tail -1
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5)
ubuntu@neander:~$ gcc -g -fsanitize=address -fno-omit-frame-pointer test.c -o test
ubuntu@neander:~$ ./test
hi.

tags: added: verification-done verification-done-xenial
removed: verification-needed verification-needed-xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-5 - 5.4.0-6ubuntu1~16.04.5

---------------
gcc-5 (5.4.0-6ubuntu1~16.04.5) xenial-proposed; urgency=medium

  * SRU
  * Fix PR target/77267 (x86), taken from the trunk. LP: #1623418.
  * Fix hangs w/ asan binaries on arm64 (Dann Frazier). LP: #1709727.
  * Linaro branch only: Fix PR target/79041, aarch64 backend emitting
    R_AARCH64_ADR_PREL_PG_HI21 relocation despite -mpc-relative-literal-loads
    option being used (Dan Frazier). LP: #1695093.

 -- Matthias Klose <email address hidden> Wed, 23 Aug 2017 11:35:00 +0200

Changed in gcc-5 (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gcc-5 has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.