[Bug 203097] [libgeom] multiple geom_stats_open/close() leaks memory

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 14 11:58:32 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203097

            Bug ID: 203097
           Summary: [libgeom] multiple geom_stats_open/close() leaks
                    memory
           Product: Base System
           Version: 10.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: erik at datahack.se

This program leaks non-RES memory, probably due to MAP_SHARED in the the mmap()
reallocation.

<code>
#include <libgeom.h>

int main() {
    while (1) {
        geom_stats_open();
        geom_stats_close();
    }
    return 0;
}
</code>

# clang bug.c -lgeom && ./a.out

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list