[Bugs] [Bug 1659439] New: Memory leak: dict_t leak in rda_opendir
bugzilla at redhat.com
bugzilla at redhat.com
Fri Dec 14 11:32:58 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1659439
Bug ID: 1659439
Summary: Memory leak: dict_t leak in rda_opendir
Product: Red Hat Gluster Storage
Version: 3.4
Status: NEW
Component: readdir-ahead
Severity: high
Priority: high
Assignee: pgurusid at redhat.com
Reporter: nbalacha at redhat.com
QA Contact: rhinduja at redhat.com
CC: bugs at gluster.org, rgowdapp at redhat.com,
rhs-bugs at redhat.com, sankarshan at redhat.com
Depends On: 1659432
Target Milestone: ---
Classification: Red Hat
+++ This bug was initially created as a clone of Bug #1659432 +++
Description of problem:
rda_opendir creates and leaks a dict_t xdata_from_req
Version-Release number of selected component (if applicable):
How reproducible:
Consistently.
Steps to Reproduce:
1. Create a 1 brick volume and fuse mount it. Enable readdir-ahead.
2. Create a directory mydir in the volume root.
3. Compile the following test code and run it on the volume in a loop, while
checking RES in top output for the fuse mount process.
<code>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <dirent.h>
int main (int argc, char *argv[])
{
DIR *fd = NULL;
char *name = NULL;
if (argc != 2) {
printf ("Usage: %s <dirpath>\n", argv[0]);
exit (1);
}
name = argv[1];
fd = opendir(name);
if (!fd) {
exit (1);
}
closedir (fd);
}
</code>
Actual results:
Memory use rises constantly.
Expected results:
Memory usage should stay constant after the initial run.
Additional info:
--- Additional comment from Nithya Balachandran on 2018-12-14 11:20:16 UTC ---
https://review.gluster.org/#/c/glusterfs/+/21859/
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1659432
[Bug 1659432] Memory leak: dict_t leak in rda_opendir
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Bugs
mailing list