All of lore.kernel.org
 help / color / mirror / Atom feed
* Bluez 5.56 segfaulting while A2DP
@ 2021-02-26 15:12 Tobias S. Predel
  2021-02-26 21:22 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias S. Predel @ 2021-02-26 15:12 UTC (permalink / raw)
  To: linux-bluetooth

Dear all,

I experienced a SEGFAULT from bluez 5.56-1
on Arch Linux - linux 5.11.1.arch1-1:

It happened during having A2DP connection with pipewire-git 0.3.22.76.g08445d2c-1.

This is the backtrace:

# coredumpctl debug
(gdb) thread apply all bt

Thread 1 (Thread 0x7fb8325f67c0 (LWP 663)):
#0  0x00007fb832c74f19 in __strcasecmp_l_avx () from /usr/lib/libc.so.6
#1  0x000055d78e38c3b1 in play_status_to_val (status=0x0) at profiles/audio/avrcp.c:729
#2  0x000055d78e38ce3e in avrcp_player_event (player=player@entry=0x55d78f058a20, id=<optimized out>, data=data@entry=0x0) at profiles/audio/avrcp.c:807
#3  0x000055d78e38ced6 in avrcp_player_event (data=0x0, id=<optimized out>, player=0x55d78f058a20) at profiles/audio/avrcp.c:783
#4  notify_addressed_player_changed (user_data=user_data@entry=0x55d78f058a20) at profiles/audio/avrcp.c:1804
#5  0x000055d78e3906ad in avrcp_unregister_player (player=0x55d78f058a20) at profiles/audio/avrcp.c:4452
#6  0x000055d78e3830c8 in media_player_remove (data=0x55d78f050ff0) at profiles/audio/media.c:1052
#7  unregister_player (conn=<optimized out>, msg=0x55d78f0079d0, data=<optimized out>) at profiles/audio/media.c:1902
#8  0x000055d78e404fe9 in process_message (connection=0x55d78f005e00, message=0x55d78f0079d0, method=0x55d78e47b778 <media_methods+120>, iface_user_data=<optimized out>) at gdbus/object.c:246
#9  0x00007fb832df17d6 in ?? () from /usr/lib/libdbus-1.so.3
#10 0x00007fb832de13bd in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3
#11 0x000055d78e401681 in message_dispatch (data=0x55d78f005e00) at gdbus/mainloop.c:59
#12 0x00007fb832e72b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007fb832ec6c21 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007fb832e720d3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#15 0x000055d78e41acc6 in mainloop_run () at src/shared/mainloop-glib.c:66
#16 0x000055d78e41b148 in mainloop_run_with_signal (func=func@entry=0x55d78e3acf70 <signal_callback>, user_data=user_data@entry=0x0) at src/shared/mainloop-notify.c:188
#17 0x000055d78e36fac0 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:1084

Regards,
Tobias Predel
-- 
La perfection est atteinte, non pas lorsqu'il n'y a plus rien à ajouter, 
mais lorsqu'il n'y a plus rien à retirer. — Antoine de Saint-Exupéry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bluez 5.56 segfaulting while A2DP
  2021-02-26 15:12 Bluez 5.56 segfaulting while A2DP Tobias S. Predel
@ 2021-02-26 21:22 ` Luiz Augusto von Dentz
  2021-02-27  8:53   ` Tobias S. Predel
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2021-02-26 21:22 UTC (permalink / raw)
  To: Tobias S. Predel; +Cc: linux-bluetooth

Hi Tobias,

On Fri, Feb 26, 2021 at 7:17 AM Tobias S. Predel
<tobias.predel@gmail.com> wrote:
>
> Dear all,
>
> I experienced a SEGFAULT from bluez 5.56-1
> on Arch Linux - linux 5.11.1.arch1-1:
>
> It happened during having A2DP connection with pipewire-git 0.3.22.76.g08445d2c-1.
>
> This is the backtrace:
>
> # coredumpctl debug
> (gdb) thread apply all bt
>
> Thread 1 (Thread 0x7fb8325f67c0 (LWP 663)):
> #0  0x00007fb832c74f19 in __strcasecmp_l_avx () from /usr/lib/libc.so.6
> #1  0x000055d78e38c3b1 in play_status_to_val (status=0x0) at profiles/audio/avrcp.c:729
> #2  0x000055d78e38ce3e in avrcp_player_event (player=player@entry=0x55d78f058a20, id=<optimized out>, data=data@entry=0x0) at profiles/audio/avrcp.c:807
> #3  0x000055d78e38ced6 in avrcp_player_event (data=0x0, id=<optimized out>, player=0x55d78f058a20) at profiles/audio/avrcp.c:783
> #4  notify_addressed_player_changed (user_data=user_data@entry=0x55d78f058a20) at profiles/audio/avrcp.c:1804
> #5  0x000055d78e3906ad in avrcp_unregister_player (player=0x55d78f058a20) at profiles/audio/avrcp.c:4452

This looks like it is related to AVRCP not A2DP, does pipewire
register a player?

> #6  0x000055d78e3830c8 in media_player_remove (data=0x55d78f050ff0) at profiles/audio/media.c:1052
> #7  unregister_player (conn=<optimized out>, msg=0x55d78f0079d0, data=<optimized out>) at profiles/audio/media.c:1902
> #8  0x000055d78e404fe9 in process_message (connection=0x55d78f005e00, message=0x55d78f0079d0, method=0x55d78e47b778 <media_methods+120>, iface_user_data=<optimized out>) at gdbus/object.c:246
> #9  0x00007fb832df17d6 in ?? () from /usr/lib/libdbus-1.so.3
> #10 0x00007fb832de13bd in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3
> #11 0x000055d78e401681 in message_dispatch (data=0x55d78f005e00) at gdbus/mainloop.c:59
> #12 0x00007fb832e72b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #13 0x00007fb832ec6c21 in ?? () from /usr/lib/libglib-2.0.so.0
> #14 0x00007fb832e720d3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
> #15 0x000055d78e41acc6 in mainloop_run () at src/shared/mainloop-glib.c:66
> #16 0x000055d78e41b148 in mainloop_run_with_signal (func=func@entry=0x55d78e3acf70 <signal_callback>, user_data=user_data@entry=0x0) at src/shared/mainloop-notify.c:188
> #17 0x000055d78e36fac0 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:1084
>
> Regards,
> Tobias Predel
> --
> La perfection est atteinte, non pas lorsqu'il n'y a plus rien à ajouter,
> mais lorsqu'il n'y a plus rien à retirer. — Antoine de Saint-Exupéry



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bluez 5.56 segfaulting while A2DP
  2021-02-26 21:22 ` Luiz Augusto von Dentz
@ 2021-02-27  8:53   ` Tobias S. Predel
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias S. Predel @ 2021-02-27  8:53 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

Thanks for your reply!

This is beyond my knowledge. By guessing I looked into the D-Bus system-
in the system bus, so if you mean under org.bluez
/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/org.bluez.MediaControl1/Player,
that property is not set, so I think there is no registration.

I would come back to you and this issue if I experienced another time.
I changed something, deactivated the MPRIS proxy systemd service.

Regards,
Tobias

Luiz Augusto von Dentz <luiz.dentz@gmail.com> schrieb / wrote / a écrit / ha escrito / je pisao / је писао: 

> Hi Tobias,
> 
> On Fri, Feb 26, 2021 at 7:17 AM Tobias S. Predel
> <tobias.predel@gmail.com> wrote:
> >
> > Dear all,
> >
> > I experienced a SEGFAULT from bluez 5.56-1
> > on Arch Linux - linux 5.11.1.arch1-1:
> >
> > It happened during having A2DP connection with pipewire-git 0.3.22.76.g08445d2c-1.
> >
> > This is the backtrace:
> >
> > # coredumpctl debug
> > (gdb) thread apply all bt
> >
> > Thread 1 (Thread 0x7fb8325f67c0 (LWP 663)):
> > #0  0x00007fb832c74f19 in __strcasecmp_l_avx () from /usr/lib/libc.so.6
> > #1  0x000055d78e38c3b1 in play_status_to_val (status=0x0) at profiles/audio/avrcp.c:729
> > #2  0x000055d78e38ce3e in avrcp_player_event (player=player@entry=0x55d78f058a20, id=<optimized out>, data=data@entry=0x0) at profiles/audio/avrcp.c:807
> > #3  0x000055d78e38ced6 in avrcp_player_event (data=0x0, id=<optimized out>, player=0x55d78f058a20) at profiles/audio/avrcp.c:783
> > #4  notify_addressed_player_changed (user_data=user_data@entry=0x55d78f058a20) at profiles/audio/avrcp.c:1804
> > #5  0x000055d78e3906ad in avrcp_unregister_player (player=0x55d78f058a20) at profiles/audio/avrcp.c:4452
> 
> This looks like it is related to AVRCP not A2DP, does pipewire
> register a player?
> 
> > #6  0x000055d78e3830c8 in media_player_remove (data=0x55d78f050ff0) at profiles/audio/media.c:1052
> > #7  unregister_player (conn=<optimized out>, msg=0x55d78f0079d0, data=<optimized out>) at profiles/audio/media.c:1902
> > #8  0x000055d78e404fe9 in process_message (connection=0x55d78f005e00, message=0x55d78f0079d0, method=0x55d78e47b778 <media_methods+120>, iface_user_data=<optimized out>) at gdbus/object.c:246
> > #9  0x00007fb832df17d6 in ?? () from /usr/lib/libdbus-1.so.3
> > #10 0x00007fb832de13bd in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3
> > #11 0x000055d78e401681 in message_dispatch (data=0x55d78f005e00) at gdbus/mainloop.c:59
> > #12 0x00007fb832e72b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> > #13 0x00007fb832ec6c21 in ?? () from /usr/lib/libglib-2.0.so.0
> > #14 0x00007fb832e720d3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
> > #15 0x000055d78e41acc6 in mainloop_run () at src/shared/mainloop-glib.c:66
> > #16 0x000055d78e41b148 in mainloop_run_with_signal (func=func@entry=0x55d78e3acf70 <signal_callback>, user_data=user_data@entry=0x0) at src/shared/mainloop-notify.c:188
> > #17 0x000055d78e36fac0 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:1084
> >
> > Regards,
> > Tobias Predel
> > --
> > La perfection est atteinte, non pas lorsqu'il n'y a plus rien à ajouter,
> > mais lorsqu'il n'y a plus rien à retirer. — Antoine de Saint-Exupéry
> 
> 
> 
> -- 
> Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-27  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26 15:12 Bluez 5.56 segfaulting while A2DP Tobias S. Predel
2021-02-26 21:22 ` Luiz Augusto von Dentz
2021-02-27  8:53   ` Tobias S. Predel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.