[One (M9) Original Android Development] supachris:
Bluetooth is still buggy. Today I got my new BT OBD2 interface (ELM327 compatible). Using it with Torque, ScanMaster or similar apps, the BT permanently crashes.

Also sometimes streaming music to my MPOW streammbot the BT system crashes at all.

Here a log snippet from today:

12-20 15:23:42.023 F/libc (18829): FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7550798d78)
12-20 15:23:42.024 F/libc (18829): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18848 (alarm_default_c), pid 18829 (droid.bluetooth)
12-20 15:23:42.202 F/DEBUG (19068): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-20 15:23:42.202 F/DEBUG (19068): LineageOS Version: '16.0-20181210-UNOFFICIAL-himaul'
12-20 15:23:42.202 F/DEBUG (19068): Build fingerprint: 'htc/himaulatt_na_gen_unlock/htc_himaulatt:7.0/NRD90M/894012.12:user/release-keys'
12-20 15:23:42.203 F/DEBUG (19068): Revision: '0'
12-20 15:23:42.203 F/DEBUG (19068): ABI: 'arm64'
12-20 15:23:42.203 F/DEBUG (19068): pid: 18829, tid: 18848, name: alarm_default_c >>> com.android.bluetooth <<<
12-20 15:23:42.203 F/DEBUG (19068): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
12-20 15:23:42.203 F/DEBUG (19068): Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7550798d78)'
12-20 15:23:42.203 F/DEBUG (19068): x0 0000000000000000 x1 00000000000049a0 x2 0000000000000006 x3 0000000000000008
12-20 15:23:42.203 F/DEBUG (19068): x4 0000000000008080 x5 0000000000008080 x6 0000000000008080 x7 0000000000000038
12-20 15:23:42.203 F/DEBUG (19068): x8 0000000000000083 x9 00000075ee3b7b18 x10 fffffff87ffffbdf x11 0000000000000001
12-20 15:23:42.203 F/DEBUG (19068): x12 0000000000000030 x13 0000000000000000 x14 0000000000000000 x15 00016916b270fe56
12-20 15:23:42.203 F/DEBUG (19068): x16 00000075ee3ef2a0 x17 00000075ee32d2a0 x18 0000000000000000 x19 000000000000498d
12-20 15:23:42.203 F/DEBUG (19068): x20 00000000000049a0 x21 0000000000000083 x22 0000000000001000 x23 0000007550705af8
12-20 15:23:42.203 F/DEBUG (19068): x24 00000075ee3f8000 x25 00000075502f5118 x26 00000075ee3f8000 x27 0000000000000018
12-20 15:23:42.203 F/DEBUG (19068): x28 0000000000000078 x29 000000754fd3f630
12-20 15:23:42.203 F/DEBUG (19068): sp 000000754fd3f5f0 lr 00000075ee321a58 pc 00000075ee321a84
12-20 15:23:42.248 F/DEBUG (19068):
12-20 15:23:42.248 F/DEBUG (19068): backtrace:
12-20 15:23:42.248 F/DEBUG (19068): #00 pc 0000000000021a84 /system/lib64/libc.so (abort+124)
12-20 15:23:42.248 F/DEBUG (19068): #01 pc 0000000000085898 /system/lib64/libc.so (__fortify_fatal(char const*, ...)+120)
12-20 15:23:42.248 F/DEBUG (19068): #02 pc 0000000000084e5c /system/lib64/libc.so (pthread_mutex_lock+252)
12-20 15:23:42.248 F/DEBUG (19068): #03 pc 00000000000a79c8 /system/lib64/libc++.so (std::__1::mutex::lock()+8)
12-20 15:23:42.248 F/DEBUG (19068): #04 pc 000000000029d86c /system/lib64/libbluetooth.so (alarm_cancel(alarm_t*) [clone .cfi]+100)
12-20 15:23:42.248 F/DEBUG (19068): #05 pc 000000000029d7a8 /system/lib64/libbluetooth.so (alarm_free(alarm_t*) [clone .cfi]+24)
12-20 15:23:42.248 F/DEBUG (19068): #06 pc 000000000015f4a8 /system/lib64/libbluetooth.so (BtifAvSource::CleanupAllPeers()+64)
12-20 15:23:42.248 F/DEBUG (19068): #07 pc 000000000015f128 /system/lib64/libbluetooth.so (BtifAvSource::~BtifAvSource()+16)
12-20 15:23:42.248 F/DEBUG (19068): #08 pc 0000000000087084 /system/lib64/libc.so (__cxa_finalize+196)
12-20 15:23:42.248 F/DEBUG (19068): #09 pc 000000000001c518 /system/lib64/libc.so (exit+24)
12-20 15:23:42.248 F/DEBUG (19068): #10 pc 00000000001c15a8 /system/lib64/libbluetooth.so (hci_timeout_abort(void*) [clone .cfi]+56)
12-20 15:23:42.248 F/DEBUG (19068): #11 pc 000000000029d728 /system/lib64/libbluetooth.so (alarm_ready_generic(alarm_t*, std::__1::unique_lock<std::__1::mutex>&) [clone .cfi]+240)
12-20 15:23:42.248 F/DEBUG (19068): #12 pc 000000000029ccf0 /system/lib64/libbluetooth.so (alarm_queue_ready(fixed_queue_t*, void*) [clone .cfi]+112)
12-20 15:23:42.248 F/DEBUG (19068): #13 pc 00000000002a1800 /system/lib64/libbluetooth.so (internal_dequeue_ready(void*) [clone .cfi]+112)
12-20 15:23:42.249 F/DEBUG (19068): #14 pc 00000000002a95f4 /system/lib64/libbluetooth.so (run_reactor(reactor_t*, int) [clone .cfi]+420)
12-20 15:23:42.249 F/DEBUG (19068): #15 pc 00000000002a9424 /system/lib64/libbluetooth.so (reactor_start(reactor_t*) [clone .cfi]+84)
12-20 15:23:42.249 F/DEBUG (19068): #16 pc 00000000002aaf40 /system/lib64/libbluetooth.so (run_thread(void*) [clone .cfi]+192)
12-20 15:23:42.249 F/DEBUG (19068): #17 pc 0000000000084234 /system/lib64/libc.so (__pthread_start(void*)+36)
12-20 15:23:42.249 F/DEBUG (19068): #18 pc 0000000000023384 /system/lib64/libc.so (__start_thread+68)

Don´t have this problem using the same OBD2 interface paired with my Galaxy Tab pro running LOS 14.1