node/test/pummel
Chengzhong Wu 448d5d1a19
worker: fix heap snapshot crash on exit
Worker.parent_port_ can be released before the exit event of Worker. The
parent_port_ is not owned by `node::worker::Worker`, thus the reference
to it is not always valid, and accessing it at exit crashes the process.

As the Worker.parent_port_ is only used in the memory info tracking, it
can be safely removed.

PR-URL: https://github.com/nodejs/node/pull/43123
Fixes: https://github.com/nodejs/node/issues/43122
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2022-05-19 22:00:07 +08:00
..
pummel.status test: exclude ibm i tests until we resolve 2022-02-01 18:19:25 -05:00
test-child-process-spawn-loop.js test: use process.env.PYTHON to spawn python 2020-08-14 17:03:04 +08:00
test-crypto-dh-hash-modp18.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-crypto-dh-hash.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-crypto-dh-keys.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-crypto-timing-safe-equal-benchmarks.js test: fix flaky test-crypto-timing-safe-dqual-benchmarks 2021-04-30 11:19:37 -07:00
test-dh-regr.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-fs-largefile.js test: address deprecation warning 2021-04-30 13:31:36 -07:00
test-fs-readfile-tostring-fail.js test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test-fs-watch-file-slow.js test: clean tmpdir on process exit 2019-08-10 19:22:11 -07:00
test-fs-watch-file.js benchmark,doc,lib,test: prepare for padding lint rule 2019-11-30 06:28:29 -08:00
test-fs-watch-non-recursive.js test: make fs watch test more stable 2022-01-29 19:49:26 +00:00
test-fs-watch-system-limit.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-hash-seed.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-heapdump-dns.js dns: refactor cares_wrap internals 2021-04-16 18:46:08 -07:00
test-heapdump-env.js src: do not track BaseObjects via cleanup hooks 2020-06-11 23:39:49 +02:00
test-heapdump-fs-promise.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapdump-http2.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapdump-inspector.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapdump-tls.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapdump-worker.js worker: fix heap snapshot crash on exit 2022-05-19 22:00:07 +08:00
test-heapdump-zlib.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapsnapshot-near-heap-limit-big.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-heapsnapshot-near-heap-limit-bounded.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-heapsnapshot-near-heap-limit.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-http-many-keep-alive-connections.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-http-upload-timeout.js dns: default to verbatim=true in dns.lookup() 2021-09-12 21:05:35 +02:00
test-https-large-response.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-https-no-reader.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-keep-alive.js test: add check for wrk to test-keep-alive 2019-01-17 16:13:04 -08:00
test-net-bytes-per-incoming-chunk-overhead.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-net-many-clients.js test: refactor pummel/test-net-many-clients 2019-01-16 06:49:18 -08:00
test-net-pause.js test: remove common.PORT from test-net-pause 2020-02-17 18:07:37 -08:00
test-net-pingpong-delay.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-net-pingpong.js dns: default to verbatim=true in dns.lookup() 2021-09-12 21:05:35 +02:00
test-net-throttle.js test: fix test-net-throttle 2020-05-11 11:41:59 -07:00
test-net-timeout.js test: fix flaky test-net-timeout 2021-04-06 09:24:24 -07:00
test-net-timeout2.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-net-write-callbacks.js test: remove common.PORT from test-net-write-callbacks.js 2020-02-19 18:57:51 -08:00
test-next-tick-infinite-calls.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-dep.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-parent-commonjs.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-parent-module.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-parent-no-package-json.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-worker-commonjs.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-worker-module.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-policy-integrity-worker-no-package-json.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-process-cpuUsage.js
test-process-hrtime.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
test-regress-GH-892.js test: use `assert.match` instead of `regexp.test` 2021-08-31 18:50:16 +02:00
test-stream-pipe-multi.js benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
test-timers.js test: improve assertions in pummel/test-timers 2020-09-20 07:44:40 -07:00
test-tls-server-large-request.js test: remove common.PORT from test-tls-server-large-request 2020-02-17 18:07:36 -08:00
test-tls-throttle.js test: remove common.PORT from assorted pummel tests 2020-02-23 02:45:50 -08:00
test-vm-memleak.js test: enable no-empty ESLint rule 2022-02-05 12:58:32 +00:00
test-vm-race.js test: remove unused catch bindings 2018-11-06 10:59:18 -05:00
test-watch-file.js test: fix flaky test-watch-file 2020-07-21 17:29:54 -07:00
test-webcrypto-derivebits-pbkdf2.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-worker-take-heapsnapshot.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
testcfg.py