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

segmentation fault #514

Open
ronag opened this issue Oct 8, 2024 · 0 comments
Open

segmentation fault #514

ronag opened this issue Oct 8, 2024 · 0 comments

Comments

@ronag
Copy link

ronag commented Oct 8, 2024

#0  absl::container_internal::TransferRelocatable<8ul> (
    dst=0x7ffff77f9f20 <absl::container_internal::raw_hash_set<absl::container_internal::FlatHashSetPolicy<re2::DFA::State*>, re2::DFA::StateHash, re2::DFA::StateEqual, std::allocator<re2::DFA::State*> >::GetPolicyFunctions()::value>, src=0x0) at ../vendor/abseil-cpp/absl/container/internal/raw_hash_set.h:2317
#1  0x000000000278d369 in absl::container_internal::ClearBackingArray(absl::container_internal::CommonFields&, absl::container_internal::PolicyFunctions const&, bool, bool) ()
#2  0x00007ffff7723e34 in absl::container_internal::raw_hash_set<absl::container_internal::FlatHashSetPolicy<re2::DFA::State*>, re2::DFA::StateHash, re2::DFA::StateEqual, std::allocator<re2::DFA::State*> >::clear (
    this=<optimized out>) at ../vendor/abseil-cpp/absl/container/internal/raw_hash_set.h:2934
#3  0x00007ffff7723ef2 in re2::DFA::~DFA (this=0x7ff2b81e2270, __in_chrg=<optimized out>) at ../vendor/re2/re2/dfa.cc:473
#4  0x00007ffff772431d in re2::Prog::DeleteDFA (this=<optimized out>, dfa=0x7ff2b81e2270) at ../vendor/re2/re2/dfa.cc:1832
#5  0x00007ffff774458b in re2::Prog::~Prog (this=0x7ff2b81787c0, __in_chrg=<optimized out>) at ../vendor/re2/re2/prog.cc:136
#6  0x00007ffff7757970 in std::default_delete<re2::Prog>::operator() (__ptr=0x7ff2b81787c0, this=<optimized out>) at /usr/include/c++/13/bits/unique_ptr.h:93
#7  std::unique_ptr<re2::Prog, std::default_delete<re2::Prog> >::~unique_ptr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/13/bits/unique_ptr.h:404
#8  re2::RE2::Set::~Set (this=0x7ff2b87239a0, __in_chrg=<optimized out>) at ../vendor/re2/re2/set.cc:36
#9  0x00007ffff771babd in Finalize<re2::RE2::Set> (env=<optimized out>, data=<optimized out>, hint=0x7ff2b87239a0) at ../binding.cc:15
#10 Finalize<re2::RE2::Set> (env=<optimized out>, data=<optimized out>, hint=0x7ff2b87239a0) at ../binding.cc:13
#11 0x0000000000f2ac3a in node_napi_env__::CallFinalizer(void (*)(napi_env__*, void*, void*), void*, void*) ()
#12 0x0000000000f03781 in v8impl::Reference::Finalize() ()
#13 0x0000000000f2b399 in node_napi_env__::DrainFinalizerQueue() ()
#14 0x0000000000edc568 in node::Environment::RunAndClearNativeImmediates(bool) ()
#15 0x0000000000edc8d0 in node::Environment::CheckImmediate(uv_check_s*) ()
#16 0x0000000001d2f719 in uv__run_check (loop=loop@entry=0x7ff31f3ff998) at ../deps/uv/src/unix/loop-watcher.c:67
#17 0x0000000001d27c5c in uv_run (loop=0x7ff31f3ff998, mode=UV_RUN_DEFAULT) at ../deps/uv/src/unix/core.c:462
#18 0x0000000000e706a6 in node::SpinEventLoopInternal(node::Environment*) ()
#19 0x00000000010a6959 in node::worker::Worker::Run() ()
#20 0x00000000010a6e29 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::{lambda(void*)#1}::_FUN(void*) ()
#21 0x00007ffff789ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#22 0x00007ffff7929c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

We have encountered this segmentation fault in https://github.com/nxtedition/node-re2/blob/main/binding.cc.

We first thought it was a double delete issue but we have confirmed that's not the case. What else could cause this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant