HHoflittlefish777 opened a new pull request, #28528:
URL: https://github.com/apache/doris/pull/28528

   ## Proposed changes
   
   ```
   =================================================================
   03:11:44   ==4386==ERROR: LeakSanitizer: detected memory leaks
   03:11:44   
   03:11:44   Indirect leak of 1048 byte(s) in 1 object(s) allocated from:
   03:11:44       #0 0x56147d7b57d8 in calloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156297d8) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc89d4b4 in rd_kafka_toppar_new0 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x547114b4) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 1000 byte(s) in 1 object(s) allocated from:
   03:11:44       #0 0x56147d7b57d8 in calloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156297d8) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc85e29e in rd_kafka_topic_new0 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x546d229e) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 528 byte(s) in 3 object(s) allocated from:
   03:11:44       #0 0x56147d7b55ee in malloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156295ee) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc86e374 in rd_kafka_q_new0 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x546e2374) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 128 byte(s) in 1 object(s) allocated from:
   03:11:44       #0 0x56147d7b55ee in malloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156295ee) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc8b93fd in rd_list_init 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x5472d3fd) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 112 byte(s) in 1 object(s) allocated from:
   03:11:44       #0 0x56147d7b57d8 in calloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156297d8) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc870abd in rd_kafka_op_new0 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x546e4abd) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 23 byte(s) in 1 object(s) allocated from:
   03:11:44       #0 0x56147d7b55ee in malloc 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156295ee) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc85e2dc in rd_kafka_topic_new0 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x546d22dc) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   Indirect leak of 20 byte(s) in 2 object(s) allocated from:
   03:11:44       #0 0x56147d79f6ad in strdup 
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x156136ad) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44       #1 0x5614bc867935  
(/root/doris/be/ut_build_ASAN/test/doris_be_test+0x546db935) (BuildId: 
f0d4dff9c34d29dd)
   03:11:44   
   03:11:44   SUMMARY: AddressSanitizer: 2859 byte(s) leaked in 10 
allocation(s).
   ```
   
   Memory leak happened when upgrade librdkafka version from 1.8.2 to 
2.0.2(https://github.com/apache/doris/pull/28210), refer to 
https://github.com/confluentinc/librdkafka/issues/4486, bug still exist in 
lastest version, so we change version to 1.9.2.
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) 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: 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

Reply via email to