<div dir="ltr">Hi Dbus experts,<div style>I am getting a dbus crash while scanning for device. Please help me if there is already possible any fix for this.</div><div style><br></div><div style><p class=""><span style="font-size:10pt;font-family:Arial,sans-serif;color:black;background-color:rgb(224,240,255)">Root cause of crash:: Below dbus_assertion is
failed<span class=""> </span></span><span style="font-size:10pt;font-family:Arial,sans-serif;color:black"><br>
<span style="background-color:rgb(224,240,255)">It's looks like during the operation (real)->len
is equaled to (real)->allocated which means that DBUS was not able to add
_DBUS_STRING_ALLOCATION_PADDING for one of the string.</span><br>
<span style="background-color:rgb(224,240,255)">This could be the corner case in DBUS.</span><br>
<br>
<span style="background-color:rgb(224,240,255)">WARN [ 4032.884348] (926:926) libdbus 926:
assertion failed "(real)->len <= ((real)->allocated -
_DBUS_STRING_ALLOCATION_PADDING)" file "external/dbus
/dbus/dbus-string.c" line 564 function _dbus_string_get_byte</span><br>
<br>
<span style="background-color:rgb(224,240,255)">which is leading to send below fatal signal to
kernel</span><br>
<br>
<span style="background-color:rgb(224,240,255)">FATAL [ 4032.924390] (926:926) libc Fatal
signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 926 (bluetoothd)</span><br>
<br>
<span style="background-color:rgb(224,240,255)">later kernel is crashed</span><br>
<br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.913962] == Native crash-info: ==</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.914329] pid: 926, tid: 926, name:
bluetoothd >>> /system/bin/bluetoothd <<<</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.914512] signal 11 (SIGSEGV), code 1
(SEGV_MAPERR), fault addr deadbaad</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.920677]</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.920677] backtrace:</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.920982] #00 pc 000183aa
/system/lib/libc.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921074] #01 pc 0000dc84
/system/lib/libc.so (abort+4)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921226] #02 pc 00030cd9
/system/lib/libdbus.so (_dbus_abort+48)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921318] #03 pc 0001971b
/system/lib/libdbus.so (_dbus_real_assert+34)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921470] #04 pc 0002c451
/system/lib/libdbus.so (_dbus_string_get_byte+156)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921806] #05 pc 0001c789
/system/lib/libdbus.so (_dbus_header_get_message_type+4)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.921898] #06 pc 00023c93
/system/lib/libdbus.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922020] #07 pc 0001625b
/system/lib/libbluetoothd.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922111] #08 pc 0001649b
/system/lib/libbluetoothd.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922264] #09 pc 00018565
/system/lib/libbluetoothd.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922356] #10 pc 0001a96f
/system/lib/libglib.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922508] #11 pc 0001132d
/system/lib/libglib.so (g_main_context_dispatch+328)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922661] #12 pc 00011723
/system/lib/libglib.so</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922752] #13 pc 00011ab7
/system/lib/libglib.so (g_main_loop_run+330)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922905] #14 pc 000196b5
/system/lib/libbluetoothd.so (main+2016)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.922996] #15 pc 00017213
/system/lib/libc.so (__libc_init+38)</span><br>
<span style="background-color:rgb(224,240,255)">WAR[ 1142.923149] #16 pc 000002f4
/system/bin/bluetoothd</span><br>
<br>
<span style="background-color:rgb(224,240,255)">INF[ 1142.923485] SysRq : Trigger a crash</span><br>
<br>
<span style="background-color:rgb(224,240,255)">ALE[ 1142.923698] Unable to handle kernel NULL
pointer dereference at virtual address 00000000</span></span></p></div></div>