Bug 762959 (GLUSTER-1227)

Summary: memory leak in rpcsvc_conn_alloc
Product: [Community] GlusterFS Reporter: Anush Shetty <anush>
Component: transportAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: mainlineCC: amarts, gluster-bugs, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Valgrind log none

Description Anush Shetty 2010-07-27 06:43:33 UTC
Attaching the entire valgrind report

==6187== 1,126,072 (232 direct, 1,125,840 indirect) bytes in 2 blocks are definitely lost in loss record 158 of 158
==6187==    at 0x4C24477: calloc (vg_replace_malloc.c:418)
==6187==    by 0x4E6876E: __gf_calloc (mem-pool.c:135)
==6187==    by 0x508EF13: rpcsvc_conn_alloc (rpcsvc.c:486)
==6187==    by 0x508F436: rpcsvc_conn_init (rpcsvc.c:658)
==6187==    by 0x508FFCC: rpcsvc_accept (rpcsvc.c:983)
==6187==    by 0x5090981: rpcsvc_notify (rpcsvc.c:1226)
==6187==    by 0x5095DEB: rpc_transport_notify (rpc-transport.c:1228)
==6187==    by 0x7AC8477: socket_server_event_handler (socket.c:1556)
==6187==    by 0x4E67DE8: event_dispatch_epoll_handler (event.c:807)
==6187==    by 0x4E67FEA: event_dispatch_epoll (event.c:871)
==6187==    by 0x4E6830C: event_dispatch (event.c:979)
==6187==    by 0x405814: main (glusterfsd.c:1267)

Comment 1 Anand Avati 2010-08-06 07:37:04 UTC
PATCH: http://patches.gluster.com/patch/4003 in master (fix memory-leak in case of disconnections in RPC server)