Bug 763985 (GLUSTER-2253)
Summary: | Memory leak in glusterfs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Daniel <d.pereira> | ||||
Component: | cli | Assignee: | Raghavendra Bhat <rabhat> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | low | ||||||
Version: | mainline | CC: | gluster-bugs, rabhat, rahulcs | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | --- | |||||
Regression: | --- | Mount Type: | fuse | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Daniel
2010-12-28 09:03:36 UTC
It is fixed now. In stripe_readv the frame being copied was not getting destroyed if an error happens while allocating the local structure for the copied frame. And in STRIPE_STACK_UNWIND and STRIPE_STACK_DESTROY the local structure of the frame was not being freed. This is the output of the valgrind after making the appropriate changes. LEAK SUMMARY: ==16628== definitely lost: 240 bytes in 4 blocks ==16628== indirectly lost: 152 bytes in 1 blocks ==16628== possibly lost: 25,233,638 bytes in 188 blocks ==16628== still reachable: 1,105,635 bytes in 121 blocks ==16628== suppressed: 0 bytes in 0 blocks ==16628== Reachable blocks (those to which a pointer was found) are not shown. ==16628== To see them, rerun with: --leak-check=full --show-reachable=yes ==16628== ==16628== For counts of detected and suppressed errors, rerun with: -v ==16628== Use --track-origins=yes to see where uninitialised values come from ==16628== ERROR SUMMARY: 110 errors from 106 contexts (suppressed: 32 from 5) (END) PATCH: http://patches.gluster.com/patch/5947 in master (stripe: fix memory leak) |