Skip to content

test: disable core dumps before running crash test - #29478

Closed
bnoordhuis wants to merge 1 commit into
nodejs:masterfrom
bnoordhuis:fix29286
Closed

test: disable core dumps before running crash test#29478
bnoordhuis wants to merge 1 commit into
nodejs:masterfrom
bnoordhuis:fix29286

Conversation

@bnoordhuis

Copy link
Copy Markdown
Member

The test spawns a subprocess with the --abort-on-uncaught-exception
flag and expects it to terminate with a SIGABRT signal.

On systems where core dumps are enabled, that actually generates an
unnecessary core dump. Set ulimit -c 0 before spawning the subprocess.

Fixes: #29286

cc @juanarbol - this is one way of doing it. :-)

The test spawns a subprocess with the `--abort-on-uncaught-exception`
flag and expects it to terminate with a SIGABRT signal.
On systems where core dumps are enabled, that actually generates an
unnecessary core dump. Set `ulimit -c 0` before spawning the subprocess.
Fixes: nodejs#29286
@nodejs-github-botnodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. test Issues and PRs related to the tests. labels Sep 6, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@juanarbol

Copy link
Copy Markdown
Member

@bnoordhuis Very niiceeee! Thanks

@bnoordhuis

Copy link
Copy Markdown
MemberAuthor

sequential/test-cpu-prof-exit test failure is #27611.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 9, 2019
@Trott

Trott commented Sep 9, 2019

Copy link
Copy Markdown
Member

Landed in 8217990

@TrottTrott closed this Sep 9, 2019
Trott pushed a commit that referenced this pull request Sep 9, 2019
The test spawns a subprocess with the `--abort-on-uncaught-exception`
flag and expects it to terminate with a SIGABRT signal.
On systems where core dumps are enabled, that actually generates an
unnecessary core dump. Set `ulimit -c 0` before spawning the subprocess.
Fixes: #29286
PR-URL: #29478
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
targos pushed a commit that referenced this pull request Sep 20, 2019
The test spawns a subprocess with the `--abort-on-uncaught-exception`
flag and expects it to terminate with a SIGABRT signal.
On systems where core dumps are enabled, that actually generates an
unnecessary core dump. Set `ulimit -c 0` before spawning the subprocess.
Fixes: #29286
PR-URL: #29478
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
@BridgeARBridgeAR mentioned this pull request Sep 24, 2019
BridgeAR pushed a commit that referenced this pull request Sep 25, 2019
The test spawns a subprocess with the `--abort-on-uncaught-exception`
flag and expects it to terminate with a SIGABRT signal.
On systems where core dumps are enabled, that actually generates an
unnecessary core dump. Set `ulimit -c 0` before spawning the subprocess.
Fixes: #29286
PR-URL: #29478
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooksIssues and PRs related to the async hooks subsystem.author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test/async-hooks/test-callback-error.js always produces core file

6 participants

@bnoordhuis@nodejs-github-bot@juanarbol@Trott@cjihrig@devnexen