-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leaks in unifyfsd #660
Comments
Will #659 solve this one as UnifyFS will no longer be directly calling |
I think so. I'll update the list above. |
Ok, that initial analysis wasn't correct. The |
Everything has been merged. Closing the issue. |
System information
Describe the problem you're observing
I've been running unifyfsd with valgrind, and it (valgrind) is reporting a number of memory leaks. Most of the errors seem to be pretty benign: allocate some space at program startup and forget to free it before the program ends. It looks like some, though, do have the potential to leak memory continuously during a run.
Describe how to reproduce the problem
I've been using
valgrind --leak-check=full --show-leak-kinds=all
, so it's reporting pretty much everything.Include any warning or errors or relevant debugging data
Below is a partial list of the specific errors I've confirmed so far:
unifyfs_config_fini()
to free up configuration variablesNever callingABT_finalize()
to free up the Argobots dataABT_mutex_free()
to free up theapp_configs_abt_sync
mutexNot freeing theelems
pointer when cleaning uparraylist_t
structsserver_info_t
array allocated but never freedclient_reqs
array list it (probably) allocated is not freedclient_callbacks
array listunifyfs_inode_tree_clear()
deletes inode structs without first deleting the allocated members of those structsreqs_sync
mutex when the thread exitsfattr.filename
increate_mountpoint_dir()
is allocated usingstrdup()
, but never freed.free()
. See the comment below for details.The text was updated successfully, but these errors were encountered: