llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[ASAN] strdup interceptor breaks unwinding on ARMv7

Open rengolin opened this issue 10 years ago • 4 comments

Bugzilla Link 27477
Version unspecified
OS Linux
CC @zatrazz,@compnerd,@eugenis,@kbeyls,@vitalybuka

Extended Description

Commit r266931 introduced a strdup interceptor, and the test only seem to work on arm-android, not on linux-gnueabihf as per mail thread:

http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160418/349234.html

An UNSUPPORTED flag was added to the test, but we suspect something is wrong with ARM unwinding.

rengolin avatar Apr 22 '16 17:04 rengolin

This is another issue related to arm unwind returning wrong/incomplete results. As for r267028 I think it should mark it as unsupported for now on arm.

zatrazz avatar Apr 22 '16 21:04 zatrazz

The buildbot is configured to build stage 1 only of ARM VFP-only version of Clang.

rengolin avatar Apr 22 '16 20:04 rengolin

Script with all RUN lines executed and output saved Attaching a script that reproduces exactly the RUN lines and save the results in *.out files. The broken build was:

http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/11612/

rengolin avatar Apr 22 '16 20:04 rengolin

r266931 added an __strdup interceptor; we've had strdup before. The commit also added an extra CHECK to the test, and that's the one that is failing. It is unclear which RUN command fails, so the problem could have always been there, and could have been exposed by the new CHECK.

eugenis avatar Apr 22 '16 19:04 eugenis