[ 
https://issues.apache.org/jira/browse/THRIFT-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylwester Lachiewicz resolved THRIFT-5157.
------------------------------------------
    Fix Version/s: 0.14.0
       Resolution: Fixed

Resolving. PR #2077 merged as {{5f3527542}}. First released in 0.14.0.

_This comment was created with AI assistance._

> Fix memory leak in c_glib unit tests
> ------------------------------------
>
>                 Key: THRIFT-5157
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5157
>             Project: Thrift
>          Issue Type: Bug
>          Components: Test Suite
>    Affects Versions: 0.13.0
>            Reporter: wangyunjian
>            Assignee: wangyunjian
>            Priority: Minor
>             Fix For: 0.14.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In c_glib unit tests, some malloc'd memorys were leaking. The memorys should 
> be freed.
> Client leak:
> Direct leak of 32 byte(s) in 4 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287eeb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x7eff2924773c  (/usr/lib64/libgobject-2.0.so.0+0x3a73c)
>     #4 0x7eff292260a5 in g_object_get_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x190a5)
>     #5 0x7eff29226463 in g_object_get (/usr/lib64/libgobject-2.0.so.0+0x19463)
>     #6 0x4110d0 in main src/test_client.c:1365
>     #7 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #8 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Direct leak of 32 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287ece06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06)
>     #3 0x7eff287ed44c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c)
>     #4 0x7eff29240849 in g_type_create_instance 
> (/usr/lib64/libgobject-2.0.so.0+0x33849)
>     #5 0x7eff29222fc7  (/usr/lib64/libgobject-2.0.so.0+0x15fc7)
>     #6 0x7eff29224f4d in g_object_new_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x17f4d)
>     #7 0x7eff292252ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac)
>     #8 0x405104 in get_multiplexed_protocol src/test_client.c:92
>     #9 0x4064f6 in main src/test_client.c:294
>     #10 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #11 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Direct leak of 32 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287ece06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06)
>     #3 0x7eff287ed44c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c)
>     #4 0x7eff29240849 in g_type_create_instance 
> (/usr/lib64/libgobject-2.0.so.0+0x33849)
>     #5 0x7eff29222fc7  (/usr/lib64/libgobject-2.0.so.0+0x15fc7)
>     #6 0x7eff29224f4d in g_object_new_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x17f4d)
>     #7 0x7eff292252ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac)
>     #8 0x405104 in get_multiplexed_protocol src/test_client.c:92
>     #9 0x406342 in main src/test_client.c:286
>     #10 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #11 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Indirect leak of 512 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6f28 in __interceptor_realloc 
> (/usr/lib64/libasan.so.5+0xeff28)
>     #1 0x7eff287d528d in g_realloc (/usr/lib64/libglib-2.0.so.0+0x5328d)
>     #2 0x7eff287a0728  (/usr/lib64/libglib-2.0.so.0+0x1e728)
>     #3 0x7eff287a0ae9 in g_array_append_vals 
> (/usr/lib64/libglib-2.0.so.0+0x1eae9)
>     #4 0x7eff287a1e0c in g_byte_array_append 
> (/usr/lib64/libglib-2.0.so.0+0x1fe0c)
>     #5 0x7eff29496991 in thrift_buffered_transport_write 
> src/thrift/c_glib/transport/thrift_buffered_transport.c:220
>     #6 0x7eff2948e78a in thrift_transport_write 
> src/thrift/c_glib/transport/thrift_transport.c:71
>     #7 0x7eff29481b41 in thrift_binary_protocol_write_binary 
> src/thrift/c_glib/protocol/thrift_binary_protocol.c:387
>     #8 0x7eff2947dd08 in thrift_protocol_decorator_write_binary 
> src/thrift/c_glib/protocol/thrift_protocol_decorator.c:261
>     #9 0x7eff2947ab2b in thrift_protocol_write_binary 
> src/thrift/c_glib/protocol/thrift_protocol.c:242
>     #10 0x41f57e in t_test_thrift_test_client_send_test_binary 
> gen-c_glib/t_test_thrift_test.c:1456
>     #11 0x420627 in t_test_thrift_test_client_test_binary 
> gen-c_glib/t_test_thrift_test.c:1615
>     #12 0x417c11 in t_test_thrift_test_if_test_binary 
> gen-c_glib/t_test_thrift_test.c:57
>     #13 0x40c1ce in main src/test_client.c:636
>     #14 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #15 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Indirect leak of 256 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6f28 in __interceptor_realloc 
> (/usr/lib64/libasan.so.5+0xeff28)
>     #1 0x7eff287d528d in g_realloc (/usr/lib64/libglib-2.0.so.0+0x5328d)
>     #2 0x7eff287a0728  (/usr/lib64/libglib-2.0.so.0+0x1e728)
>     #3 0x7eff287a0ae9 in g_array_append_vals 
> (/usr/lib64/libglib-2.0.so.0+0x1eae9)
>     #4 0x7eff287a1e0c in g_byte_array_append 
> (/usr/lib64/libglib-2.0.so.0+0x1fe0c)
>     #5 0x7eff2949608c in thrift_buffered_transport_read_slow 
> src/thrift/c_glib/transport/thrift_buffered_transport.c:122
>     #6 0x7eff294962c2 in thrift_buffered_transport_read 
> src/thrift/c_glib/transport/thrift_buffered_transport.c:152
>     #7 0x7eff2948ea08 in thrift_transport_real_read_all 
> src/thrift/c_glib/transport/thrift_transport.c:122
>     #8 0x7eff2948e8f1 in thrift_transport_read_all 
> src/thrift/c_glib/transport/thrift_transport.c:92
>     #9 0x7eff294847bf in thrift_binary_protocol_read_binary 
> src/thrift/c_glib/protocol/thrift_binary_protocol.c:841
>     #10 0x7eff2947ec34 in thrift_protocol_decorator_read_binary 
> src/thrift/c_glib/protocol/thrift_protocol_decorator.c:477
>     #11 0x7eff2947b4cb in thrift_protocol_read_binary 
> src/thrift/c_glib/protocol/thrift_protocol.c:418
>     #12 0x420199 in t_test_thrift_test_client_recv_test_binary 
> gen-c_glib/t_test_thrift_test.c:1575
>     #13 0x420649 in t_test_thrift_test_client_test_binary 
> gen-c_glib/t_test_thrift_test.c:1617
>     #14 0x417c11 in t_test_thrift_test_if_test_binary 
> gen-c_glib/t_test_thrift_test.c:57
>     #15 0x40c1ce in main src/test_client.c:636
>     #16 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #17 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Indirect leak of 56 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287ece06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06)
>     #3 0x7eff287ed44c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c)
>     #4 0x7eff29240849 in g_type_create_instance 
> (/usr/lib64/libgobject-2.0.so.0+0x33849)
>     #5 0x7eff29222fc7  (/usr/lib64/libgobject-2.0.so.0+0x15fc7)
>     #6 0x7eff29224f4d in g_object_new_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x17f4d)
>     #7 0x7eff292252ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac)
>     #8 0x4062c0 in main src/test_client.c:278
>     #9 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #10 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Indirect leak of 40 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287ece06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06)
>     #3 0x7eff287a0894 in g_array_sized_new 
> (/usr/lib64/libglib-2.0.so.0+0x1e894)
>     #4 0x7eff29496d50 in thrift_buffered_transport_init 
> src/thrift/c_glib/transport/thrift_buffered_transport.c:267
>     #5 0x7eff292408e9 in g_type_create_instance 
> (/usr/lib64/libgobject-2.0.so.0+0x338e9)
>     #6 0x7eff29222fc7  (/usr/lib64/libgobject-2.0.so.0+0x15fc7)
>     #7 0x7eff29224f4d in g_object_new_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x17f4d)
>     #8 0x7eff292252ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac)
>     #9 0x4062c0 in main src/test_client.c:278
>     #10 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #11 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Indirect leak of 40 byte(s) in 1 object(s) allocated from:
>     #0 0x7eff297a6ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7eff287d51d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7eff287ece06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06)
>     #3 0x7eff287a0894 in g_array_sized_new 
> (/usr/lib64/libglib-2.0.so.0+0x1e894)
>     #4 0x7eff29496d1b in thrift_buffered_transport_init 
> src/thrift/c_glib/transport/thrift_buffered_transport.c:266
>     #5 0x7eff292408e9 in g_type_create_instance 
> (/usr/lib64/libgobject-2.0.so.0+0x338e9)
>     #6 0x7eff29222fc7  (/usr/lib64/libgobject-2.0.so.0+0x15fc7)
>     #7 0x7eff29224f4d in g_object_new_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x17f4d)
>     #8 0x7eff292252ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac)
>     #9 0x4062c0 in main src/test_client.c:278
>     #10 0x7eff27fb9872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #11 0x404e7d in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/lt-test_client+0x404e7d)
> Server Leak:
> Direct leak of 32 byte(s) in 4 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x7f8458f5873c  (/usr/lib64/libgobject-2.0.so.0+0x3a73c)
>     #4 0x7f8458f370a5 in g_object_get_valist 
> (/usr/lib64/libgobject-2.0.so.0+0x190a5)
>     #5 0x7f8458f37463 in g_object_get (/usr/lib64/libgobject-2.0.so.0+0x19463)
>     #6 0x406fc3 in thrift_test_handler_test_insanity 
> src/thrift_test_handler.c:582
>     #7 0x427a33 in t_test_thrift_test_handler_test_insanity 
> gen-c_glib/t_test_thrift_test.c:4662
>     #8 0x43149d in t_test_thrift_test_processor_process_test_insanity 
> gen-c_glib/t_test_thrift_test.c:6654
>     #9 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #10 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #11 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #12 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #13 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #14 0x409214 in main src/test_server.c:278
>     #15 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #16 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 21 byte(s) in 1 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x4078bd in thrift_test_handler_test_multi_exception 
> src/thrift_test_handler.c:724
>     #4 0x427e39 in t_test_thrift_test_handler_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:4683
>     #5 0x4331c6 in t_test_thrift_test_processor_process_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:6982
>     #6 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #7 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #8 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #9 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #10 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #11 0x409214 in main src/test_server.c:278
>     #12 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #13 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 20 byte(s) in 5 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x4063a1 in thrift_test_handler_test_list src/thrift_test_handler.c:380
>     #3 0x42752f in t_test_thrift_test_handler_test_list 
> gen-c_glib/t_test_thrift_test.c:4634
>     #4 0x42f49e in t_test_thrift_test_processor_process_test_list 
> gen-c_glib/t_test_thrift_test.c:6272
>     #5 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #6 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #7 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #8 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #9 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #10 0x409214 in main src/test_server.c:278
>     #11 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #12 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 20 byte(s) in 1 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x4077ae in thrift_test_handler_test_multi_exception 
> src/thrift_test_handler.c:710
>     #4 0x427e39 in t_test_thrift_test_handler_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:4683
>     #5 0x4331c6 in t_test_thrift_test_processor_process_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:6982
>     #6 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #7 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #8 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #9 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #10 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #11 0x409214 in main src/test_server.c:278
>     #12 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #13 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 9 byte(s) in 1 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x407453 in thrift_test_handler_test_exception 
> src/thrift_test_handler.c:655
>     #4 0x427ce0 in t_test_thrift_test_handler_test_exception 
> gen-c_glib/t_test_thrift_test.c:4676
>     #5 0x4327fd in t_test_thrift_test_processor_process_test_exception 
> gen-c_glib/t_test_thrift_test.c:6864
>     #6 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #7 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #8 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #9 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #10 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #11 0x409214 in main src/test_server.c:278
>     #12 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #13 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 8 byte(s) in 1 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x4075b6 in thrift_test_handler_test_exception 
> src/thrift_test_handler.c:678
>     #4 0x427ce0 in t_test_thrift_test_handler_test_exception 
> gen-c_glib/t_test_thrift_test.c:4676
>     #5 0x4327fd in t_test_thrift_test_processor_process_test_exception 
> gen-c_glib/t_test_thrift_test.c:6864
>     #6 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #7 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #8 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #9 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #10 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #11 0x409214 in main src/test_server.c:278
>     #12 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #13 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)
> Direct leak of 7 byte(s) in 1 object(s) allocated from:
>     #0 0x7f84594b7ae8 in __interceptor_malloc 
> (/usr/lib64/libasan.so.5+0xefae8)
>     #1 0x7f84584e61d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5)
>     #2 0x7f84584ffb32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32)
>     #3 0x4079b1 in thrift_test_handler_test_multi_exception 
> src/thrift_test_handler.c:735
>     #4 0x427e39 in t_test_thrift_test_handler_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:4683
>     #5 0x4331c6 in t_test_thrift_test_processor_process_test_multi_exception 
> gen-c_glib/t_test_thrift_test.c:6982
>     #6 0x434012 in t_test_thrift_test_processor_dispatch_call 
> gen-c_glib/t_test_thrift_test.c:7179
>     #7 0x7f84591892f0 in thrift_dispatch_processor_process 
> src/thrift/c_glib/processor/thrift_dispatch_processor.c:56
>     #8 0x7f845918a250 in thrift_multiplexed_processor_process_impl 
> src/thrift/c_glib/processor/thrift_multiplexed_processor.c:149
>     #9 0x7f84591ad7df in thrift_simple_server_serve 
> src/thrift/c_glib/server/thrift_simple_server.c:58
>     #10 0x7f84591ac668 in thrift_server_serve 
> src/thrift/c_glib/server/thrift_server.c:108
>     #11 0x409214 in main src/test_server.c:278
>     #12 0x7f8457cca872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872)
>     #13 0x4049ed in _start 
> (/mnt/hgfs/share/thrift-0.13.0/test/c_glib/.libs/test_server+0x4049ed)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to