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

src: fix crash in AfterGetAddrInfo #39735

Closed
wants to merge 2 commits into from

Commits on Aug 11, 2021

  1. src: fix crash in AfterGetAddrInfo

    Remove invalid usage of `Check()`. This addresses:
    
        FATAL ERROR: v8::FromJust Maybe value is Nothing.
         1: 0x101311bf5 node::Abort() (.cold.1) [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         2: 0x1000ade29 node::Abort() [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         3: 0x1000adf8f node::OnFatalError(char const*, char const*) [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         4: 0x1001f42d0 v8::V8::FromJustIsNothing() [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         5: 0x1000268e2 node::cares_wrap::(anonymous namespace)::AfterGetAddrInfo(uv_getaddrinfo_s*, int, addrinfo*)::$_2::operator()(bool, bool) const [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         6: 0x10002657c node::cares_wrap::(anonymous namespace)::AfterGetAddrInfo(uv_getaddrinfo_s*, int, addrinfo*) [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         7: 0x1009fb388 uv__work_done [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         8: 0x100a00453 uv__async_io [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
         9: 0x100a140cc uv__io_poll [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
        10: 0x100a009c1 uv_run [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
        11: 0x10014aca0 node::worker::Worker::Run() [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
        12: 0x10014e56f node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_3::__invoke(void*) [/Users/xxx/.nvm/versions/node/v14.17.4/bin/node]
        13: 0x7fff703d42eb _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
        14: 0x7fff703d7249 _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
        15: 0x7fff703d340d thread_start [/usr/lib/system/libsystem_pthread.dylib]
    addaleax committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    da1ee44 View commit details
    Browse the repository at this point in the history
  2. fixup: lint

    addaleax authored Aug 11, 2021
    Configuration menu
    Copy the full SHA
    698000b View commit details
    Browse the repository at this point in the history