Bug#1025427: pipewire: frequent crashes on x11 bell

2023-02-09 Thread Tomáš Janoušek
Hi,

V Thu, Feb 09, 2023 at 11:22:05AM +0100, Dylan Aïssi napsal(a):
> I am not against backporting fixes, but to mitigate this issue I moved the
> x11-bell module into its own package (since pipewire 0.3.63-3).
> This new libpipewire-0.3-modules-x11 package is not pulled by dependencies, so
> if you don't want to use this x11-bell module, it is possible to just 
> uninstall
> libpipewire-0.3-modules-x11.

Fair enough, that covers 90+% of use-cases. The fix I linked is necessary for
real multi-user systems, but I'm not on one, fortunately. Thank you!

-- 
Tomáš "liskin" ("Pivník") Janoušek, https://lisk.in/



Bug#1025427: pipewire: frequent crashes on x11 bell

2023-02-09 Thread Dylan Aïssi
Hi,

Le mer. 8 févr. 2023 à 13:00, Tomas Janousek  a écrit :
>
> Can we please cherry-pick 
> https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/5552ff7fdd76116e10911ddedfeb7927db6d500e
>  and 
> https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/fda829a1fa011c11808b151af135fa5c4dd9bf65
>  to make it possible to disable x11-bell? Even if it didn't crash, it's 
> certainly not desirable to have audible bell that cannot be disabled via 
> "xset b off" or some other sane means… And the reality on my machine is that 
> this audible bell happens to make a sound only a fraction of the time, most 
> of the time does nothing, and often just crashes pipewire.
>

I am not against backporting fixes, but to mitigate this issue I moved the
x11-bell module into its own package (since pipewire 0.3.63-3).
This new libpipewire-0.3-modules-x11 package is not pulled by dependencies, so
if you don't want to use this x11-bell module, it is possible to just uninstall
libpipewire-0.3-modules-x11.

Best,
Dylan



Bug#1025427: pipewire: frequent crashes on x11 bell

2022-12-04 Thread Dylan Aïssi
Hi,

Le dim. 4 déc. 2022 à 15:27, Adam Borowski  a écrit :
>
> On a machine with no physical PC honker, I have the x11 bell enabled.
> And that causes random but frequent crashes in pipewire:
>

Random crashes can happen when the module is loaded twice.
And this module is loaded by default conf files since pipewire 0.3.60 see
https://salsa.debian.org/utopia-team/pipewire/-/commit/45746784248c468622f0bd62597a3c5cc05e53b2

Do you load this module in another conf file?

Best,
Dylan



Bug#1025427: pipewire: frequent crashes on x11 bell

2022-12-04 Thread Adam Borowski
Package: pipewire
Version: 0.3.61-1
Severity: normal

Hi!
On a machine with no physical PC honker, I have the x11 bell enabled.
And that causes random but frequent crashes in pipewire:


Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strcmp_sse2_unaligned () at 
../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:40
40  ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: No such file or 
directory.
[Current thread is 1 (Thread 0x7f1426c0 (LWP 522))]
(gdb) bt full
#0  __strcmp_sse2_unaligned () at 
../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:40
No locals.
#1  0x7f143037bb55 in loader_callback (item=0x7f142e70, 
userdata=)
at libltdl/lt_dlloader.c:56
vtable = 
name = 
__PRETTY_FUNCTION__ = "loader_callback"
#2  0x7f143037efb0 in lt__slist_find (slist=0x7f142e70, 
find=find@entry=0x7f143037bb40 , 
matchdata=matchdata@entry=0x7f13d1421330)
at libltdl/slist.c:126
result = 0x0
__PRETTY_FUNCTION__ = "lt__slist_find"
#3  0x7f143037bcaa in lt_dlloader_find (
name=name@entry=0x7f13d1421330 )
at libltdl/lt_dlloader.c:214
No locals.
#4  0x7f143037bcd6 in lt_dlloader_remove (
name=0x7f13d1421330 )
at libltdl/lt_dlloader.c:156
vtable = 
id_string = "lt_dlloader_remove"
iface = 
handle = 
in_use = 
in_use_by_resident = 
#5  0x7f143037d558 in lt_dlexit () at libltdl/ltdl.c:340
next = 0x7f142dd0
vtable = 
level = 
loader = 0x7f142e70
handle = 
errors = 0
#6  0x7f14303de115 in driver_destroy (c=c@entry=0x7f142b70) at 
./src/dso.c:298
p = 0x7f142d20
ret = 0
__PRETTY_FUNCTION__ = "driver_destroy"
#7  0x7f14303d5988 in ca_context_destroy (c=0x7f142b70) at 
./src/common.c:186
ret = 0
__PRETTY_FUNCTION__ = "ca_context_destroy"
#8  0x7f14308687fe in play_sample (impl=)
at ../src/modules/module-x11-bell.c:135
sample = 0x7f14308691eb "bell-window-system"
ca = 0x7f142b70
res = 
sample = 
ca = 
res = 
__func__ = "play_sample"
exit = 
exit_destroy = 
#9  do_play_sample (loop=, async=, seq=, data=, size=, user_data=) at 
../src/modules/module-x11-bell.c:142
No locals.
#10 0x7f1431d7298a in flush_items (impl=0x561fd8337a68) at 
../spa/plugins/support/loop.c:181
item = 0x561fd8337b58
block = false
index = 0
res = 
__func__ = "flush_items"
#11 0x7f1431d727f9 in source_event_func (source=0x561fd833fb90) at 
../spa/plugins/support/loop.c:592
s = 0x561fd833fb90
count = 1
res = 
__func__ = "source_event_func"
#12 0x7f1431d74e8e in loop_iterate (object=0x561fd8337a68, timeout=-1) at 
../spa/plugins/support/loop.c:431
s = 
__cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = 
{94694771227408, -2109903483977498334, 4294967295, 94694771226728, 
140725934194656, 139724672987136, -5715082852569611998, -5715122637836680926}, 
__mask_was_saved = 0}}, __pad = {0x7f142fffeef0, 0x0, 0x0, 0x0}}
__cancel_routine = 0x7f1431d72320 
__cancel_arg = 
__not_first_call = 
impl = 0x561fd8337a68
ep = {{events = 1, data = 0x561fd833fb90}, {events = 0, data = 0x0} 
}
e = 
i = 0
nfds = 1
cdata = {ep = 0x7f142fffec80, ep_count = 1}
__func__ = "loop_iterate"
#13 0x7f143206e4fa in ?? () from 
/usr/lib/x86_64-linux-gnu/libpipewire-0.3.so.0
No symbol table info available.
#14 0x7f1431e76fd4 in start_thread (arg=) at 
./nptl/pthread_create.c:442
ret = 
pd = 
out = 
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139724681377472, 
5658682304508821794, -128, 0, 140725934194656, 139724672987136, 
-5715082852466851550, -5715122499345481438}, mask_was_saved = 0}}, priv = {pad 
= {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 
#15 0x7f1431ef766c in clone3 () at 
../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
No locals.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (666, 'testing'), (500, 'testing-debug'), (500, 'unstable'), (1, 
'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages pipewire depends on:
ii  adduser  3.129
ii  init-system-helpers  1.65.2
ii  libpipewire-0.3-modules  0.3.61-1
ii  pipewire-bin 0.3.61-1

pipewire recommends no packages.

pipewire suggests no packages.

-- no debconf information