Public bug reported:
when allocating and deallocating memory of sufficient size with
posix_memalign while keeping smaller allocations done with malloc, a
memory leak happens. This only appears when using certain ranges of
allocation sizes, and can cause the system to lock up when running out
of memory while only having a few megabytes allocated on a 16GB ram
machine.
lsb_release -rd:
Description: Ubuntu 18.04.3 LTS
Release: 18.04
apt-cache policy libc6:
libc6:
Installed: 2.27-3ubuntu1
Candidate: 2.27-3ubuntu1
Version table:
*** 2.27-3ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
see attached for a small program that will trigger the memory leak
I have not tried this on other distros, so don't know if this is ubuntu
specific
** Affects: glibc (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "small programs that causes a memory leak"
https://bugs.launchpad.net/bugs/1844785/+attachment/5289944/+files/memleak.c
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1844785
Title:
apparent memory leak using posix_memalign
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1844785/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs