[ovs-dev] OVSDB replication related memory leak

William Tu u9012063 at gmail.com
Mon Jul 25 15:26:30 UTC 2016


Hi,

Valgrind reports definitely memory leak in the testcase
    1826: ovsdb-server.at:1081 insert monitored table, update excluded table
Can someone take at look? Thank you~

==52969== 144 (48 direct, 96 indirect) bytes in 1 blocks are
definitely lost in loss record 306 of 373
==52969==    at 0x4C2AA98: calloc (vg_replace_malloc.c:711)
==52969==    by 0x434C52: xcalloc (util.c:95)
==52969==    by 0x420EA9: jsonrpc_msg_from_json (jsonrpc.c:686)
==52969==    by 0x420FDF: jsonrpc_parse_received_message (jsonrpc.c:471)
==52969==    by 0x420FDF: jsonrpc_recv.part.8 (jsonrpc.c:337)
==52969==    by 0x42124B: jsonrpc_recv (jsonrpc.c:296)
==52969==    by 0x42124B: jsonrpc_recv_block (jsonrpc.c:401)
==52969==    by 0x41388E: get_initial_db_state (replication.c:363)
==52969==    by 0x41388E: send_monitor_requests (replication.c:350)
==52969==    by 0x41388E: replication_run (replication.c:107)
==52969==    by 0x407E0B: main_loop (ovsdb-server.c:165)
==52969==    by 0x407E0B: main (ovsdb-server.c:361)
==52969==
==52969== 620 (600 direct, 20 indirect) bytes in 1 blocks are
definitely lost in loss record 333 of 373
==52969==    at 0x4C2AA98: calloc (vg_replace_malloc.c:711)
==52969==    by 0x434C52: xcalloc (util.c:95)
==52969==    by 0x420737: jsonrpc_open (jsonrpc.c:86)
==52969==    by 0x412BA4: open_jsonrpc (replication.c:214)
==52969==    by 0x413461: replication_run (replication.c:101)
==52969==    by 0x407E0B: main_loop (ovsdb-server.c:165)
==52969==    by 0x407E0B: main (ovsdb-server.c:361)
==52969==
==52969== 620 (600 direct, 20 indirect) bytes in 1 blocks are
definitely lost in loss record 334 of 373
==52969==    at 0x4C2AA98: calloc (vg_replace_malloc.c:711)
==52969==    by 0x434C52: xcalloc (util.c:95)
==52969==    by 0x420737: jsonrpc_open (jsonrpc.c:86)
==52969==    by 0x412BA4: open_jsonrpc (replication.c:214)
==52969==    by 0x413990: check_for_notifications (replication.c:394)
==52969==    by 0x413990: replication_run (replication.c:110)
==52969==    by 0x407E0B: main_loop (ovsdb-server.c:165)
==52969==    by 0x407E0B: main (ovsdb-server.c:361)

Regards,
William



More information about the dev mailing list