kaijchen opened a new pull request, #33682:
URL: https://github.com/apache/doris/pull/33682
## Proposed changes
Avoid using raw pointer to RuntimeState in DeltaWriterV2.
Fix the following coredump:
```
*** Aborted at 1713017220 (unix time) try "date -d @1713017220" if you are
using GNU date ***
*** Current BE git commitID: babec88aa90 ***
*** SIGSEGV address not mapped to object (@0x6bbb13) received by PID 2977685
(TID 2978173 OR 0x7fa3fea63700) from PID 7060243; stack trace: ***
0# doris::signal::(anonymous namespace)::FailureSignalHandler(int,
siginfo_t*, void*) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/common/signal_handler.h:421
1# 0x00007FA4B30000A7 in
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
2# JVM_handle_linux_signal in
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
3# 0x00007FA4B2FF902C in
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
4# 0x00007FA4B85B5090 in /lib/x86_64-linux-gnu/libc.so.6
5# memcpy at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/glibc-compatibility/memcpy/memcpy_x86_64.cpp:219
6# doris::RuntimeState::cancel_reason[abi:cxx11]() const at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/runtime/runtime_state.cpp:375
7# doris::DeltaWriterV2::write(doris::vectorized::Block const*,
std::vector<unsigned int, std::allocator<unsigned int> > const&, bool) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/olap/delta_writer_v2.cpp:164
8#
doris::vectorized::VTabletWriterV2::_write_memtable(std::shared_ptr<doris::vectorized::Block>,
long, doris::vectorized::Rows const&,
std::vector<std::shared_ptr<doris::LoadStreamStub>,
std::allocator<std::shared_ptr<doris::LoadStreamStub> > > const&) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/vec/sink/writer/vtablet_writer_v2.cpp:461
9# doris::vectorized::VTabletWriterV2::write(doris::vectorized::Block&) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/vec/sink/writer/vtablet_writer_v2.cpp:413
10#
_ZN5doris10vectorized15AsyncWriterSinkINS0_15VTabletWriterV2EXadsoKcL_ZNS0_19VOLAP_TABLE_SINK_V2EEEEE4sendEPNS_12RuntimeStateEPNS0_5BlockEb
at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/vec/sink/async_writer_sink.h:89
11# doris::PlanFragmentExecutor::open_vectorized_internal() at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/runtime/plan_fragment_executor.cpp:341
12# doris::PlanFragmentExecutor::open() at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/runtime/plan_fragment_executor.cpp:273
13# doris::PlanFragmentExecutor::execute() at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/runtime/plan_fragment_executor.cpp:404
14#
doris::FragmentMgr::_exec_actual(std::shared_ptr<doris::PlanFragmentExecutor>,
std::function<void (doris::RuntimeState*, doris::Status*)> const&) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/runtime/fragment_mgr.cpp:455
15# std::_Function_handler<void (),
doris::FragmentMgr::exec_plan_fragment(doris::TExecPlanFragmentParams const&,
std::function<void (doris::RuntimeState*, doris::Status*)>
const&)::$_0>::_M_invoke(std::_Any_data const&) at
/var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/std_function.h:291
16# doris::ThreadPool::dispatch_thread() in
/mnt/hdd01/STRESS_ENV/be/lib/doris_be
17# doris::Thread::supervise_thread(void*) at
/home/zcp/repo_center/doris_branch-2.1/doris/be/src/util/thread.cpp:499
18# start_thread at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:478
19# __clone at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
```
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]