Skip to content

[Bug] BE crash when loading data #6656

@morningman

Description

@morningman

Search before asking

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

Version

trunk 61c9d11

What's Wrong?

coredump:

(gdb) bt
#0  0x0000000001566883 in doris::RowBatch::resize_and_allocate_tuple_buffer (this=<optimized out>, state=0x800, tuple_buffer_size=0x5657cc528, buffer=0x54ce04000)
    at /path/be/src/runtime/row_batch.cpp:519
#1  0x000000000156752d in doris::RowBatch::serialize (this=<optimized out>, output_batch=0x55e03db30) at /path/be/src/runtime/row_batch.cpp:497
#2  0x0000000001a59d81 in doris::OlapTableSchemaParam::to_protobuf (this=0x55e03db30) at /path/be/src/exec/tablet_info.h:68
#3  doris::stream_load::NodeChannel::open (this=0xe60b00 <__pthread_key_create@plt>) at /path/be/src/exec/tablet_sink.cpp:105
#4  0x000000000164bbc3 in doris::ThreadPool::ThreadPool (this=0x67e05dbd0, builder=...) at /path/be/src/common/status.h:134
#5  0x0000000001645c34 in std::string::operator= (__str=..., this=0x533a33a40) at /home/opt/compiler/gcc-10-r5/include/c++/10.1.0/bits/basic_string.h:3749
#6  doris::ThreadMgr::ThreadDescriptor::operator= (this=0x533a33a40) at /path/be/src/util/thread.cpp:88
#7  doris::ThreadMgr::add_thread (this=0x6017700, pthread_id=<error reading variable>, name=..., category=..., tid=<optimized out>)

What You Expected?

Not crash

How to Reproduce?

It seems that this error will occur if a load job ends early due to other errors (such as -235).

Anything Else?

Maybe related to #6397.
Because I found that the thread token is not shutdown before tablet sink is closed.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/fixCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions