2013-06-11 15:06:32 |
Forest Bond |
bug |
|
|
added bug |
2013-06-11 15:06:32 |
Forest Bond |
attachment added |
|
Patch (debdiff) addressing issue https://bugs.launchpad.net/bugs/1189939/+attachment/3700918/+files/close-auxv.diff |
|
2013-06-11 15:07:29 |
Forest Bond |
description |
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. |
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.
I believe https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684 is caused by this issue as well, but have not confirmed this.
Patch is attached. |
|
2013-06-11 16:23:14 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2013-06-11 16:23:22 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2013-06-11 18:07:02 |
Sander Smeenk |
libjpeg-turbo (Ubuntu): status |
New |
Confirmed |
|
2013-06-11 18:59:31 |
Sander Smeenk |
bug |
|
|
added subscriber Sander Smeenk |
2013-06-11 20:23:58 |
Ondřej Surý |
bug task added |
|
php5 (Ubuntu) |
|
2013-06-11 22:37:01 |
Robie Basak |
bug |
|
|
added subscriber Robie Basak |
2013-06-12 21:04:44 |
Serge Hallyn |
bug task deleted |
php5 (Ubuntu) |
|
|
2013-06-12 21:04:49 |
Serge Hallyn |
libjpeg-turbo (Ubuntu): importance |
Undecided |
High |
|
2013-06-12 21:05:00 |
Serge Hallyn |
nominated for series |
|
Ubuntu Precise |
|
2013-06-12 21:05:00 |
Serge Hallyn |
nominated for series |
|
Ubuntu Quantal |
|
2013-06-12 21:05:00 |
Serge Hallyn |
nominated for series |
|
Ubuntu Raring |
|
2013-06-12 21:05:00 |
Serge Hallyn |
nominated for series |
|
Ubuntu Saucy |
|
2013-06-19 14:59:54 |
Marc Deslauriers |
bug task added |
|
libjpeg-turbo (Ubuntu Saucy) |
|
2013-06-19 14:59:57 |
Marc Deslauriers |
bug task added |
|
libjpeg-turbo (Ubuntu Raring) |
|
2013-06-19 14:59:59 |
Marc Deslauriers |
bug task added |
|
libjpeg-turbo (Ubuntu Quantal) |
|
2013-06-19 15:00:00 |
Marc Deslauriers |
bug task added |
|
libjpeg-turbo (Ubuntu Precise) |
|
2013-06-19 15:00:07 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Saucy): status |
Confirmed |
Invalid |
|
2013-06-19 15:00:11 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Quantal): status |
New |
Invalid |
|
2013-06-19 15:00:14 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Precise): status |
New |
Confirmed |
|
2013-06-19 15:00:16 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Precise): importance |
Undecided |
High |
|
2013-06-19 15:00:18 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Raring): status |
New |
Invalid |
|
2013-06-19 15:07:04 |
Marc Deslauriers |
description |
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.
I believe https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1177684 is caused by this issue as well, but have not confirmed this.
Patch is attached. |
[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. |
|
2013-06-19 15:07:23 |
Marc Deslauriers |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2013-06-19 15:07:29 |
Marc Deslauriers |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2013-10-09 03:40:26 |
Chris Halse Rogers |
libjpeg-turbo (Ubuntu Precise): status |
Confirmed |
Fix Committed |
|
2013-10-09 03:40:35 |
Chris Halse Rogers |
bug |
|
|
added subscriber SRU Verification |
2013-10-09 03:40:45 |
Chris Halse Rogers |
tags |
patch |
patch verification-needed |
|
2013-10-09 03:57:12 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/libjpeg-turbo |
|
2014-06-06 13:23:31 |
Marc Deslauriers |
libjpeg-turbo (Ubuntu Precise): status |
Fix Committed |
In Progress |
|
2014-06-06 13:23:42 |
Marc Deslauriers |
bug |
|
|
added subscriber Marc Deslauriers |
2014-06-18 01:12:41 |
Chris Halse Rogers |
libjpeg-turbo (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2014-07-16 08:54:27 |
Christian |
tags |
patch verification-needed |
patch verification-done |
|
2014-07-16 11:47:53 |
Colin Watson |
summary |
Initialization leaks file descriptors to /prox/self/auxv |
Initialization leaks file descriptors to /proc/self/auxv |
|
2014-07-16 11:48:42 |
Colin Watson |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2014-07-16 11:54:13 |
Launchpad Janitor |
libjpeg-turbo (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|