Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932648 - net-wireless/bluez-5.75 bluetooth service crashes
Summary: net-wireless/bluez-5.75 bluetooth service crashes
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on: 933246
Blocks:
  Show dependency tree
 
Reported: 2024-05-24 18:27 UTC by Anard
Modified: 2024-10-22 05:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,9.30 KB, text/plain)
2024-05-24 18:27 UTC, Anard
Details
emerge --info bluez 5.78 (emerge --info,9.49 KB, text/plain)
2024-10-22 05:12 UTC, Anard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anard 2024-05-24 18:27:43 UTC
Created attachment 894257 [details]
emerge --info

Hi.

I use bluetooth keyboard with Openrc and Bluez.
Since last net-wireless/bluez-5.75 upgrade, bluetooth service crashes on system wake up.
I had created a udev rule for enabling wake up via BT keyboard : 

$ cat /etc/udev/rules.d/70-mouse-keyboard-wakeup.rules 
ACTION=="add" \
, ATTR{product}=="BCM[A-Za-z0-9]*|[A-Za-z -_]*[mM]ouse|[A-Za-z -_]*[kK]eyboard" \
, ATTR{power/wakeup}="enabled"

#, ATTR{idProduct}=="21e8|2510" \
#, ATTR{idVendor}=="0a5c|093a" \

Strangely, my keyboard can still can wake the system after sleep (suspend to RAM) but bluetooth rc-service crashes immediately after...
A rc-service bluetooth restart can solve the problem until next sleep.

Waiting for a solution, I masked package net-wireless/bluez-5.75 and everything work well with bluez-5.72.

Thx for help
Comment 1 Paul Jewell 2024-05-26 18:49:13 UTC
I had this issue, and can confirm that upgrading to bluez-5.76-r1 appears to have resolved the issue. I will keep a close eye on it, and report back if this proves not to be the case.
Comment 2 Anard 2024-05-26 19:27:08 UTC
Thx Paul Jewel,

I just tried to replace 5.72 by 5.76-r1 and I confirm it seems to solve the problem too.
Only v.5.75 seems to be impacted by the issue…

To confirm.
Comment 3 Pacho Ramos gentoo-dev 2024-06-01 12:19:25 UTC
Fixed version got stabilized

Thanks for reporting the issue
Comment 4 Anard 2024-10-20 14:09:35 UTC
Hi.

I reopen this thread as net-wireless/bluez-5.78 seems to push the same issue.
I masked this version in /etc/portage/package.mask, re-emerged bluez (version 5.77) and restarted bluetooth rc-service and it works as expected again.

Anything to correct in v.5.78 ?
Comment 5 Pacho Ramos gentoo-dev 2024-10-21 20:23:56 UTC
What errors are reported when it crashes?
Comment 6 Anard 2024-10-22 05:09:37 UTC
Hi.
After entering suspend to RAM and wake system from keyboard, I have this in dmesg :

[84922.780652] random: crng reseeded on system resumption
[84922.783526] PM: suspend exit
[84923.013880] bluetoothd[31431]: segfault at 559c065e3eb1 ip 000055993a6139cc sp 00007fff9188cc58 error 4 in bluetoothd[55993a562000+e0000] likely on CPU 6 (core 2, socket 0)
[84923.013889] Code: 1a 04 00 00 48 8b 0d 0b 06 0b 00 e9 ae c0 ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 48 89 f8 8b 0e 48 89 f7 <39> 48 04 75 0f 48 8b 50 08 48 85 d2 74 06 48 8b 70 10 ff e2 c3 66
Comment 7 Anard 2024-10-22 05:12:04 UTC
Created attachment 906579 [details]
emerge --info bluez 5.78