Bug 199877

Summary: Bluetooth crash with Sony MDR-1000x
Product: Drivers Reporter: Sergio (svillar)
Component: BluetoothAssignee: linux-bluetooth (linux-bluetooth)
Status: NEW ---    
Severity: normal CC: luiz.dentz
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg output for bluetooth
btmon trace
More dmesg traces

Description Sergio 2018-05-29 10:49:55 UTC
Created attachment 276257 [details]
dmesg output for bluetooth

Bluetooth stack is very unreliable when trying to make it work with some headsets as the Sony MDR-1000x. I get frequent disconnections which do not involve any user action/interaction. After those bluetooth does not work and it requires a reboot.

I'm attaching the output of dmesg after one of those failures.
Comment 1 Luiz Von Dentz 2018-05-29 11:58:35 UTC
Could you please add the daemon logs as well as btmon trace?
Comment 2 Sergio 2018-05-29 12:53:30 UTC
(In reply to Luiz Von Dentz from comment #1)
> Could you please add the daemon logs as well as btmon trace?

WRT the former do you mean /var/log/daemon.log?

Regarding the latter, I guess I'd need to launch btmon and wait for the problem to appear? I've never used it FTR
Comment 3 Sergio 2018-05-29 13:46:26 UTC
Created attachment 276259 [details]
btmon trace

This is the btmon traces for a session. In the beginning I tried to connect the headset a few times. It was selecting the HSP/HFP profile instead of the A2DP and not allowing me to change it. After some connection/disconnections I managed to connect it with the A2DP profile.

Then I started to play some music, and after a minute or so I got a sudden disconnection.

That's more or less the description of the trace.
Comment 4 Sergio 2018-05-29 14:28:30 UTC
Created attachment 276261 [details]
More dmesg traces

Some more traces. The NULL pointer dereference looks pretty bad :)