Hi Tomasz, Some logging with WEB enabled.
connmand[30944]: WEB: gweb/gweb.c:set_accept_option() web 0xd5ae0 clearing accept option connmand[30944]: WEB: gweb/gweb.c:set_user_agent() web 0xd5ae0 setting user agent ConnMan/1.23 wispr connmand[30944]: src/wispr.c:connman_wispr_message_init() connmand[30944]: src/wispr.c:wispr_portal_request_portal() connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 request http://ipv4.connman.net/online/status.html connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 proxy host (null) connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 port 80 connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 host ipv4.connman.net connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 flags 0 connmand[30944]: WEB: gweb/gweb.c:do_request() web 0xd5ae0 request /online/status.html connmand[30944]: WEB: gweb/gresolv.c:g_resolv_lookup_hostname() resolv 0xd5b20 hostname ipv4.connman.net connmand[30944]: WEB: gweb/gresolv.c:add_query() resolv 0xd5b20 sending 34 bytes connmand[30944]: WEB: gweb/gresolv.c:add_query() resolv 0xd5b20 lookup 0xd2ea8 id 1 query 0xd2ed8 connmand[30944]: WEB: gweb/gresolv.c:g_resolv_lookup_hostname() resolv 0xd5b20 lookup 0xd2ea8 id 1 connmand[30944]: src/rtnl.c:rtnl_message() buf 0xbeffeba8 len 52 connmand[30944]: src/rtnl.c:rtnl_message() NEWROUTE len 52 type 24 flags 0x0000 seq 0 pid 0 connmand[30944]: src/ipconfig.c:__connman_ipconfig_newroute() index 3 connmand[30944]: eth0 {add} route 192.168.0.103 gw 0.0.0.0 scope 253 <LINK> connmand[30944]: WEB: gweb/gresolv.c:parse_response() resolv 0xd5b20 response from 192.168.0.103 connmand[30944]: WEB: gweb/gresolv.c:parse_response() resolv 0xd5b20 msg id: 0xadfd rcode: 0 count: 1 connmand[30944]: WEB: gweb/gresolv.c:destroy_query() resolv 0xd5b20 query 0xd2ed8 timeout 57 connmand[30944]: WEB: gweb/gresolv.c:sort_and_return_results() resolv 0xd5b20 lookup 0xd2ea8 received 2 results connmand[30944]: WEB: gweb/gresolv.c:destroy_lookup() resolv 0xd5b20 lookup 0xd2ea8 id 1 ipv4 (nil) ipv6 (nil) connmand[30944]: WEB: gweb/gweb.c:handle_resolved_address() web 0xd5ae0 address 192.168.0.103 connmand[30944]: src/wispr.c:wispr_route_request() address 192.168.0.103 if 3 gw 192.168.0.103 connmand[30944]: src/inet.c:connman_inet_add_network_route() index 3 host 192.168.0.103 gateway 192.168.0.103 netmask (null) connmand[30944]: src/inet.c:connman_inet_add_network_route() ifname eth0 connmand[30944]: WEB: gweb/gweb.c:connect_session_transport() web 0xd5ae0 no encryption connmand[30944]: WEB: gweb/gweb.c:create_transport() web 0xd5ae0 creating session 192.168.0.103:80 connmand[30944]: src/rtnl.c:rtnl_message() buf 0xbeffeba8 len 52 connmand[30944]: src/rtnl.c:rtnl_message() NEWROUTE len 52 type 24 flags 0x0000 seq 1400155625 pid -4225 connmand[30944]: src/ipconfig.c:__connman_ipconfig_newroute() index 3 connmand[30944]: src/service.c:service_route_changed() eth0 route changed connmand[30944]: src/ipconfig.c:__connman_ipconfig_append_ipv4() connmand[30944]: src/session.c:ipconfig_changed() service 0xd5110 ipconfig 0xd2a00 connmand[30944]: eth0 {add} route 0.0.0.0 gw 192.168.0.103 scope 0 <UNIVERSE> connmand[30944]: src/connection.c:connection_newgateway() index 3 gateway 192.168.0.103 connmand[30944]: src/connection.c:set_default_gateway() type 1 gateway ipv4 0xd4e30 ipv6 (nil) connmand[30944]: src/inet.c:__connman_inet_rtnl_open() fd 14 connmand[30944]: src/inet.c:__connman_inet_rtnl_talk() handle 0xbeffe58c len 44 connmand[30944]: src/inet.c:__connman_inet_rtnl_close() handle 0xbeffe58c connmand[30944]: src/service.c:__connman_service_indicate_default() service 0xd5110 state ready connmand[30944]: WEB: gweb/gweb.c:start_request() web 0xd5ae0 request /online/status.html from ipv4.connman.net connmand[30944]: WEB: gweb/gweb.c:process_send_buffer() web 0xd5ae0 status 1 bytes to write 111 bytes written 111 connmand[30944]: src/rtnl.c:rtnl_message() buf 0xbeffeba8 len 60 connmand[30944]: src/rtnl.c:rtnl_message() NEWROUTE len 60 type 24 flags 0x0000 seq 0 pid 0 connmand[30944]: src/ipconfig.c:__connman_ipconfig_newroute() index 3 connmand[30944]: eth0 {add} route 192.168.0.103 gw 192.168.0.103 scope 0 <UNIVERSE> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 bytes read 422 connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] <HTML><meta http-equiv="Cache-Control" content="no-cache"> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] <meta http-equiv="Pragma" content="no-cache"> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] <meta http-equiv="Expires" content="0"> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] <meta http-equiv="Content-Type" content= connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] "text/html; charset=iso-8859-1"> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] <script language="JavaScript" type="text/javascript"> connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] function go_now(){ window.location.href = connmand[30944]: WEB: gweb/gweb.c:received_data() web 0xd5ae0 [header] "http://www.mywifiext.net/index.htm";} Program received signal SIGSEGV, Segmentation fault. 0x45a74f60 in g_str_hash () from /usr/lib/libglib-2.0.so.0 Marcel -----Original Message----- From: connman [mailto:[email protected]] On Behalf Of Tomasz Bursztyka Sent: donderdag 15 mei 2014 13:05 To: [email protected] Subject: Re: Connman crashes when loosing network Hi Marcel, > I narrowed the problem down to this. > In function handle_multi_line (gweb.c:809) a call is made to > g_hash_table_lookup but session->result.last_key is NULL. > > (gdb) print session->result.last_key > $1 = (gchar *) 0x0 > > Is there anything I can do to help you guys further? Interesting. It would be nice to see the actual content it's parsing (which you can get in requesting the same url as wispr with wget) Might be a corner case we never stumble into. Anyway, I'll check the code Thanks, Tomasz _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
