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

TiFlash crash in DM::SegmentReadTask::doFetchPages #8312

Closed
yibin87 opened this issue Nov 6, 2023 · 2 comments · Fixed by #8318
Closed

TiFlash crash in DM::SegmentReadTask::doFetchPages #8312

yibin87 opened this issue Nov 6, 2023 · 2 comments · Fixed by #8318
Labels
component/storage severity/major type/bug The issue is confirmed as a bug.

Comments

@yibin87
Copy link
Contributor

yibin87 commented Nov 6, 2023

Commit cfe64ce
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 4) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x92500000fb5"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
0x77641f1\tfaultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
\tlibs/libdaemon/src/BaseDaemon.cpp:214
0x7f0ad728ddf0\t [libc.so.6+347632]
0x7606536\tDB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
\tdbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
0x7604f41\tDB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
\tdbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
0x761a596\tDB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptrDB::DM::SegmentReadTask&) [tiflash+123839894]
\tdbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
0x770ec1f\tDB::DM::MergedTask::initOnce() [tiflash+124840991]
\tdbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
0x7715632\tDB::DM::SegmentReader::run() [tiflash+124868146]
\tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
0x7716d12\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void (DB::DM::SegmentReader::)(), DB::DM::SegmentReader> >(void*) [tiflash+124874002]
\t/usr/local/bin/../include/c++/v1/thread:291
0x7f0ad72d8802\tstart_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]

@JaySon-Huang
Copy link
Contributor

JaySon-Huang commented Nov 6, 2023

Should be introduced by #8272 @JinheLin

@JaySon-Huang
Copy link
Contributor

[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 4) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x92500000fb5"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.794 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 7) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x93900000fc9"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 2) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:399] ["Address: NULL pointer."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.822 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.823 +08:00] [ERROR] [BaseDaemon.cpp:419] ["Unknown si_code."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.823 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.823 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 9) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x690"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 11) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x690"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:370] [########################################] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:371] ["(from thread 16) Received signal Segmentation fault(11)."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:401] ["Address: 0x2690"] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:407] ["Access: read."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:416] ["Address not mapped to object."] [source=BaseDaemon] [thread_id=1032]
[2023/11/06 04:59:22.824 +08:00] [ERROR] [BaseDaemon.cpp:563] ["
       0x77641f1    faultSignalHandler(int, siginfo_t*, void*) [tiflash+125190641]
                    libs/libdaemon/src/BaseDaemon.cpp:214
  0x7f0ad728ddf0    <unknown symbol> [libc.so.6+347632]
       0x7606536    DB::DM::SegmentReadTask::doFetchPages(disaggregated::FetchDisaggPagesRequest const&) [tiflash+123757878]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:514
       0x7604f41    DB::DM::SegmentReadTask::fetchPages() [tiflash+123752257]
                    dbms/src/Storages/DeltaMerge/SegmentReadTask.cpp:347
       0x761a596    DB::DM::SegmentReadTaskPool::buildInputStream(std::__1::shared_ptr<DB::DM::SegmentReadTask>&) [tiflash+123839894]
                    dbms/src/Storages/DeltaMerge/SegmentReadTaskPool.cpp:88
       0x770ec1f    DB::DM::MergedTask::initOnce() [tiflash+124840991]
                    dbms/src/Storages/DeltaMerge/ReadThread/MergedTask.cpp:50
       0x7715632    DB::DM::SegmentReader::run() [tiflash+124868146]
                    dbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:149
       0x7716d12    void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+124874002]
                    /usr/local/bin/../include/c++/v1/thread:291
  0x7f0ad72d8802    start_thread [libc.so.6+653314]"] [source=BaseDaemon] [thread_id=1032]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/storage severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
2 participants