Skip to content

segfault in vlc_window_Delete after ctrl+q

A ctrl+q while playing a video leads to a segfault. rm -rf ~/.{cache,config}/vlc && vlc ~/some.mp4 I think it is a bug introduced between 20240809.4c595eeb and 20240810.b2358bbf

(gdb) bt
#0  std::default_delete<VideoSurfaceProvider>::operator()(VideoSurfaceProvider*) const (__ptr=0x4545454545454545, this=<optimized out>)
    at /usr/include/c++/13/bits/unique_ptr.h:93
#1  std::__uniq_ptr_impl<VideoSurfaceProvider, std::default_delete<VideoSurfaceProvider> >::reset(VideoSurfaceProvider*)
    (__p=0x0, this=0x7fde9012d090) at /usr/include/c++/13/bits/unique_ptr.h:211
#2  std::unique_ptr<VideoSurfaceProvider, std::default_delete<VideoSurfaceProvider> >::reset(VideoSurfaceProvider*)
    (__p=0x0, this=0x7fde9012d090) at /usr/include/c++/13/bits/unique_ptr.h:509
#3  vlc::CompositorVideo::windowDestroy() (this=0x7fde9012d040) at maininterface/compositor.cpp:218
#4  windowDestroyCb(vlc_window*) (p_wnd=<optimized out>) at maininterface/compositor.cpp:143
#5  0x00007fdec08684ae in vlc_window_Delete (window=0x7fde3416e840) at video_output/window.c:175
#6  0x00007fdec08682c2 in vout_display_window_Delete (window=<optimized out>) at video_output/video_window.c:437
#7  0x00007fdec085a6ab in vout_Release (vout=0x7fde34094860) at video_output/video_output.c:2064
#8  vout_Release (vout=0x7fde34094860) at video_output/video_output.c:2044
#9  0x00007fdec0841124 in DestroyVout (p_resource=0x56349f3de4b0) at input/resource.c:159
#10 input_resource_Release (p_resource=0x56349f3de4b0) at input/resource.c:334
#11 0x00007fdec0836dd1 in vlc_player_Delete (player=0x56349f3dd280) at player/player.c:1896
#12 0x00007fdec08041c9 in vlc_playlist_PlayerDestroy (playlist=playlist@entry=0x56349f3dd1d0) at playlist/player.c:169
#13 0x00007fdec08043e9 in vlc_playlist_Delete (playlist=0x56349f3dd1d0) at playlist/playlist.c:74
#14 0x00007fdec07e08be in libvlc_InternalCleanup (p_libvlc=0x56349f3505c0) at libvlc.c:383
#15 0x00007fdec08feae4 in libvlc_release (p_instance=p_instance@entry=0x56349f350560) at core.c:102
#16 0x000056349d9a26be in main (argc=<optimized out>, argv=0x7ffe0e3169a8) at vlc.c:275

System is Leap 15.6.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information