Bug 48779 - padsp makes VLC media player (actually freopen()) crash
Summary: padsp makes VLC media player (actually freopen()) crash
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 11:13 UTC by Remi Denis-Courmont
Modified: 2018-07-30 09:37 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Remi Denis-Courmont 2012-04-16 11:13:02 UTC
Start VLC under padsp on Linux:
# padsp vlc -Idummy vlc://quit
VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547)
Segmentation fault

The same process runs and exits fine without padsp. In fact, even this trivial and obviously correct piece of C code crashes with padsp while calling glibc freopen():
----8<--------8<--------8<--------8<--------8<--------8<----
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
        FILE *stream;

        stream = fopen("/dev/null", "w+t");
        if (stream == NULL)
                abort();
        stream = freopen("/dev/null", "w+t", stream);
        if (stream == NULL)
                abort();
        fclose(stream);
        return 0;
}
---->8-------->8-------->8-------->8-------->8-------->8----

I suspect the root cause is similar to this (Firefox bug): https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/810214/comments/8
Comment 1 Felipe Sateler 2014-04-25 22:11:29 UTC
I cannot reproduce this problem either with the vlc command or the test program.
Comment 2 GitLab Migration User 2018-07-30 09:37:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/60.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.