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

(v6.x backport) child_process: fix deoptimizing use of arguments #13752

Closed
wants to merge 23 commits into from
Closed

(v6.x backport) child_process: fix deoptimizing use of arguments #13752

wants to merge 23 commits into from

Commits on Jun 17, 2017

  1. deps: add example of comparing OpenSSL changes

    When upgrading OpenSSL, Step 6 in upgrading guide explains the steps
    that need to be taken if asm files need updating. This might not
    always be the case and something that needs to be checked from
    release to release.
    
    This commit adds an example of using github to manually compare two tags
    to see if any changes were made to asm files.
    
    PR-URL: #13234
    Backport-PR-URL: #13695
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Richard Lau <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    6c81b75 View commit details
    Browse the repository at this point in the history
  2. deps: upgrade openssl sources to 1.0.2l

    This replaces all sources of openssl-1.0.2l.tar.gz into
    deps/openssl/openssl
    
    Fixes: #13161
    PR-URL: #13233
    Backport-PR-URL: #13695
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    d319015 View commit details
    Browse the repository at this point in the history
  3. deps: copy all openssl header files to include dir

    All symlink files in deps/openssl/openssl/include/openssl/ are removed
    and replaced with real header files to avoid issues on Windows. Two
    files of opensslconf.h in crypto and include dir are replaced to refer
    config/opensslconf.h.
    
    Fixes: #13161
    PR-URL: #13233
    Backport-PR-URL: #13695
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    b0b52bc View commit details
    Browse the repository at this point in the history
  4. deps: fix openssl assembly error on ia32 win32

    `x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
    perhaps others) are requiring .686 .
    
    Fixes: #589
    PR-URL: #1389
    Backport-PR-URL: #13695
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    indutny authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    22d74c4 View commit details
    Browse the repository at this point in the history
  5. deps: fix asm build error of openssl in x86_win32

    See
    https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html
    
    iojs needs to stop using masm and move to nasm or yasm on Win32.
    
    Fixes: #589
    PR-URL: #1389
    Backport-PR-URL: #13695
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    32bbf7a View commit details
    Browse the repository at this point in the history
  6. openssl: fix keypress requirement in apps on win32

    Reapply b910613 .
    
    Fixes: #589
    PR-URL: #1389
    Backport-PR-URL: #13695
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    b7a80dd View commit details
    Browse the repository at this point in the history
  7. deps: add -no_rand_screen to openssl s_client

    In openssl s_client on Windows, RAND_screen() is invoked to initialize
    random state but it takes several seconds in each connection.
    This added -no_rand_screen to openssl s_client on Windows to skip
    RAND_screen() and gets a better performance in the unit test of
    test-tls-server-verify.
    Do not enable this except to use in the unit test.
    
    Fixes: #1461
    PR-URL: #1836
    Backport-PR-URL: #13695
    Reviewed-By: Ben Noordhuis <[email protected]>
    Shigeki Ohtsu authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    f90919f View commit details
    Browse the repository at this point in the history
  8. deps: update openssl config files

    Regenerate config files for supported platforms with Makefile.
    
    Fixes: #13161
    PR-URL: #13233
    Backport-PR-URL: #13695
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    02a04cf View commit details
    Browse the repository at this point in the history
  9. deps: update openssl asm and asm_obsolete files

    Regenerate asm files with Makefile and CC=gcc and ASM=nasm where gcc
    version was 5.4.0 and nasm version was 2.11.08.
    
    Also asm files in asm_obsolete dir to support old compiler and
    assembler are regenerated without CC and ASM envs.
    
    Fixes: #13161
    PR-URL: #13233
    Backport-PR-URL: #13695
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    99cadcb View commit details
    Browse the repository at this point in the history
  10. doc: add missing make command to UPGRADING.md

    Added the missing make command in steps 6.3 when building
    asm_obsolete.
    
    Also updated the commit message to include the version nasm in
    addition to the gcc version.
    
    Fixes: #13161
    PR-URL: #13233
    Backport-PR-URL: #13695
    Reviewed-By: Shigeki Ohtsu <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    danbev authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    e510003 View commit details
    Browse the repository at this point in the history
  11. doc: consistent case for primitive types

    PR-URL: #11167
    Backport-PR-URL: #13054
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    silverwind authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    6602954 View commit details
    Browse the repository at this point in the history
  12. doc: linkify type[] syntax, support lowercase for primitives

    PR-URL: #11167
    Backport-PR-URL: #13054
    Reviewed-By: Timothy Gu <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Joyee Cheung <[email protected]>
    silverwind authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    40babf1 View commit details
    Browse the repository at this point in the history
  13. tools: fix lint issue in doctool

    PR-URL: #11658
    Backport-PR-URL: #13054
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    silverwind authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    e70cb6a View commit details
    Browse the repository at this point in the history
  14. doc/tools: fix more type inconsistencies

    - fix a number of uppercase types
    - lowercase 'integer'
    - consistent formatting in crypto
    
    PR-URL: #11697
    Backport-PR-URL: #13054
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Timothy Gu <[email protected]>
    silverwind authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    311ef42 View commit details
    Browse the repository at this point in the history
  15. test: enable setuid/setgid test

    Refactor test for situations where it was expected to fail.
    Move from disabled directory to parallel.
    
    PR-URL: #12403
    Backport-PR-URL: #13060
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Trott authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    ae20511 View commit details
    Browse the repository at this point in the history
  16. test: introduce common.crashOnUnhandledRejection

    Ref: #12442
    PR-URL: #12489
    Backport-PR-URL: #13103
    Reviewed-By: Matthew Loring <[email protected]>
    Reviewed-By: Julien Gilli <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    addaleax authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    4848862 View commit details
    Browse the repository at this point in the history
  17. test,doc: document crashOnUnhandledRejection()

    Add documentation for `common.crashOnUnhandledRejection()`.
    
    Ref: https://github.com/nodejs/node/pull/12489/files/a9c2078a60bc3012dc6156df19772697a56a2517#r113737423
    PR-URL: #12699
    Backport-PR-URL: #13103
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Santiago Gimeno <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Yuta Hiroto <[email protected]>
    Reviewed-By: Michael Dawson <[email protected]>
    Reviewed-By: Gibson Fahnestock <[email protected]>
    addaleax authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    dfcefd6 View commit details
    Browse the repository at this point in the history
  18. zlib: fix node crashing on invalid options

    This is a partial backport of semver-patch bits of
    9e4660b.
    
    This commit fixes the Node process crashing when constructors of classes
    of the zlib module are given invalid options.
    
    * Throw an Error when the zlib library rejects the value of windowBits,
      instead of crashing with an assertion.
    
    * Treat windowBits and memLevel options consistently with other ones and
      don't crash when non-numeric values are given.
    
    PR-URL: #13098
    Backport-PR-URL: #13201
    Fixes: #13082
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    Reviewed-By: Sakthipriyan Vairamani <[email protected]>
    aqrln authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    321c90f View commit details
    Browse the repository at this point in the history
  19. crypto: clear err stack after ECDH::BufferToPoint

    Functions that call `ECDH::BufferToPoint` were not clearing the
    error stack on failure, so an invalid key could leave leftover
    error state and cause subsequent (unrelated) signing operations
    to fail.
    
    PR-URL: #13275
    Backport-PR-URL: #13397
    Reviewed-By: Fedor Indutny <[email protected]>
    Reviewed-By: Ben Noordhuis <[email protected]>
    Reviewed-By: Sam Roberts <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    rfk authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    04fb72f View commit details
    Browse the repository at this point in the history
  20. v8: fix build errors with g++ 7

    This is a local patch because upstream fixed it differently by moving
    large chunks of code out of objects.h.  We cannot easily back-port
    those changes due to their size and invasiveness.
    
    Fixes: #10388
    PR-URL: #12392
    Backport-PR-URL: #13574
    Reviewed-By: Anna Henningsen <[email protected]>
    Reviewed-By: Benjamin Gruenbaum <[email protected]>
    Reviewed-By: Daniel Bevenius <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Zuzana Svetlikova authored and gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    11c7e01 View commit details
    Browse the repository at this point in the history
  21. test: move test-debug-brk to sequential

    The test uses common.PORT, and has already been deleted on master.
    
    PR-URL: #13580
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Alexey Orlenko <[email protected]>
    Reviewed-By: Refael Ackermann <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    099694f View commit details
    Browse the repository at this point in the history
  22. test: move common.PORT debug tests to sequential

    They tend to hang if they happen to run in parallel with another test
    that uses common.PORT.
    
    PR-URL: #13592
    Reviewed-By: Rich Trott <[email protected]>
    Reviewed-By: Luigi Pinca <[email protected]>
    gibfahn committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    7a22964 View commit details
    Browse the repository at this point in the history
  23. child_process: fix deoptimizing use of arguments

    Remove use of arguments in
    normalizeExecArgs() and normalizeSpawnArguments().
    
    Refs: #10323
    PR-URL: #11535
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Michaël Zasso <[email protected]>
    vsemozhetbyt committed Jun 17, 2017
    Configuration menu
    Copy the full SHA
    a1b8996 View commit details
    Browse the repository at this point in the history