From dev-return-57683-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Tue Feb 18 14:10:04 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EDC5218060E for ; Tue, 18 Feb 2020 15:10:03 +0100 (CET) Received: (qmail 50159 invoked by uid 500); 18 Feb 2020 14:10:02 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 50052 invoked by uid 99); 18 Feb 2020 14:10:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2020 14:10:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F405EE30AA for ; Tue, 18 Feb 2020 14:10:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 4129E78033A for ; Tue, 18 Feb 2020 14:10:00 +0000 (UTC) Date: Tue, 18 Feb 2020 14:10:00 +0000 (UTC) From: "wangyunjian (Jira)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (THRIFT-5102) Fix memory leak in thrift_simple_server_serve() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 wangyunjian created THRIFT-5102: ----------------------------------- Summary: Fix memory leak in thrift_simple_server_serve() Key: THRIFT-5102 URL: https://issues.apache.org/jira/browse/THRIFT-5102 Project: Thrift Issue Type: Bug Components: C glib - Library Affects Versions: 0.13.0 Reporter: wangyunjian The memory leak was triggered on calling in thrift_simple_server_serve(). The objects (t, input_transport, output_transport, input_protocol and output_protocol) are malloced and them has not been deleted. =C2=A0 Leak: Direct leak of 32 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82b01344c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c) #4 0x7fe82ba66849 in g_type_create_instance gtype.c:1848 #5 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #6 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #7 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #8 0x7fe82bcac928 in thrift_binary_protocol_factory_get_protocol src/thrif= t/c_glib/protocol/thrift_binary_protocol_factory.c:30 #9 0x7fe82bcc25a6 in thrift_simple_server_serve src/thrift/c_glib/server/t= hrift_simple_server.c:55 #10 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #11 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #12 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #13 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Direct leak of 32 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82b01344c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c) #4 0x7fe82ba66849 in g_type_create_instance gtype.c:1848 #5 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #6 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #7 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #8 0x7fe82bcac928 in thrift_binary_protocol_factory_get_protocol src/thrif= t/c_glib/protocol/thrift_binary_protocol_factory.c:30 #9 0x7fe82bcc2504 in thrift_simple_server_serve src/thrift/c_glib/server/t= hrift_simple_server.c:52 #10 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #11 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #12 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #13 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 64 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccf28 in __interceptor_realloc (/usr/lib64/libasan.so.5+0xeff2= 8) #1 0x7fe82affb28d in g_realloc (/usr/lib64/libglib-2.0.so.0+0x5328d) #2 0x7fe82afc6728 in g_array_maybe_expand garray.c:794 #3 0x7fe82afc6ae9 in g_array_append_vals (/usr/lib64/libglib-2.0.so.0+0x1e= ae9) #4 0x7fe82afc7e0c in g_byte_array_append (/usr/lib64/libglib-2.0.so.0+0x1f= e0c) #5 0x7fe82bcbc801 in thrift_buffered_transport_write src/thrift/c_glib/tra= nsport/thrift_buffered_transport.c:220 #6 0x7fe82bcb46d6 in thrift_transport_write src/thrift/c_glib/transport/th= rift_transport.c:71 #7 0x7fe82bca6ebf in thrift_binary_protocol_write_i16 src/thrift/c_glib/pr= otocol/thrift_binary_protocol.c:292 #8 0x7fe82bca081a in thrift_protocol_write_i16 src/thrift/c_glib/protocol/= thrift_protocol.c:202 #9 0x7fe82bca646a in thrift_binary_protocol_write_field_begin src/thrift/c= _glib/protocol/thrift_binary_protocol.c:133 #10 0x7fe82bca02eb in thrift_protocol_write_field_begin src/thrift/c_glib/= protocol/thrift_protocol.c:111 #11 0x40e40b in shared_struct_write gen-c_glib/shared_types.c:140 #12 0x7fe82bc9c912 in thrift_struct_write src/thrift/c_glib/thrift_struct.= c:38 #13 0x410327 in shared_service_get_struct_result_write gen-c_glib/shared_t= ypes.c:635 #14 0x7fe82bc9c912 in thrift_struct_write src/thrift/c_glib/thrift_struct.= c:38 #15 0x40ccf8 in shared_service_processor_process_get_struct gen-c_glib/sha= red_service.c:431 #16 0x40d1f4 in shared_service_processor_dispatch_call gen-c_glib/shared_s= ervice.c:498 #17 0x40a4d3 in calculator_processor_dispatch_call gen-c_glib/calculator.c= :1205 #18 0x7fe82bc9e260 in thrift_dispatch_processor_process src/thrift/c_glib/= processor/thrift_dispatch_processor.c:56 #19 0x7fe82bcc264f in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:58 #20 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #21 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #22 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #23 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82b01344c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c) #4 0x7fe82ba66849 in g_type_create_instance gtype.c:1848 #5 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #6 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #7 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #8 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #9 0x7fe82bcc2462 in thrift_simple_server_serve src/thrift/c_glib/server/t= hrift_simple_server.c:49 #10 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #11 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #12 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #13 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82b01344c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c) #4 0x7fe82ba66849 in g_type_create_instance gtype.c:1848 #5 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #6 0x7fe82ba4a714 in g_object_new_with_properties (/usr/lib64/libgobject-2= .0.so.0+0x17714) #7 0x7fe82ba4b2d0 in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182d0) #8 0x7fe82bcbab71 in thrift_server_socket_accept src/thrift/c_glib/transpo= rt/thrift_server_socket.c:154 #9 0x7fe82bcb9cc5 in thrift_server_transport_accept src/thrift/c_glib/tran= sport/thrift_server_transport.c:53 #10 0x7fe82bcc22c8 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:42 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 56 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82b01344c in g_slice_alloc0 (/usr/lib64/libglib-2.0.so.0+0x6b44c) #4 0x7fe82ba66849 in g_type_create_instance gtype.c:1848 #5 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #6 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #7 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #8 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #9 0x7fe82bcc23c0 in thrift_simple_server_serve src/thrift/c_glib/server/t= hrift_simple_server.c:46 #10 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #11 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #12 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #13 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82afc6894 in g_array_sized_new (/usr/lib64/libglib-2.0.so.0+0x1e89= 4) #4 0x7fe82bcbcb8b in thrift_buffered_transport_init src/thrift/c_glib/tran= sport/thrift_buffered_transport.c:266 #5 0x7fe82ba668e9 in g_type_create_instance gtype.c:1866 #6 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #7 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #8 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #9 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #10 0x7fe82bcc2462 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:49 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82afc6894 in g_array_sized_new (/usr/lib64/libglib-2.0.so.0+0x1e89= 4) #4 0x7fe82bcbcbc0 in thrift_buffered_transport_init src/thrift/c_glib/tran= sport/thrift_buffered_transport.c:267 #5 0x7fe82ba668e9 in g_type_create_instance gtype.c:1866 #6 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #7 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #8 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #9 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #10 0x7fe82bcc23c0 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:46 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82afc6894 in g_array_sized_new (/usr/lib64/libglib-2.0.so.0+0x1e89= 4) #4 0x7fe82bcbcb8b in thrift_buffered_transport_init src/thrift/c_glib/tran= sport/thrift_buffered_transport.c:266 #5 0x7fe82ba668e9 in g_type_create_instance gtype.c:1866 #6 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #7 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #8 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #9 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #10 0x7fe82bcc23c0 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:46 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b012e06 in g_slice_alloc (/usr/lib64/libglib-2.0.so.0+0x6ae06) #3 0x7fe82afc6894 in g_array_sized_new (/usr/lib64/libglib-2.0.so.0+0x1e89= 4) #4 0x7fe82bcbcbc0 in thrift_buffered_transport_init src/thrift/c_glib/tran= sport/thrift_buffered_transport.c:267 #5 0x7fe82ba668e9 in g_type_create_instance gtype.c:1866 #6 0x7fe82ba48fc7 in g_object_new_internal gobject.c:1799 #7 0x7fe82ba4af4d in g_object_new_valist (/usr/lib64/libgobject-2.0.so.0+0= x17f4d) #8 0x7fe82ba4b2ac in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182ac) #9 0x7fe82bcb4eaf in thrift_buffered_transport_factory_get_transport src/t= hrift/c_glib/transport/thrift_buffered_transport_factory.c:35 #10 0x7fe82bcc2462 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:49 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 16 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccf28 in __interceptor_realloc (/usr/lib64/libasan.so.5+0xeff2= 8) #1 0x7fe82affb28d in g_realloc (/usr/lib64/libglib-2.0.so.0+0x5328d) #2 0x7fe82afc6728 in g_array_maybe_expand garray.c:794 #3 0x7fe82afc6ae9 in g_array_append_vals (/usr/lib64/libglib-2.0.so.0+0x1e= ae9) #4 0x7fe82afc7e0c in g_byte_array_append (/usr/lib64/libglib-2.0.so.0+0x1f= e0c) #5 0x7fe82bcbbefc in thrift_buffered_transport_read_slow src/thrift/c_glib= /transport/thrift_buffered_transport.c:122 #6 0x7fe82bcbc132 in thrift_buffered_transport_read src/thrift/c_glib/tran= sport/thrift_buffered_transport.c:152 #7 0x7fe82bcb4954 in thrift_transport_real_read_all src/thrift/c_glib/tran= sport/thrift_transport.c:122 #8 0x7fe82bcb483d in thrift_transport_read_all src/thrift/c_glib/transport= /thrift_transport.c:92 #9 0x7fe82bca9703 in thrift_binary_protocol_read_i32 src/thrift/c_glib/pro= tocol/thrift_binary_protocol.c:713 #10 0x7fe82bca1235 in thrift_protocol_read_i32 src/thrift/c_glib/protocol/= thrift_protocol.c:386 #11 0x7fe82bca7c76 in thrift_binary_protocol_read_message_begin src/thrift= /c_glib/protocol/thrift_binary_protocol.c:410 #12 0x7fe82bca0b09 in thrift_protocol_read_message_begin src/thrift/c_glib= /protocol/thrift_protocol.c:252 #13 0x7fe82bc9e071 in thrift_dispatch_processor_process src/thrift/c_glib/= processor/thrift_dispatch_processor.c:41 #14 0x7fe82bcc264f in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:58 #15 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #16 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #17 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #18 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) Indirect leak of 10 byte(s) in 1 object(s) allocated from: #0 0x7fe82bfccae8 in __interceptor_malloc (/usr/lib64/libasan.so.5+0xefae8= ) #1 0x7fe82affb1d5 in g_malloc (/usr/lib64/libglib-2.0.so.0+0x531d5) #2 0x7fe82b014b32 in g_strdup (/usr/lib64/libglib-2.0.so.0+0x6cb32) #3 0x7fe82bcb68bc in thrift_socket_set_property src/thrift/c_glib/transpor= t/thrift_socket.c:362 #4 0x7fe82ba49378 in object_set_property gobject.c:1441 #5 0x7fe82ba49378 in g_object_new_internal gobject.c:1833 #6 0x7fe82ba4a714 in g_object_new_with_properties (/usr/lib64/libgobject-2= .0.so.0+0x17714) #7 0x7fe82ba4b2d0 in g_object_new (/usr/lib64/libgobject-2.0.so.0+0x182d0) #8 0x7fe82bcbab71 in thrift_server_socket_accept src/thrift/c_glib/transpo= rt/thrift_server_socket.c:154 #9 0x7fe82bcb9cc5 in thrift_server_transport_accept src/thrift/c_glib/tran= sport/thrift_server_transport.c:53 #10 0x7fe82bcc22c8 in thrift_simple_server_serve src/thrift/c_glib/server/= thrift_simple_server.c:42 #11 0x7fe82bcc14d8 in thrift_server_serve src/thrift/c_glib/server/thrift_= server.c:108 #12 0x404143 in main /mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/c_gli= b_server.c:506 #13 0x7fe82a7df872 in __libc_start_main (/usr/lib64/libc.so.6+0x23872) #14 0x402a3d in _start (/mnt/hgfs/develop/thrift-0.13.0/tutorial/c_glib/.l= ibs/lt-tutorial_server+0x402a3d) -- This message was sent by Atlassian Jira (v8.3.4#803005)