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

*nix specific usage questions
Rexunil
New Cone
New Cone
Posts: 8
Joined: 08 Sep 2015 12:23

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

Postby Rexunil » 01 Sep 2016 13:45

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 01 Sep 2016 14:43

Get a stack trace with debug symbols and gdb, and file a bug.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Rexunil
New Cone
New Cone
Posts: 8
Joined: 08 Sep 2015 12:23

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

Postby Rexunil » 01 Sep 2016 17:13

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 01 Sep 2016 18:00

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests