Memory Leaks in opendir/readdir

436 views
Skip to first unread message

Jim O'Connor

unread,
Sep 4, 2014, 9:26:47 PM9/4/14
to osxfus...@googlegroups.com
Running with the profiling tools while thoroughly abusing the file system I'm getting leaks of memory allocated in:

    fuse_lib_opendir
        malloc

and also from

    fuse_fs_readdir
        my read dir implementation
            fill_dir
                extend_contents
                    realloc


Has anyone else seen this problem? My code is based on the pass through file system.


Thanks,
Jim

Jim O'Connor

unread,
Sep 5, 2014, 12:59:58 PM9/5/14
to osxfus...@googlegroups.com
I assume that the primary cause of this would be not getting release_dir/closedir called, but the object I use to wrap the DIR ptr isn't leaking so I don't believe that is the case.

Sam Moffatt

unread,
Sep 5, 2014, 4:37:49 PM9/5/14
to osxfus...@googlegroups.com
You should be able to match up the entries from the fuse debug log to count the discrepancies. 

--
Sam Moffatt
Note: I'm not at my desk, responses may be delayed
--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages