[Bug 1189939] Re: Initialization leaks file descriptors to /prox/self/auxv
Marc Deslauriers
marc.deslauriers at canonical.com
Wed Jun 19 15:07:04 UTC 2013
** Description changed:
- Patch FixLibraryStartup.patch
+ [impact]
+ In precise only, 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.
- 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 also causes
+ https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684.
- This is on Precise with libjpeg-turbo8 version 1.1.90+svn733-0ubuntu4.
+ [test case]
+ Fresh and clean Ubuntu Precise 12.04.2 install
- I believe https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684 is
- caused by this issue as well, but have not confirmed this.
+ # apt-get install apache2-mpm-itk libapache2-mod-php5 php5-gd
- Patch is attached.
+ Restart Apache to ensure gd.so is loaded
+
+ # for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
+ # apache2ctl graceful
+ # for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
+ # apache2ctl graceful
+ # for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
+ .. etc
+
+ [regression potential]
+ This affects patch designed for ARM. Although all it does it properly close the file descriptor, I have not specifically tested it on ARM.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1189939
Title:
Initialization leaks file descriptors to /prox/self/auxv
Status in “libjpeg-turbo” package in Ubuntu:
Invalid
Status in “libjpeg-turbo” source package in Precise:
Confirmed
Status in “libjpeg-turbo” source package in Quantal:
Invalid
Status in “libjpeg-turbo” source package in Raring:
Invalid
Status in “libjpeg-turbo” source package in Saucy:
Invalid
Bug description:
[impact]
In precise only, 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 also causes
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684.
[test case]
Fresh and clean Ubuntu Precise 12.04.2 install
# apt-get install apache2-mpm-itk libapache2-mod-php5 php5-gd
Restart Apache to ensure gd.so is loaded
# for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
# apache2ctl graceful
# for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
# apache2ctl graceful
# for pid in `pidof apache2`; do find /proc/$pid/fd -ls; done | awk '/auxv/ {print $11" "$12" "$13}'
.. etc
[regression potential]
This affects patch designed for ARM. Although all it does it properly close the file descriptor, I have not specifically tested it on ARM.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libjpeg-turbo/+bug/1189939/+subscriptions
More information about the Ubuntu-sponsors
mailing list