[pulseaudio-tickets] [Bug 48779] New: padsp makes VLC media player (actually freopen()) crash

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 16 11:13:02 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=48779

             Bug #: 48779
           Summary: padsp makes VLC media player (actually freopen())
                    crash
    Classification: Unclassified
           Product: PulseAudio
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tools
        AssignedTo: pulseaudio-bugs at lists.freedesktop.org
        ReportedBy: courmisch at gmail.com
         QAContact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net


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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the pulseaudio-bugs mailing list