Hi Benoit,

On Thu, Dec 09, 2010 at 08:55:07PM +0100, Benoît Monin wrote:
> Full syslog from power-up to crash is here :
> http://pastebin.com/raw.php?i=sU7CxpkN
> 
> The test was (the steps are indicated in the log):
>     - power-up
>     - run /usr/lib/ofono/test/activate-context
>     - set gsm antenna attenuator to -60dB to force a gsm signal loss
>     - set gsm antenna attenuator back to 0dB
>     - run again /usr/lib/ofono/test/activate-context
>     - connman crash happens here
Ok, I was able to reproduce this issue by unplugging my f3607 antennae. We
were having a dangling connection pointer due to the ofono plugin deleting
some strings too early.
Could you please try the following patch, it seems to work for me

diff --git a/plugins/ofono.c b/plugins/ofono.c
index 1cb0961..90237b1 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -1499,10 +1499,11 @@ static void set_connected(struct connman_network 
*network,
        case CONNMAN_IPCONFIG_METHOD_FIXED:
                connman_network_set_ipv4_method(network, method);
 
+               connman_network_set_connected(network, connected);
+
                if (connected == FALSE)
                        cleanup_ipconfig(network);
 
-               connman_network_set_connected(network, connected);
                break;
 
        case CONNMAN_IPCONFIG_METHOD_DHCP:

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to