Several memory/file descriptor leaks in gstreamer 1.6.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gst-plugins-base1.0 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Iain Lane | ||
gstreamer1.0 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Iain Lane |
Bug Description
Ubuntu 15.10 includes gstreamer 1.6.0. There were several important leak fixes in 1.6.1, some of which also meant holding references to file descriptors around, which can result in crashes once the fd limit is hit.
Upstream bugs:
https:/
https:/
https:/
All of these were fixed in 1.6.1
What motivated me to investigate this bug is a 'random' crash in pidgin after several hours of leaking file descriptors, which looks exactly like bug #1479715 but happened even after applying that patch. Turns out that it wasn't pidgin holding the references that kept those file descriptors open, but it was gstreamer itself.
I'd fill the whole SRU template here but i'm afraid there are too many patches that need to be applied to fix these bugs properly (some of them in gst-plugins-base, some of them in libgstreamer, and I don't know exactly which ones are needed) and anything less than updating to 1.6.1 or 1.6.2 would be wrong, IMO. The whole 1.6.x branch is bugfixes only.
[Test Case]
* Download https:/
* Optionally change the "a.ogg" uri to a valid path to a sound in the local system (maybe "file:/
* Build with:
gcc -Wall $(pkg-config --cflags gstreamer-1.0 gtk+-3.0 glib-2.0) playbin-leak.c $(pkg-config --libs gstreamer-1.0 gtk+-3.0 glib-2.0)
* Run as:
GOBJECT_
* Let it run, see warnings after some iterations, watch it leak.
Alternatively, how i've been testing this so far, which roughly imitates the pidgin crash (but probably only applies to a subset of the leaks)
* Get a ubuntu 15.10 VM without sound card (so that pulseaudio fails to play sounds)
* Do this:
cd /usr/share/
valgrind --track-fds=yes gst-play-1.0 --audiosink=
* File descriptors open at exit should be 4, not 10 (it leaks two for each time it plays)
description: | updated |
Changed in gst-plugins-base1.0 (Ubuntu): | |
importance: | Undecided → Medium |
Changed in gstreamer1.0 (Ubuntu): | |
importance: | Undecided → Medium |
Changed in gst-plugins-base1.0 (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in gstreamer1.0 (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.