Bug 762959 (GLUSTER-1227) - memory leak in rpcsvc_conn_alloc
Summary: memory leak in rpcsvc_conn_alloc
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-1227
Product: GlusterFS
Classification: Community
Component: transport
Version: mainline
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-27 06:43 UTC by Anush Shetty
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
Valgrind log (133.13 KB, text/x-log)
2010-07-27 03:43 UTC, Anush Shetty
no flags Details

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)


Note You need to log in before you can comment on or make changes to this bug.