Skip to content

Commit

Permalink
LD_PRELOAD libasan for node
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-h committed Apr 3, 2017
1 parent c4122ad commit eaaf5e7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,21 @@ script:
- ./unit_tests/util-tests
- ./unit_tests/server-tests
- ./unit_tests/partition-tests
- |
if [ -n "${ENABLE_SANITIZER}" ]; then
# Node module compiled with sanitizer needs to preload libasan,
# otherwise sanitizer-internal symbols will not be found.
# This is due to how node loads our node binding shared object.
export LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libasan.so.2'
fi
- |
if [ -n "${ENABLE_NODE_BINDINGS}" ]; then
echo ">>> symbol-tag-node-osrm"
nm -D ../lib/binding/node-osrm.node | c++filt
echo ">>> symbol-tag-libosrm"
nm libosrm.a | c++filt
npm run nodejs-tests
fi
- |
if [ -n "${ENABLE_SANITIZER}" ]; then
unset LD_PRELOAD
fi
- popd
- yarn test

Expand Down

0 comments on commit eaaf5e7

Please sign in to comment.