xinyiZzz commented on PR #12773: URL: https://github.com/apache/doris/pull/12773#issuecomment-1261134823
The root cause of the `TCMallocImplementation::GetAllocatedSize(void const*) at src/tcmalloc.cc:1700` error is not mem hook, but a memory problem The modification in this pr did not solve the problem After ASAN compiles, the error is as follows: ``` ==109270==ERROR: AddressSanitizer: use-after-poison on address 0x7fb015090ed0 at pc 0x557c03d38fdf bp 0x7fb015090e30 sp 0x7fb0150905d8 WRITE of size 16 at 0x7fb015090ed0 thread T735 #0 0x557c03d38fde in __interceptor_clock_gettime.part.0 (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0xc3d0fde) #1 0x557c0eaf9b05 in brpc::InputMessenger::OnNewMessages(brpc::Socket*) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17191b05) #2 0x557c0ec1e9dd in brpc::Socket::ProcessEvent(void*) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x172b69dd) #3 0x557c0ea6965e in bthread::TaskGroup::task_runner(long) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x1710165e) #4 0x557c0ea8f390 in bthread_make_fcontext (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17127390) Address 0x7fb015090ed0 is a wild pointer. SUMMARY: AddressSanitizer: use-after-poison (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0xc3d0fde) in __interceptor_clock_gettime.part.0 Shadow bytes around the buggy address: 0x0ff682a0a180: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a190: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a1a0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a1b0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a1c0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 =>0x0ff682a0a1d0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7[f7]f7 f7 f7 f7 f7 0x0ff682a0a1e0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a1f0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 0x0ff682a0a200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff682a0a210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff682a0a220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc Thread T735 created by T0 here: #0 0x557c03d50061 in __interceptor_pthread_create (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0xc3e8061) #1 0x557c0ea6ee3b in bthread::TaskControl::add_workers(int) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17106e3b) #2 0x557c0ea814cc in bthread_setconcurrency (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x171194cc) #3 0x557c0ebe8579 in brpc::Server::StartInternal(butil::EndPoint const&, brpc::PortRange const&, brpc::ServerOptions const*) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17280579) #4 0x557c0ebea469 in brpc::Server::Start(butil::EndPoint const&, brpc::ServerOptions const*) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17282469) #5 0x557c0ebea601 in brpc::Server::Start(int, brpc::ServerOptions const*) (/mnt/disk1/liyifan/doris/core/output_run/be/lib/doris_be+0x17282601) #6 0x557c066b42c5 in doris::BRpcService::start(int, int) /mnt/disk1/liyifan/doris/core/be/src/service/brpc_service.cpp:52 #7 0x557c03dfd325 in main /mnt/disk1/liyifan/doris/core/be/src/service/doris_main.cpp:420 #8 0x7fb1c44b5cf2 in __libc_start_main (/lib64/libc.so.6+0x3acf2) ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org