Ticket #172 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

pavucontrol segfaults if pulseaudio cannot open PCM devices

Reported by: ndim Owned by: lennart
Milestone: Component: pavucontrol
Keywords: Cc:

Description

For some reason (unknown as of now), the pulseaudio daemon cannot open the ALSA device hw:0 here. The exact reason is irrelevant for this bug, though.

If the daemon is in that state, starting pavucontrol will execute the MainWindow::updateServer() function which then executes

     defaultSourceName = info.default_source_name;
     defaultSinkName = info.default_sink_name;

but both info.default_*_name values are (char *)NULL. This will result in a segfault.

All info at http://pa.lauft.net/pavucontrol/

Attachments

pavucontrol-segfault.txt (9.9 kB) - added by ndim 4 years ago.
pavucontrol backtrace and pulseaudio daemon output
pavucontrol-segfault-fix.patch (1.3 kB) - added by ndim 4 years ago.
detect the problem and abort pavucontrol with message instead of segfaulting

Change History

Changed 4 years ago by ndim

pavucontrol backtrace and pulseaudio daemon output

Changed 4 years ago by ndim

detect the problem and abort pavucontrol with message instead of segfaulting

Changed 4 years ago by lennart

Fixed in r68

Changed 4 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • summary changed from puvucontrol segfaults if pulseaudio cannot open PCM devices to pavucontrol segfaults if pulseaudio cannot open PCM devices

r68 of pavucontrol that is. The link in trac doesn't really work.

Note: See TracTickets for help on using tickets.