Skip to content
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

benchmark: coerce PORT to number #23721

Closed
wants to merge 1 commit into from

Conversation

ofrobots
Copy link
Contributor

@ofrobots ofrobots commented Oct 17, 2018

Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

marceline :: ~/src/node ‹v10.x› » PORT=8080 node test/sequential/test-benchmark-net.js
/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node[152660]: ../src/tcp_wrap.cc:288:static void node::TCPWrap::Connect(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[2]->IsUint32()' failed.
 1: 0x8daaa0 node::Abort() [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 2: 0x8dab75  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 3: 0x9af98a node::TCPWrap::Connect(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 4: 0xb6114f  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 5: 0xb61ca5 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 6: 0x2ff8d73dbe1d
/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node[152680]: ../src/tcp_wrap.cc:288:static void node::TCPWrap::Connect(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[2]->IsUint32()' failed.
 1: 0x8daaa0 node::Abort() [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 2: 0x8dab75  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 3: 0x9af98a node::TCPWrap::Connect(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 4: 0xb6114f  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 5: 0xb61ca5 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 6: 0x244d20dbe1d
/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node[152700]: ../src/tcp_wrap.cc:288:static void node::TCPWrap::Connect(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `args[2]->IsUint32()' failed.
 1: 0x8daaa0 node::Abort() [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 2: 0x8dab75  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 3: 0x9af98a node::TCPWrap::Connect(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 4: 0xb6114f  [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 5: 0xb61ca5 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/google/home/ofrobots/.nvm/versions/node/v10.12.0/bin/node]
 6: 0x280a178dbe1d
assert.js:350
    throw err;

CI: https://ci.nodejs.org/job/node-test-pull-request/17981/

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.
@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. http Issues or PRs related to the http subsystem. labels Oct 17, 2018
@ofrobots ofrobots added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 18, 2018
@jasnell
Copy link
Member

jasnell commented Oct 19, 2018

@ofrobots
Copy link
Contributor Author

Another resume build: https://ci.nodejs.org/job/node-test-pull-request/17990/ is green.

@ofrobots
Copy link
Contributor Author

Landed in e5accf5.

@ofrobots ofrobots closed this Oct 19, 2018
@ofrobots ofrobots deleted the benchmarking-port-string branch October 19, 2018 22:07
ofrobots added a commit that referenced this pull request Oct 19, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
addaleax pushed a commit that referenced this pull request Oct 20, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 21, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
MylesBorins pushed a commit that referenced this pull request Oct 30, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebytere codebytere mentioned this pull request Nov 27, 2018
rvagg pushed a commit that referenced this pull request Nov 28, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 29, 2018
Without this fix net/tcp-raw-c2s.js aborts in environments where PORT
is defined. TCPWrap::Connect expects the third arg to be a UInt32.

PR-URL: #23721
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@codebytere codebytere mentioned this pull request Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. benchmark Issues and PRs related to the benchmark subsystem. http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants