Page 1 of 1

vlc media player crashes on libvlc_release

Posted: 23 Sep 2016 07:17
by pramodkalva
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

Re: vlc media player crashes on libvlc_release

Posted: 24 Sep 2016 02:23
by RĂ©mi Denis-Courmont
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?

Re: vlc media player crashes on libvlc_release

Posted: 29 Jun 2019 13:40
by varon
hi. How you solved that issue?

Re: vlc media player crashes on libvlc_release

Posted: 04 Jul 2019 15:17
by unidan
Hi,

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