Open zmofei opened 5 years ago
Good find @zmofei - thanks for putting together a PR!
Thanks @zmofei 👍 This adjustment will keep things passing and will avoid builds erroring on what we don't have control over. For the record I think what is happening is that:
10
and not an explicit version, our jobs upgraded immediately. And v10.14.2
has a new memory leak inside the node::Start
function.There may be value in reporting the leaks to the node.js project, but so far I've not felt like this is actionable because its not clear from the message exactly where they are coming from:
=================================================================
==5708==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0x2b7243330af2 in operator new(unsigned long) /home/travis/build/mapbox/mason/mason_packages/.build/llvm-6.0.1/build/../projects/compiler-rt/lib/asan/asan_new_delete.cc:92:3
#1 0x8e4100 in node::Start(int, char**) (/home/travis/.nvm/versions/node/v10.14.2/bin/node+0x8e4100)
#2 0x2b7244ea6f44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21f44)
But perhaps @flippmoke or @ericfischer might have ideas on where this leak is coming from in node? The diff between v10.14.1 and v10.14.2 is pretty large so its not immediately obvious to me where to look:
git diff v10.14.1 v10.14.2 src/ > d.diff
https://gist.github.com/springmeyer/a925043ab79dee2b98054111bbd3e0b6
This morning, I found that all the c++ build job related to "TOOLSET=asan" returns an error, even we try to rebuild the old jobs which already passed:
Debug w/ @springmeyer, we thought this is a new Travis error due to a new leak in node.js.
To fix this issue we need to add
echo "leak:node::Start" >> ${SUPPRESSION_FILE}
inscripts/sanitize.sh
OR see this PR https://github.com/mapbox/node-cpp-skel/pull/156/files.
This will fix the issue.
cc w/ @mapbox/maps-api @flippmoke @mapsam @millzpaugh