Hi Yunhan, On 09/02/2017 12:54 PM, Yunhan Wang wrote: > Hi, ERAMOTO > > On Fri, Sep 1, 2017 at 12:59 AM, ERAMOTO Masaya > <eramoto.masaya@xxxxxxxxxxxxxx> wrote: >> Hi Yunhan, >> >> Thanks for your explanation. >> >> Btw, could you also tell me about the following fix. > > default_ctrl would be set as NULL in disconnect_handler. Therefore I > remove this redundant one. > It seems g_dbus_client_unref() calls disconnect_handler() when g_main_loop_run() is exited by quit command etc.. So I think here defautl_ctrl should be set as NULL in interactive mode. > >> bluetoothclt sometimes do core dump when I detach the adapter of default_ctrl >> and run show command. > > Could you share your reproduce step for this issue? Could it be > constantly reproduced? It is always reproduced with the following steps: 1. Attach an adapter. 2. Run bluetoothctl. 3. Detach this adapter. 4. Run device command in bluetootctl. Regards, Eramoto > > thanks > best wishes > yunhan > > -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html