-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make test: use after free: parallel/test-cli-node-options #21383
Comments
cc @eugeneo @ofrobots - I'm reasonably sure this is caused by freeing the memory of one of the At a guess, the signalling from the close callback needs to be delayed until both close callbacks have happened (applies to both node_trace_buffer.cc and node_trace_writer.cc.) |
I think #21335 should fix it. |
#21335 was closed without landing. Did an alternative land? Should this be closed? If this is still a problem, might it be the source of this that comes up in CI on Windows 10: 00:57:06 not ok 71 parallel/test-cli-node-options
00:57:06 ---
00:57:06 duration_ms: 2.627
00:57:06 severity: fail
00:57:06 exitcode: 1
00:57:06 stack: |-
00:57:06 assert.js:753
00:57:06 throw newErr;
00:57:06 ^
00:57:06
00:57:06 AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Command failed: c:\workspace\node-test-binary-windows\Release\node.exe -e console.log("B")
00:57:06
00:57:06 at ChildProcess.exithandler (child_process.js:294:12)
00:57:06 at ChildProcess.emit (events.js:189:13)
00:57:06 at maybeClose (internal/child_process.js:977:16)
00:57:06 at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
00:57:06 ... Above is from https://ci.nodejs.org/job/node-test-binary-windows/21941/COMPILED_BY=vs2017,RUNNER=win10,RUN_SUBSET=0/console and was on host test-azure_msft-win10-x64-4. |
@nodejs/build Has this been resolved? |
¯\_(ツ)_/¯ This doesn't look like a build issue. It looks like it was an issue with trace events. |
git repo (nodejs/node) @ 64de66d
I was running
CFLAGS="-fsanitize=address -fno-sanitize=leak -g3" CXXFLAGS="$CFLAGS" LDFLAGS="-fsanitize=address -fno-sanitize=leak -g3" ASAN_OPTIONS=detect_leaks=0 make test -j 4
platform:
Linux t470 4.17.0-2-MANJARO #1 SMP PREEMPT Fri Jun 8 07:13:17 UTC 2018 x86_64 GNU/Linux
I used clang 6.0 as CC/CXX.
During
make test
, I got a use after free:The text was updated successfully, but these errors were encountered: