Skip to content

Function Callback SIGPIPE Error #316

Closed

Description

@Victordmdb

Hi, I'm getting a problem which is hard to reproduce, here is the gdb output:

#0  0x00007ffffe4812b7 in __libc_write (fd=21, buf=0x2adf320, nbytes=37)
    at ../sysdeps/unix/sysv/linux/write.c:27

#1  0x000000000099b200 in uv__write (stream=stream@entry=0x3267f28) at ../deps/uv/src/unix/stream.c:849

#2  0x000000000099cee8 in uv_write2 (cb=0x99ace0 <uv_try_write_cb>, send_handle=0x0, nbufs=1, bufs=0x7ffffffe8a40, stream=0x3267f28, req=0x7ffffffe88c0) at ../deps/uv/src/unix/stream.c:1482

#3  0x000000000099cee8 in uv_write (cb=0x99ace0 <uv_try_write_cb>, nbufs=1, bufs=0x7ffffffe8a40, handle=0x3267f28, req=0x7ffffffe88c0) at ../deps/uv/src/unix/stream.c:1507

#4  0x000000000099cee8 in uv_try_write (stream=0x3267f28, bufs=0x7ffffffe8a40, nbufs=1)
    at ../deps/uv/src/unix/stream.c:1532

#5  0x0000000000916cb9 in node::LibuvStreamWrap::DoTryWrite(uv_buf_t**, unsigned long*) ()

#6  0x0000000000910c0d in node::StreamBase::WriteBuffer(v8::FunctionCallbackInfo<v8::Value> const&) ()

#7  0x0000000000919341 in void node::StreamBase::JSMethod<node::LibuvStreamWrap, &node::StreamBase::WriteBuffer>(v8::FunctionCallbackInfo<v8::Value> const&) ()

#8  0x0000000000a903fa in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo*) ()

#9  0x0000000000aedc26 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) ()

#10 0x0000000000aee419 in v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) ()

Would anyone have an idea why this happens? I'm unfamiliar with SIGPIPE in this context, and it's not leading to (directly at least) to any specific code on my side.

Activity

  1. changed the title [-]SIGPIPE Issue[/-] [+]Function Callback SIGPIPE Error[/+] on Aug 17, 2018
  2. gabrielschulhof commented on Aug 17, 2018

    @gabrielschulhof
    Contributor

    @Victordmdb perhaps https://github.com/nodejs/node/issues would be a better place to report this, since it does not appear to be related to node-addon-api. If you agree, please close this issue and open one there instead.

  3. Victordmdb commented on Aug 17, 2018

    @Victordmdb
    Author

    You might be right, I really am not sure how to debug the issue. I posted here first since I have implemented a node-addon-api interface which uses function callbacks, so i assumed it would be related to this.

    I'm also making use of https://github.com/mika-fischer/napi-thread-safe-callback, which could be a cause for the issue.

  4. DaAitch commented on Aug 20, 2018

    @DaAitch
    Contributor

    @Victordmdb as far as I can remember from a nodejs http2 debug session which really crashed because of a bug, there also were SIGPIPEs, but they did not cause it, but a SIGSEGV. Try to just go ahead with gdb and I think it will not crash.

  5. github-actions commented on Dec 18, 2020

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  6. mhdawson commented on Dec 18, 2020

    @mhdawson
    Member

    I'm going to close this as the discussion seems to have run it's course and there is no response since the last suggestion. Please let us know if you think that is not the right thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions