Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1013309: vlc-cache-gen segfaults while dpkg is processing triggers for libvlc-bin

62 views
Skip to first unread message

Job Bautista

unread,
Jun 21, 2022, 7:00:03 AM6/21/22
to
Package: libvlc-bin
Version: 3.0.17.4-3
Severity: important

While I was upgrading my system, I noticed the following warning after dpkg finishes:

Segmentation fault
WARNING: Regenerating VLC plugin cache failed.
Please run '/usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins' manually.

I ran the command as told, and it still resulted in segfault.

I've hooked up a gdb, and here's what gdb tells me:

(gdb) set args /usr/lib/x86_64-linux-gnu/vlc/plugins
(gdb) run
Starting program: /usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
__GI___pthread_rwlock_wrlock (rwlock=0x0) at pthread_rwlock_wrlock.c:27
27 pthread_rwlock_wrlock.c: No such file or directory.


-- System Information:
Debian Release: bookworm/sid
APT prefers experimental
APT policy: (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_PH.UTF-8, LC_CTYPE=en_PH.UTF-8 (charmap=UTF-8), LANGUAGE=en_PH:en
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled

Versions of packages libvlc-bin depends on:
ii libc6 2.33-7
ii libvlc5 3.0.17.4-3

libvlc-bin recommends no packages.

libvlc-bin suggests no packages.

Versions of packages libvlc5 depends on:
ii libc6 2.33-7
ii libvlccore9 3.0.17.4-3

libvlc5 recommends no packages.

Versions of packages vlc depends on:
ii vlc-bin 3.0.17.4-3
ii vlc-plugin-base 3.0.17.4-3
ii vlc-plugin-qt 3.0.17.4-3
ii vlc-plugin-video-output 3.0.17.4-3

Versions of packages vlc recommends:
ii vlc-l10n 3.0.17.4-3
pn vlc-plugin-access-extra <none>
ii vlc-plugin-notify 3.0.17.4-3
ii vlc-plugin-samba 3.0.17.4-3
ii vlc-plugin-skins2 3.0.17.4-3
ii vlc-plugin-video-splitter 3.0.17.4-3
ii vlc-plugin-visualization 3.0.17.4-3

Versions of packages vlc suggests:
ii vlc-plugin-fluidsynth 3.0.17.4-3
pn vlc-plugin-jack <none>
ii vlc-plugin-pipewire 3-2
pn vlc-plugin-svg <none>

Versions of packages vlc-bin depends on:
ii libc6 2.33-7
ii libvlc5 3.0.17.4-3

Versions of packages vlc-plugin-base depends on:
ii liba52-0.7.4 0.7.4-20
ii libarchive13 3.6.0-1
ii libaribb24-0 1.0.3-2
ii libasound2 1.2.6.1-2+b1
ii libass9 1:0.16.0-1
ii libavahi-client3 0.8-6
ii libavahi-common3 0.8-6
ii libavc1394-0 0.5.4-5
ii libavcodec58 7:4.4.2-1+b3
ii libavformat58 7:4.4.2-1+b3
ii libavutil56 7:4.4.2-1+b3
ii libbluray2 1:1.3.1-2
ii libc6 2.33-7
ii libcairo2 1.16.0-5
ii libcddb2 1.3.2-7
ii libchromaprint1 1.5.1-2
ii libdav1d6 1.0.0-2
ii libdbus-1-3 1.14.0-1devuan1
ii libdc1394-25 2.2.6-4
ii libdca0 0.0.7-2
ii libdvbpsi10 1.3.3-1
ii libdvdnav4 6.1.1-1
ii libdvdread8 6.1.3-1
ii libebml5 1.4.2-2
ii libelogind-compat [libsystemd0] 246.10-5
ii libeudev1 [libudev1] 3.2.11-1
ii libfaad2 2.10.0-2
ii libflac8 1.3.4-2
ii libfontconfig1 2.13.1-4.4
ii libfreetype6 2.12.1+dfsg-2
ii libfribidi0 1.0.8-2.1
ii libgcc-s1 12.1.0-2
ii libgcrypt20 1.10.1-2
ii libglib2.0-0 2.72.2-2
ii libgnutls30 3.7.4-2
ii libgpg-error0 1.45-2
ii libharfbuzz0b 2.7.4-1+b1
ii libixml10 1:1.8.4-2
ii libjpeg62-turbo 1:2.1.2-1
ii libkate1 0.4.1-11
ii liblirc-client0 0.10.1-7
ii liblua5.2-0 5.2.4-2
ii libmad0 0.15.1b-10
ii libmatroska7 1.6.3-2
ii libmpcdec6 2:0.1~r495-2
ii libmpeg2-4 0.5.1-9
ii libmpg123-0 1.29.3-1
ii libmtp9 1.1.19-1
ii libncursesw6 6.3+20220423-2
ii libnfs13 4.0.0-1
ii libogg0 1.3.5-1
ii libopenmpt-modplug1 0.8.9.0-openmpt1-2
ii libopus0 1.3.1-2
ii libpng16-16 1.6.37-5
ii libpostproc55 7:4.4.2-1+b3
ii libprotobuf-lite23 3.12.4-1+b3
ii libpulse0 15.0+dfsg1-4+b1
ii libraw1394-11 2.1.2-2
ii libresid-builder0c2a 2.1.1-15+b1
ii librsvg2-2 2.54.4+dfsg-1
ii libsamplerate0 0.2.2-1
ii libsdl-image1.2 1.2.12-13+b1
ii libsdl1.2debian 1.2.15+dfsg2-6
ii libsecret-1-0 0.20.5-2
ii libshine3 3.1.1-2
ii libshout3 2.4.6-1+b1
ii libsidplay2 2.1.1-15+b1
ii libsndio7.0 1.8.1-1.1
ii libsoxr0 0.1.3-4
ii libspatialaudio0 0.3.0+git20180730+dfsg1-2+b1
ii libspeex1 1.2.0-1
ii libspeexdsp1 1.2.0-1
ii libssh2-1 1.10.0-3+b1
ii libstdc++6 12.1.0-2
ii libswscale5 7:4.4.2-1+b3
ii libtag1v5 1.12-1
ii libtheora0 1.1.1+dfsg.1-16
ii libtinfo6 6.3+20220423-2
ii libtwolame0 0.4.0-2
ii libupnp13 1:1.8.4-2
ii libva-drm2 2.14.0-1
ii libva2 2.14.0-1
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii libvorbis0a 1.3.7-1
ii libvorbisenc2 1.3.7-1
ii libx264-164 2:0.164.3095+gitbaee400-2
ii libx265-199 3.5-2
ii libxcb-keysyms1 0.4.0-1+b2
ii libxcb1 1.14-3
ii libxml2 2.9.14+dfsg-1
ii libzvbi0 0.2.35-19
ii vlc-data 3.0.17.4-3
ii zlib1g 1:1.2.11.dfsg-4

Versions of packages vlc-plugin-base recommends:
ii xdg-utils 1.1.3-4.1

Versions of packages vlc-plugin-base suggests:
pn libdvdcss2 <none>

Versions of packages vlc-plugin-fluidsynth depends on:
ii fluid-soundfont-gm 3.1-5.3
ii libc6 2.33-7
ii libfluidsynth3 2.2.7-1.1
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii timgm6mb-soundfont 1.3-5

Versions of packages vlc-plugin-notify depends on:
ii libc6 2.33-7
ii libgdk-pixbuf-2.0-0 2.42.8+dfsg-1
ii libglib2.0-0 2.72.2-2
ii libgtk-3-0 3.24.34-1
ii libnotify4 0.7.12-1
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3

Versions of packages vlc-plugin-qt depends on:
ii libc6 2.33-7
ii libgcc-s1 12.1.0-2
ii libqt5core5a 5.15.2+dfsg-16+b2
ii libqt5gui5 5.15.2+dfsg-16+b2
ii libqt5svg5 5.15.2-4
ii libqt5widgets5 5.15.2+dfsg-16+b2
ii libqt5x11extras5 5.15.2-2
ii libstdc++6 12.1.0-2
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii libwayland-client0 1.20.0-1
ii libx11-6 2:1.7.5-1

Versions of packages vlc-plugin-qt recommends:
ii vlc-bin 3.0.17.4-3

Versions of packages vlc-plugin-skins2 depends on:
ii fonts-freefont-ttf 20120503-10
ii libc6 2.33-7
ii libfreetype6 2.12.1+dfsg-2
ii libfribidi0 1.0.8-2.1
ii libgcc-s1 12.1.0-2
ii libstdc++6 12.1.0-2
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii libx11-6 2:1.7.5-1
ii libxext6 2:1.3.4-1
ii libxinerama1 2:1.1.4-3
ii libxpm4 1:3.5.12-1
ii vlc-plugin-qt 3.0.17.4-3

Versions of packages vlc-plugin-skins2 recommends:
ii vlc-bin 3.0.17.4-3

Versions of packages vlc-plugin-video-output depends on:
ii libaa1 1.4p5-50
ii libavcodec58 7:4.4.2-1+b3
ii libavutil56 7:4.4.2-1+b3
ii libc6 2.33-7
ii libcaca0 0.99.beta20-2
ii libegl1 1.4.0-1
ii libgl1 1.4.0-1
ii libgles2 1.4.0-1
ii libplacebo192 4.192.1-1
ii libva-drm2 2.14.0-1
ii libva-wayland2 2.14.0-1
ii libva-x11-2 2.14.0-1
ii libva2 2.14.0-1
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii libwayland-client0 1.20.0-1
ii libwayland-egl1 1.20.0-1
ii libx11-6 2:1.7.5-1
ii libxcb-keysyms1 0.4.0-1+b2
ii libxcb-shm0 1.14-3
ii libxcb-xv0 1.14-3
ii libxcb1 1.14-3

Versions of packages vlc-plugin-video-splitter depends on:
ii libc6 2.33-7
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3
ii libxcb-randr0 1.14-3
ii libxcb1 1.14-3

Versions of packages vlc-plugin-visualization depends on:
ii libc6 2.33-7
ii libgl1 1.4.0-1
ii libvlccore9 [vlc-plugin-abi-3-0-0f] 3.0.17.4-3

-- no debconf information

Sebastian Ramacher

unread,
Jun 21, 2022, 7:10:04 AM6/21/22
to
Control: tags -1 moreinfo

On 2022-06-21 10:49:40, Job Bautista wrote:
> Package: libvlc-bin
> Version: 3.0.17.4-3
> Severity: important
>
> While I was upgrading my system, I noticed the following warning after dpkg finishes:
>
> Segmentation fault
> WARNING: Regenerating VLC plugin cache failed.
> Please run '/usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins' manually.
>
> I ran the command as told, and it still resulted in segfault.
>
> I've hooked up a gdb, and here's what gdb tells me:
>
> (gdb) set args /usr/lib/x86_64-linux-gnu/vlc/plugins
> (gdb) run
> Starting program: /usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>
> Program received signal SIGSEGV, Segmentation fault.
> __GI___pthread_rwlock_wrlock (rwlock=0x0) at pthread_rwlock_wrlock.c:27
> 27 pthread_rwlock_wrlock.c: No such file or directory.
>
> >
> Cheers,
Unless this happens on a pure Debian system, please file this bug report
with Devuan

Cheers
--
Sebastian Ramacher

Joseph Carter

unread,
Jun 25, 2022, 1:40:03 AM6/25/22
to
:
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for doc-base (0.11.1) ...
Processing 2 changed doc-base files, 2 added doc-base files...
Processing triggers for mate-menus (1.26.0-3) ...
Processing triggers for libc-bin (2.33-7) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.14.0-1) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for libvlc-bin:amd64 (3.0.17.4-4) ...
Segmentation fault
WARNING: Regenerating VLC plugin cache failed.
Please run '/usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins' manually.
Press Return to continue, 'q' followed by Return to quit.
tjcarter@aki:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: unstable
Codename: sid
tjcarter@aki:~$ sudo /usr/lib/x86_64-linux-gnu/vlc/vlc-cache-gen /usr/lib/x86_64-linux-gnu/vlc/plugins
Segmentation fault

Happens on Debian too.

Joseph

Bernhard Übelacker

unread,
Jul 6, 2022, 4:30:03 PM7/6/22
to
Dear Maintainer,
this issue seems to just surface if the package
vlc-plugin-bittorrent is or gets installed.
Then vlc-cache-gen shows below backtrace.

This looks exactly like bugs [1013931] (where just a rebuild
was triggered, that looks like it might not solve the issue).

Another similar bug is [1012843], where I am pointing
to [1] and [2], where upstream committed some days ago
a patch [3] that might help.

So should this bug get reassigned to openssl with an affects vlc?

Kind regards,
Bernhard


[1013931] https://bugs.debian.org/1013931
[1012843] https://bugs.debian.org/1012843
[1] https://github.com/openssl/openssl/issues/18669
[2] https://github.com/openssl/openssl/pull/18673
[3] https://github.com/openssl/openssl/commit/3361f685fcee8b47920a136041f545c41a4afb3f


(gdb) bt
#0 __pthread_rwlock_wrlock_full64 (abstime=0x0, clockid=0, rwlock=0x0) at pthread_rwlock_common.c:603
#1 __GI___pthread_rwlock_wrlock (rwlock=0x0) at pthread_rwlock_wrlock.c:27
#2 0x00007fffefa3b909 in CRYPTO_THREAD_write_lock (lock=<optimized out>) at ../crypto/threads_pthread.c:112
#3 0x00007fffef958b03 in conf_modules_finish_int () at ../crypto/conf/conf_mod.c:524
#4 0x00007fffef959232 in CONF_modules_unload (all=1) at ../crypto/conf/conf_mod.c:482
#5 0x00007fffe8b504c4 in boost::asio::ssl::detail::openssl_init_base::do_init::~do_init (this=0x5555556ee2a0, __in_chrg=<optimized out>) at /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:90
#6 std::_Sp_counted_ptr<boost::asio::ssl::detail::openssl_init_base::do_init*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:348
#7 0x00007fffe76b509a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x5555555f3d50) at /usr/include/c++/11/bits/shared_ptr_base.h:168
#8 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:705
#9 std::__shared_ptr<boost::asio::ssl::detail::openssl_init_base::do_init, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:1154
#10 std::shared_ptr<boost::asio::ssl::detail::openssl_init_base::do_init>::~shared_ptr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr.h:122
#11 0x00007ffff7df6f77 in __run_exit_handlers (status=0, listp=0x7ffff7f8a738 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#12 0x00007ffff7df711a in __GI_exit (status=<optimized out>) at exit.c:139
#13 0x00007ffff7ddf804 in __libc_start_main (main=0x5555555550e0 <main>, argc=2, argv=0x7fffffffec98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffec88) at ../csu/libc-start.c:366
#14 0x000055555555537a in _start ()
(gdb)

Job Bautista

unread,
Jul 7, 2022, 2:20:03 AM7/7/22
to
On Thursday, July 7th, 2022 at 4:24 AM, Bernhard Übelacker <bern...@mailbox.org> wrote:

> Dear Maintainer,
> this issue seems to just surface if the package
> vlc-plugin-bittorrent is or gets installed.
> Then vlc-cache-gen shows below backtrace.

> This looks exactly like bugs [1013931] (where just a rebuild
> was triggered, that looks like it might not solve the issue).
> Another similar bug is [1012843], where I am pointing
> to [1] and [2], where upstream committed some days ago
> a patch [3] that might help.

> So should this bug get reassigned to openssl with an affects vlc?

> Kind regards,
> Bernhard

I just removed the BitTorrent plugin (which I didn't need anyway),
and I can confirm that vlc-cache-gen works again. Thanks!

P.S. Sorry for the resend, my mail client didn't CC the bug for some
reason...

Sebastian Ramacher

unread,
Jul 7, 2022, 3:20:03 AM7/7/22
to
Control: reassign -1 libssl3 3.0.3-8
Control: forwarded -1 https://github.com/openssl/openssl/issues/18669
Control: tags -1 = upstream

On 2022-07-06 22:24:34, Bernhard Übelacker wrote:
> Dear Maintainer,
> this issue seems to just surface if the package
> vlc-plugin-bittorrent is or gets installed.
> Then vlc-cache-gen shows below backtrace.
>
> This looks exactly like bugs [1013931] (where just a rebuild
> was triggered, that looks like it might not solve the issue).
>
> Another similar bug is [1012843], where I am pointing
> to [1] and [2], where upstream committed some days ago
> a patch [3] that might help.
>
> So should this bug get reassigned to openssl with an affects vlc?

Thanks for the analysis. Re-asssigning to libssl3.

Cheers

>
> Kind regards,
> Bernhard
>
>
> [1013931] https://bugs.debian.org/1013931
> [1012843] https://bugs.debian.org/1012843
> [1] https://github.com/openssl/openssl/issues/18669
> [2] https://github.com/openssl/openssl/pull/18673
> [3] https://github.com/openssl/openssl/commit/3361f685fcee8b47920a136041f545c41a4afb3f
>
>
> (gdb) bt
> #0 __pthread_rwlock_wrlock_full64 (abstime=0x0, clockid=0, rwlock=0x0) at pthread_rwlock_common.c:603
> #1 __GI___pthread_rwlock_wrlock (rwlock=0x0) at pthread_rwlock_wrlock.c:27
> #2 0x00007fffefa3b909 in CRYPTO_THREAD_write_lock (lock=<optimized out>) at ../crypto/threads_pthread.c:112
> #3 0x00007fffef958b03 in conf_modules_finish_int () at ../crypto/conf/conf_mod.c:524
> #4 0x00007fffef959232 in CONF_modules_unload (all=1) at ../crypto/conf/conf_mod.c:482
> #5 0x00007fffe8b504c4 in boost::asio::ssl::detail::openssl_init_base::do_init::~do_init (this=0x5555556ee2a0, __in_chrg=<optimized out>) at /usr/include/boost/asio/ssl/detail/impl/openssl_init.ipp:90
> #6 std::_Sp_counted_ptr<boost::asio::ssl::detail::openssl_init_base::do_init*, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:348
> #7 0x00007fffe76b509a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x5555555f3d50) at /usr/include/c++/11/bits/shared_ptr_base.h:168
> #8 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:705
> #9 std::__shared_ptr<boost::asio::ssl::detail::openssl_init_base::do_init, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr_base.h:1154
> #10 std::shared_ptr<boost::asio::ssl::detail::openssl_init_base::do_init>::~shared_ptr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr.h:122
> #11 0x00007ffff7df6f77 in __run_exit_handlers (status=0, listp=0x7ffff7f8a738 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
> #12 0x00007ffff7df711a in __GI_exit (status=<optimized out>) at exit.c:139
> #13 0x00007ffff7ddf804 in __libc_start_main (main=0x5555555550e0 <main>, argc=2, argv=0x7fffffffec98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffec88) at ../csu/libc-start.c:366
> #14 0x000055555555537a in _start ()
> (gdb)
>

--
Sebastian Ramacher
0 new messages