Bug 762728 (GLUSTER-996) - leak in locks
Summary: leak in locks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-996
Product: GlusterFS
Classification: Community
Component: locks
Version: 3.0.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: kaushik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-11 09:38 UTC by Raghavendra Bhat
Modified: 2015-12-01 16:45 UTC (History)
4 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)

Description Raghavendra Bhat 2010-06-11 09:38:42 UTC
There is a memory-leak in locks in glusterfs-3.0.5rc6(observed in 3.0.5rc5 too). 

valgrind report:
1,498 (1,344 direct, 154 indirect) bytes in 14 blocks are definitely lost in loss record 78 of 89
==4027==    at 0x4C2414B: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==4027==    by 0x663C35D: new_entrylk_lock (entrylk.c:43)
==4027==    by 0x663CCFA: __lock_name (entrylk.c:330)
==4027==    by 0x663DDF6: pl_common_entrylk (entrylk.c:660)
==4027==    by 0x663E07A: pl_entrylk (entrylk.c:720)
==4027==    by 0x4E4A16A: default_entrylk (defaults.c:1142)
==4027==    by 0x6A6DEF9: server_entrylk_resume (server-protocol.c:4538)
==4027==    by 0x6A75B44: server_resolve_done (server-resolve.c:594)
==4027==    by 0x6A75C35: server_resolve_all (server-resolve.c:629)
==4027==    by 0x6A75AE4: server_resolve (server-resolve.c:576)
==4027==    by 0x6A75C10: server_resolve_all (server-resolve.c:625)
==4027==    by 0x6A75935: server_resolve_inode (server-resolve.c:509)

Comment 1 Pranith Kumar K 2010-08-05 04:29:12 UTC
this bug is fixed as part of 960 in nfs-beta-rc10. This needs to be backported to 3.0.x

Comment 2 Vijay Bellur 2010-09-15 09:09:21 UTC
PATCH: http://patches.gluster.com/patch/4564 in master (Leak in Locks)


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