Hi, While testing the Linktop driver I observed that ofono is crashing if I try to set modem offline while it is connected (using test/offline-modem.py script). After some debugging, I found that `linktop_disconnect` function is being called twice (see the attached debug log).
What could be the reason here? I have seen some hack in mbm driver (in mbm_disconnect) having `reopen_callback`. I have tried this but then having another crash (this time when creating gprs context). Anyone, please clarify how to deal with the issue properly? Regards -- Amit Mendapara
... ofonod[16892]: Control: < \r\nOK\r\n\r\n+CIEV: 5,1\r\n\r\n+CIEV: 9,0\r\n ofonod[16892]: Control: > AT+COPS?\r ofonod[16892]: Control: < \r\n+COPS: 0,2,"40457",2 \r\n\r\nOK\r\n ofonod[16892]: Control: > AT+CIND?\r ofonod[16892]: Control: < \r\n+CIND: 1,3,1,0,1,0,0,0,0,0,0,0\r\n\r\nOK\r\n ofonod[16892]: Control: > AT+COPS=3,0\r ofonod[16892]: Control: < \r\nOK\r\n ofonod[16892]: Control: > AT+COPS?\r ofonod[16892]: Control: < \r\n+COPS: 0,0,"",2 \r\n\r\nOK\r\n\r\n+CIEV: 2,2\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,2\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Modem: > AT+CGDCONT=1,"IP","bsnlnet"\r ofonod[16892]: Modem: < AT+CGDCONT=1,"IP","bsnlnet"\r ofonod[16892]: Modem: < \r\nOK\r\n ofonod[16892]: Modem: > AT+CGDATA="PPP",1\r ofonod[16892]: Modem: < AT+CGDATA="PPP",1\r ofonod[16892]: Modem: < \r\nCONNECT\r\n Entering new phase: 1 Entering new phase: 2 Entering new phase: 3 ofonod[16892]: Control: < \r\n*EPSB: 3\r\n ofonod[16892]: Control: < \r\n*EPSB: 5\r\n\r\n*EPSB: 6\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,2\r\n Received IPCP NAK Setting suggested ip addr Setting suggested dns1 Setting suggested dns2 Entering new phase: 4 ofonod[16892]: IP: 10.163.90.180 ofonod[16892]: DNS: 218.248.240.134, 218.248.240.23 ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,2\r\n ofonod[16892]: Control: < \r\n*EPSB: 0\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Control: < \r\n*EPSB: 3\r\n ofonod[16892]: Control: < \r\n*EPSB: 5\r\n\r\n*EPSB: 6\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,2\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,2\r\n ofonod[16892]: Control: < \r\n+CIEV: 2,3\r\n ofonod[16892]: Control: < \r\n*EPSB: 0\r\n ofonod[16892]: Control: < \r\n*EPSB: 3\r\n ofonod[16892]: Control: < \r\n*EPSB: 5\r\n\r\n*EPSB: 6\r\n ofonod[16892]: Control: < \r\n*EPSB: 0\r\n ofonod[16892]: plugins/linktop.c:linktop_set_online() modem 0xbf4ff0 offline ofonod[16892]: Control: > AT+CFUN=4\r Entering new phase: 5 ofonod[16892]: plugins/udev.c:remove_modem() /devices/virtual/net/ppp0 Entering new phase: 0 ofonod[16892]: plugins/linktop.c:linktop_disconnect() ofonod[16892]: plugins/linktop.c:open_device() Modem /dev/ttyACM0 ofonod[16892]: Reopened GPRS context channel ofonod[16892]: Control: < \r\nOK\r\n\r\n+CGEV: NW DEACT "IP", "10.163.90.180", 1\r\n\r\n+CGEV: NW DEACT "IP", "10.163.90.180", 1\r\n ofonod[16892]: Unregistered handle for channel 1: 0x10005 ofonod[16892]: plugins/linktop.c:linktop_disconnect() ofonod[16892]: Aborting (signal 11) ofonod[16892]: ++++++++ backtrace ++++++++ ofonod[16892]: [0]: /lib/libpthread.so.0(+0xfb40) [0x7f0843a44b40] ofonod[16892]: [1]: ./src/ofonod() [0x46ccce] ofonod[16892]: [2]: ./src/ofonod() [0x46342c] ofonod[16892]: [3]: /lib/libglib-2.0.so.0(+0x3f8fe) [0x7f0843ed38fe] ofonod[16892]: [4]: /lib/libglib-2.0.so.0(+0x3ff35) [0x7f0843ed3f35] ofonod[16892]: [5]: /lib/libglib-2.0.so.0(g_main_context_dispatch+0x263) [0x7f0843ed43b3] ofonod[16892]: [6]: /lib/libglib-2.0.so.0(+0x442a8) [0x7f0843ed82a8] ofonod[16892]: [7]: /lib/libglib-2.0.so.0(g_main_loop_run+0x195) [0x7f0843ed87b5] ofonod[16892]: [8]: ./src/ofonod() [0x46b6c4] ofonod[16892]: [9]: /lib/libc.so.6(__libc_start_main+0xfe) [0x7f08430bfd8e] ofonod[16892]: [10]: ./src/ofonod() [0x40cb89] ofonod[16892]: +++++++++++++++++++++++++++
_______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono