Re: SEGFAULT on sim_remove()

2018-03-29 Thread Gabriel Lucas
Hi Denis, This is fixed! On 29/03/2018 16:51, Denis Kenzior wrote: Hi Gabriel, If you have any idea of the reason, let me know. commit id 8b8a760644fd99f8df295fe4dbcd23d75da8b171 (now HEAD) should fix this. Thank you Regards, Gabriel ___

Re: SEGFAULT on sim_remove()

2018-03-29 Thread Denis Kenzior
Hi Gabriel, If you have any idea of the reason, let me know. commit id 8b8a760644fd99f8df295fe4dbcd23d75da8b171 (now HEAD) should fix this. Regards, -Denis ___ ofono mailing list ofono@ofono.org https://lists.ofono.org/mailman/listinfo/ofono

Re: SEGFAULT on sim_remove()

2018-03-29 Thread Gabriel Lucas
Hi Denis, I've been investigating for the reason of the SIGSEGV signal. Valgrind tells me that I'm reading an already-freed sector. I've added some debug information in: - src/sim.c:sim_remove: see below - src/simfs.c:sim_fs_context_free: freed sim_context - src/simfs.c:sim_fs_op_free:

Re: SEGFAULT on sim_remove()

2018-03-26 Thread Gabriel Lucas
Denis, On 26/03/2018 17:25, Denis Kenzior wrote: Hi Gabriel, gdb backtrace: Program received signal SIGSEGV, Segmentation fault. __ofono_sim_remove_session_watch (session=0x74656e, id=16) at src/sim.c:3616 3616        __ofono_watchlist_remove_item(session->watches, id); (gdb) bt #0 

Re: SEGFAULT on sim_remove()

2018-03-26 Thread Denis Kenzior
Hi Gabriel, gdb backtrace: Program received signal SIGSEGV, Segmentation fault. __ofono_sim_remove_session_watch (session=0x74656e, id=16) at src/sim.c:3616 3616        __ofono_watchlist_remove_item(session->watches, id); (gdb) bt #0  __ofono_sim_remove_session_watch (session=0x74656e,

SEGFAULT on sim_remove()

2018-03-26 Thread Gabriel Lucas
Hi everyone, I'm getting a SEGFAULT when powering off a gemalto ALS3 modem with SetProperty("Powered", Variant(false)). This method call is made right after the SimManager interface is on which could explain the error. Log from oFono: ofonod[6950]: src/sim.c:sim_remove() atom: 0x1604f0