morningman opened a new issue #6656: URL: https://github.com/apache/incubator-doris/issues/6656
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) 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? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
