Skip to content

Crash on deleting ThreadSafeFunction #531

Closed

Description

@legendecas
static Value Test(const CallbackInfo& info) {
  Object resource = info[0].As<Object>();
  Function cb = info[1].As<Function>();
  ThreadSafeFunction tsfn = ThreadSafeFunction::New(info.Env(), cb, resource, "Test", 1, 1);
  tsfn.Release();
  return info.Env().Undefined();
}

The case would have a great chance to crash with SIGABRT

node(67424,0x1078545c0) malloc: tiny_free_list_remove_ptr: Internal invariant broken (prev ptr of next): ptr=0x104842970, next_prev=0x0
node(67424,0x1078545c0) malloc: *** set a breakpoint in malloc_error_break to debug

Activity

  1. added a commit that references this issue on Sep 4, 2019
  2. NickNaso commented on Sep 5, 2019

    @NickNaso
    Member

    I'm closing the issue because the PR that fix it has been merged.

  3. added a commit that references this issue on Aug 24, 2022
  4. added a commit that references this issue on Aug 26, 2022
  5. added a commit that references this issue on Sep 19, 2022
  6. added a commit that references this issue on Aug 11, 2023
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions