padsp segfaults in VLC call to freopen()

Bug #1071593 reported by gregrwm
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PulseAudio
Unknown
Medium
pulseaudio (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

vlc segfaults when i launch it with:

PULSE_SERVER=localhost:4716 ALSA_PCM_NAME=pulse padsp vlc /dev/cdrom >>/tmp/vlc.$$.ort 2>&1

and if i just launch it with "vlc", it shows a window with a orange striped cone, i select media->open disc, and the window ceases to render, staying all grey.

works fine in natty.

failures are in freshly installed (and updated) quantal:

ii vlc 2.0.4-0ubuntu1 i386 multimedia player and streamer

reinstalled from scratch, same result.

Revision history for this message
In , Courmisch (courmisch) wrote :

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

affects: vlc (Ubuntu) → pulseaudio (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Changed in pulseaudio:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
gregrwm (gregrwm) wrote : Re: quantal vlc segfaults or freezes

since my quantal vlc was hosed, i went and installed linux mint 13 xfce. vlc worked great on the liveCD, and worked great after install to hard disc. then i ran apt-get update. after that, maya(precise) vlc is hosed too. not doing padsp, just plain vlc. same problem as above, vlc display freezes. the sound works if i invoke vlc with a stream on the commandline. but the vlc display interface is frozen. other program displays (eg firefox) are fine.

# uname -a
Linux phovd 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:32:50 UTC 2012 i686 i686 i386 GNU/Linux
# apt-cache policy vlc
vlc:
  Installed: 2.0.3-0ubuntu0.12.04.1
  Candidate: 2.0.3-0ubuntu0.12.04.1
  Version table:
 *** 2.0.3-0ubuntu0.12.04.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/universe i386 Packages
        100 /var/lib/dpkg/status
     2.0.1-4 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages

Revision history for this message
gregrwm (gregrwm) wrote :

i see i've really got 2 different vlc problems here, so, let's leave this bugreport to be about the vlc/padsp segfault. i've opened Bug #1074774 regarding the vlc window rendering problem.

summary: - quantal vlc segfaults or freezes
+ padsp segfaults in VLC call to freopen()
Revision history for this message
In , Felipe Sateler (fsateler) wrote :

I cannot reproduce this problem either with the vlc command or the test program.

Revision history for this message
gregrwm (gregrwm) wrote :

reproduced problem:

  $ PULSE_SERVER=localhost:4716 ALSA_PCM_NAME=pulse padsp vlc /dev/cdrom >>/tmp/vlc.$$.ort 2>&1
Segmentation fault (core dumped)

  $ vlc /dev/cdrom >>/tmp/vlc.$$.ort 2>&1
[no problem without padsp]

pulseaudio-utils 1:4.0-0ubuntu6
vlc-nox 2.0.8-1

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 12.10 (quantal) reached end-of-life on May 16, 2014.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in pulseaudio (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Closed due to no response.

Changed in pulseaudio (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
In , Gitlab-migration (gitlab-migration) wrote :

-- 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.

Changed in pulseaudio:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.