vlc media player crashes on libvlc_release

This forum is about all development around libVLC.
pramodkalva
New Cone
New Cone
Posts: 8
Joined: 17 Aug 2016 12:11
VLC version: 2.1.6
Operating System: Linux

vlc media player crashes on libvlc_release

Postby pramodkalva » 23 Sep 2016 07:17

VLC media Player crashes on libvlc_release(inst);

Code: Select all

libvlc_media_player_stop (mp); libvlc_event_detach(event_manager, libvlc_MediaPlayerPaused,vlc_media_player_event_handle, NULL); /* Free the media_player */ libvlc_media_player_release (mp); libvlc_release (inst);
Error Log :
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffcd865700 (LWP 18829)]
__GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66
66 ../nptl/pthread_mutex_lock.c: No such file or directory.
(gdb) backtrace
#0 __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:66
#1 0x00007ffff3a332a5 in vlc_mutex_lock (p_mutex=p_mutex@entry=0x28) at posix/thread.c:283
#2 0x00007ffff6f5bc23 in libvlc_release (p_instance=0x0) at core.c:95
#3 0x00000000004566f1 in libvlc_release (inst);
#4 0x0000000000456a88 in vlc_media_player_handle_reached_end_event ()
#5 vlc_player_task () at ../../export/platforms/abs/linux/vlc_player_pl.c:353
#6 0x00007ffff6b36182 in start_thread (arg=0x7fffcd865700) at pthread_create.c:312
#7 0x00007ffff686330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

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

Re: vlc media player crashes on libvlc_release

Postby Rémi Denis-Courmont » 24 Sep 2016 02:23

Just looking at the stack trace, this is rather obviously a bug in your code, duh. Could you apply, like, bare minimum diligence before posting questions here?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

varon
New Cone
New Cone
Posts: 4
Joined: 27 Mar 2010 19:22

Re: vlc media player crashes on libvlc_release

Postby varon » 29 Jun 2019 13:40

hi. How you solved that issue?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: vlc media player crashes on libvlc_release

Postby unidan » 04 Jul 2019 15:17

Hi,

He might have stopped calling libvlc_release on a released instance:
#2 0x00007ffff6f5bc23 in libvlc_release (p_instance=0x0) at core.c:95


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests