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

[Bug] BE core when port conflicts #47419

Open
2 of 3 tasks
yongjinhou opened this issue Jan 24, 2025 · 1 comment
Open
2 of 3 tasks

[Bug] BE core when port conflicts #47419

yongjinhou opened this issue Jan 24, 2025 · 1 comment

Comments

@yongjinhou
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

Version

3.0.3

What's Wrong?

BE core when port conflicts

core栈:
Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f2b2cfbfa2a in pthread_sigmask () from /lib64/libpthread.so.0 [Current thread is 1 (Thread 0x7f2b2f574a40 (LWP 6613))] (gdb) bt #0 0x00007f2b2cfbfa2a in pthread_sigmask () from /lib64/libpthread.so.0 #1 0x00007f2b2edb0f8b in PosixSignals::chained_handler(int, siginfo*, void*) [clone .part.0] () from /home/users/hyj/mywork/jdk-17.0.11/lib/server/libjvm.so #2 0x00007f2b2edb1a6e in JVM_handle_linux_signal () from /home/users/hyj/mywork/jdk-17.0.11/lib/server/libjvm.so #3 <signal handler called> #4 0x00007f2b2cfbcd00 in pthread_mutex_lock () from /lib64/libpthread.so.0 #5 0x00005563ec36a6b7 in rocksdb::ThreadPoolImpl::Impl::UnSchedule(void*) () #6 0x00005563ec0d8135 in rocksdb::DBImpl::CloseHelper() () #7 0x00005563ec0e78d3 in rocksdb::DBImpl::~DBImpl() () #8 0x00005563ec0e7962 in rocksdb::DBImpl::~DBImpl() () #9 0x00005563ec3a36a0 in rocksdb::DBWithTTLImpl::~DBWithTTLImpl() () #10 0x00005563ec3a3702 in rocksdb::DBWithTTLImpl::~DBWithTTLImpl() () #11 0x00005563dfe7771c in std::default_delete<rocksdb::DBWithTTL>::operator() (this=<optimized out>, __ptr=0x206c6f6f702064d1) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:85 #12 std::unique_ptr<rocksdb::DBWithTTL, std::default_delete<rocksdb::DBWithTTL> >::~unique_ptr (this=0x7f29f94489b8) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:361 #13 doris::StreamLoadRecorder::~StreamLoadRecorder (this=0x7f29f9448990) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/runtime/stream_load/stream_load_recorder.cpp:54 #14 0x00005563dfb1b91c in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x7f29f9448980) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:168 #15 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x7f2aa38d14d0) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:702 #16 std::__shared_ptr<doris::StreamLoadRecorder, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x7f2aa38d14c8) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:1149 #17 doris::BaseStorageEngine::~BaseStorageEngine (this=0x7f2aa38d1380) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/olap/storage_engine.cpp:108 --Type <RET> for more, q to quit, c to continue without paging-- #18 0x00005563ea3ee95e in doris::CloudStorageEngine::~CloudStorageEngine (this=0x206c6f6f702064d1) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/cloud/cloud_storage_engine.cpp:86 #19 0x00005563dfcfb153 in std::default_delete<doris::BaseStorageEngine>::operator() (this=<optimized out>, __ptr=0x206c6f6f702064d1) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:85 #20 std::__uniq_ptr_impl<doris::BaseStorageEngine, std::default_delete<doris::BaseStorageEngine> >::reset (this=0x5563edc18968 <doris::ExecEnv::GetInstance()::s_exec_env+720>, __p=0x0) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:182 #21 std::unique_ptr<doris::BaseStorageEngine, std::default_delete<doris::BaseStorageEngine> >::reset (this=0x5563edc18968 <doris::ExecEnv::GetInstance()::s_exec_env+720>, __p=0x0) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:456 #22 doris::ExecEnv::destroy (this=0x5563edc18698 <doris::ExecEnv::GetInstance()::s_exec_env>) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/runtime/exec_env_init.cpp:725 #23 0x00005563dfcef8b6 in doris::ExecEnv::~ExecEnv (this=0x206c6f6f702064d1) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/runtime/exec_env.cpp:44 #24 0x00007f2b2d924ce9 in __run_exit_handlers () from /lib64/libc.so.6 #25 0x00007f2b2d924d37 in exit () from /lib64/libc.so.6 #26 0x00005563df010a3a in main::$_0::operator() (msg=..., this=<optimized out>, status=...) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/service/doris_main.cpp:546 #27 std::__invoke_impl<void, main::$_0&, doris::Status&, std::basic_string_view<char, std::char_traits<char> > > (__f=..., __args=..., __args=...) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:61 #28 std::__invoke_r<void, main::$_0&, doris::Status&, std::basic_string_view<char, std::char_traits<char> > > (__fn=..., __args=..., __args=...) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/invoke.h:111 #29 std::_Function_handler<void (doris::Status&, std::basic_string_view<char, std::char_traits<char> >), main::$_0>::_M_invoke(std::_Any_data const&, doris::Status&, std::basic_string_view<char, std::char_traits<char> >&&) (__functor=..., __args=..., __args=...) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291 #30 0x00005563df00ce34 in std::function<void (doris::Status&, std::basic_string_view<char, std::char_traits<char> >)>::operator()(doris::Status&, std::basic_string_view<char, std::char_traits<char> >) const ( this=0x7fff42f45548, __args=..., __args=...) at /home/users/palo/develop_env/ldb_toolchain_set/ldb_toolchain_v0.17/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:560 #31 main (argc=<optimized out>, argv=<optimized out>) at /home/users/hyj/mywork/Palo/baidu/third-party/palo/be/src/service/doris_main.cpp:565

What You Expected?

be正常报错并退出

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@zclllyybb
Copy link
Contributor

I investigated this problem. It seems bug in rocksdb

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

2 participants