Page 1 of 1

Interface "ncurses" crashes when deleting playlist while VLC is playing a song

Posted: 01 Sep 2016 13:45
by Rexunil
VLC with interface "ncurses" is playing a song in a native Linux console. Output is a HTTP stream. That works fine.

Code: Select all

#!/bin/sh HOST=192.168.2.106 PORT=8005 CNTL=8488 PASS=******** PLAYLIST=/opt/media/music/playlist vlc -I ncurses --loop --random --playlist-autostart --no-video --extraintf=http --http-host=$HOST --http-port=$CNTL --http-password=$PASS --sout "http/mp3:$HOST:$PORT" --sout-keep $PLAYLIST
But when deleting the playlist per remote HTTP-interface VLC will crash immediately (SIGSEGV):

Code: Select all

vlc[10930]: segfault at 0 ip 00007fe3f166284f sp 00007fe3f09a1d50 error 4 in libncurses_plugin.so[7fe3f165c000+b000]
When stopping VLC first and then deleting the playlist nothing happens.

I could reproduce this bug with different Linux computers: Debian (jessie) and Ubuntu (trusty 14.04.3 LTS) with VLC 2.2.4 and VLC 2.1.6

The bug doesn't occure with interface 'dummy' or Qt (X11) and remote http interface.

Re: Interface "ncurses" crashes when deleting playlist while VLC is playing a song

Posted: 01 Sep 2016 14:43
by Rémi Denis-Courmont
Get a stack trace with debug symbols and gdb, and file a bug.

Re: Interface "ncurses" crashes when deleting playlist while VLC is playing a song

Posted: 01 Sep 2016 17:13
by Rexunil
Get a stack trace with debug symbols and gdb, and file a bug.
Do you want to pull my legs?

I don't have VLC with debug symbols and there is no such version available in the repositories. And running gdb without symbols is more or less senseless...

But a shot look in the souce code shows the problem. In ncurses.c:

Code: Select all

static void Eject(intf_thread_t *intf) { char *device, *name; playlist_t * p_playlist = pl_Get(intf); /* If there's a stream playing, we aren't allowed to eject ! */ if (intf->p_sys->p_input) return;

This check seems to be missing or circumvent when remote control is active.

Re: Interface "ncurses" crashes when deleting playlist while VLC is playing a song

Posted: 01 Sep 2016 18:00
by Rémi Denis-Courmont
If you've installed VLC from Debian/Ubuntu repositories, then you can install the debug symbols from there too.

Ultimately, it's up to you whether you want to write a proper bug report. But if you don't, you can't expect the problem resolved any time soon.