Comment 0 for bug 1189939

Revision history for this message
Forest Bond (forest-bond) wrote : Initialization leaks file descriptors to /prox/self/auxv

Patch FixLibraryStartup.patch

An Ubuntu-specific patch (FixLibraryStartup.patch) causes /proc/self/auxv to be opened on library initialization, but the file is never closed. For long running processes that periodically re-initialize the library (Firefox's plugin-container loading the VLC plugin for me), this leads to the available file descriptors being exhausted.

This is on Precise with libjpeg-turbo8 version 1.1.90+svn733-0ubuntu4. https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684 is caused by this issue as well, but have not confirmed this.

Patch is attached.