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.
Patch FixLibraryStart up.patch
An Ubuntu-specific patch (FixLibraryStar tup.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.