Hi

Il 15/mag/2014 08:15 "Marcel Mulder" <mmul...@victronenergy.com> ha scritto:
>
> Hi,
>
> Does nobody know what is going when connman does an abort with signal 11?
It is reproducible en a very simple setup. It is a connection via a WiFi
extender from which the wireless connection is lost.
> I made a new build with HEAD e96a2cb241debd7a65971d30f28e903b9a1da49b but
that does not change anything.
>
> Help is much appreciated.
>

You can try to connect gdb and give a backtrace . we have done some testing
but we don't have this crashing.

Michael

> Cheers!
>
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {RX} 73 packets
10400 bytes
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {TX} 125 packets
19213 bytes
> May 12 07:40:20 CCGX user.info kernel: [  204.764953] libphy:
davinci_mdio-0:00 - Link is Down
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {update} flags
36867 <UP>
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {newlink} index 3
address 50:56:63:1D:05:AD mtu 1500
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {newlink} index 3
operstate 2 <DOWN>
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {del} address
192.168.0.101/24 label eth0
> May 12 07:40:20 CCGX daemon.info connmand[1123]: eth0 {del} route
192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
> May 12 07:40:30 CCGX daemon.info connmand[1123]: eth0 {RX} 73 packets
10400 bytes
> May 12 07:40:30 CCGX user.info kernel: [  214.767120] libphy:
davinci_mdio-0:00 - Link is Up - 100/Full
> May 12 07:40:30 CCGX daemon.info connmand[1123]: eth0 {TX} 125 packets
19213 bytes
> May 12 07:40:30 CCGX daemon.info connmand[1123]: eth0 {update} flags
102467 <UP,RUNNING,LOWER_UP>
> May 12 07:40:30 CCGX daemon.info connmand[1123]: eth0 {newlink} index 3
address 50:56:63:1D:05:AD mtu 1500
> May 12 07:40:30 CCGX daemon.info connmand[1123]: eth0 {newlink} index 3
operstate 6 <UP>
> May 12 07:40:30 CCGX daemon.warn connmand[1123]: Skipping disconnect of
carrier, network is connecting.
> May 12 07:40:34 CCGX daemon.info connmand[1123]: eth0 {add} address
192.168.0.128/24 label eth0 family 2
> May 12 07:40:34 CCGX daemon.info connmand[1123]: eth0 {add} route
192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
> May 12 07:40:34 CCGX daemon.info connmand[1123]: eth0 {add} route
192.168.0.103 gw 0.0.0.0 scope 253 <LINK>
> May 12 07:40:34 CCGX daemon.info connmand[1123]: eth0 {add} route 0.0.0.0
gw 192.168.0.103 scope 0 <UNIVERSE>
> May 12 07:40:34 CCGX daemon.info connmand[1123]: eth0 {add} route
192.168.0.103 gw 192.168.0.103 scope 0 <UNIVERSE>
> May 12 07:40:34 CCGX daemon.err connmand[1123]: Aborting (signal 11)
[/usr/sbin/connmand]
>
> -----Original Message-----
> From: connman [mailto:connman-boun...@connman.net] On Behalf Of Marcel
Mulder
> Sent: vrijdag 2 mei 2014 10:00
> To: connman@connman.net
> Subject: RE: Connman crashes when loosing network
>
> Hi Patrik,
>
> Thanks for the reply!
> I made a build with dd96d41ea182f0d1e0b55686adf793fa72e0e4d3 and started
it with 'CONNMAN_DHCP_DEBUG=1 connmand -n -d src/dhcp.c'
> Connman now stops with an abort signal 11 which I also have seen before.
Depending on what I do and how things are going (timing I presume) I see
signals 11 or seg faults.
> The log of this session is below starting from the beginning when connman
starts.
>
> Regards, Marcel
>
> root@CCGX:~# CONNMAN_DHCP_DEBUG=1 connmand -n -d src/dhcp.c
> connmand[1602]: Connection Manager version 1.23
> connmand[1602]: iptables support missing error 2 (No such file or
directory)
> connmand[1602]: Failed to flush table 'mangle': Invalid argument
> connmand[1602]: No IPv6 support
> connmand[1602]: No IPv6 support
> connmand[1602]: iptables support missing error 2 (No such file or
directory)
> connmand[1602]: Failed to install iptables rules: Invalid argument
> connmand[1602]: Checking loopback interface settings
> connmand[1602]: System hostname is CCGX
> connmand[1602]: System domainname is almere.victronenergy.local
> connmand[1602]: src/dhcp.c:__connman_dhcp_init()
> connmand[1602]: Failed to open RFKILL control device
> connmand[1602]: lo {newlink} index 1 operstate 0 <UNKNOWN>
> connmand[1602]: can0 {newlink} index 2 operstate 0 <UNKNOWN>
> connmand[1602]: eth0 {create} index 3 type 1 <ETHER>
> connmand[1602]: eth0 {RX} 312 packets 31884 bytes
> connmand[1602]: eth0 {TX} 133 packets 19049 bytes
> connmand[1602]: eth0 {update} flags 36866 <DOWN>
> connmand[1602]: eth0 {newlink} index 3 address 50:56:63:1D:05:AD mtu 1500
> connmand[1602]: eth0 {newlink} index 3 operstate 2 <DOWN>
> connmand[1602]: Adding interface eth0 [ ethernet ]
> connmand[1602]: eth0 {RX} 312 packets 31884 bytes
> connmand[1602]: eth0 {TX} 133 packets 19049 bytes
> connmand[1602]: eth0 {update} flags 36867 <UP>
> connmand[1602]: eth0 {newlink} index 3 address 50:56:63:1D:05:AD mtu 1500
> connmand[1602]: eth0 {newlink} index 3 operstate 2 <DOWN>
> connmand[1602]: eth0 {RX} 312 packets 31884 bytes
> connmand[1602]: eth0 {TX} 133 packets 19049 bytes
> connmand[1602]: eth0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
> connmand[1602]: eth0 {newlink} index 3 address 50:56:63:1D:05:AD mtu 1500
> connmand[1602]: eth0 {newlink} index 3 operstate 6 <UP>
> connmand[1602]: Skipping disconnect of carrier, network is connecting.
> connmand[1602]: src/dhcp.c:__connman_dhcp_start()
> connmand[1602]: src/dhcp.c:dhcp_request() dhcp 0xabb10
> connmand[1602]: DHCP index 3: switch listening mode (0 ==> 1)
> connmand[1602]: DHCP index 3: sending DHCP discover request
> connmand[1602]: DHCP index 3: received DHCP packet xid 0x0000 (current
state 0)
> connmand[1602]: DHCP index 3: start request (retries 0)
> connmand[1602]: DHCP index 3: sending DHCP request
> connmand[1602]: DHCP index 3: received DHCP packet xid 0x0000 (current
state 2)
> connmand[1602]: DHCP index 3: switch listening mode (1 ==> 0)
> connmand[1602]: src/dhcp.c:lease_available_cb() Lease available
> connmand[1602]: src/dhcp.c:lease_available_cb() last address 192.168.0.105
> connmand[1602]: src/dhcp.c:lease_available_cb() c_address (null)
> connmand[1602]: DHCP index 3: start bound
> connmand[1602]: DHCP index 3: processed DHCP packet (new state 3)
> connmand[1602]: eth0 {add} address 192.168.0.105/24 label eth0 family 2
> connmand[1602]: ntp: time slew +0.000561 s
> connmand[1602]: eth0 {add} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[1602]: eth0 {add} route 192.168.0.254 gw 0.0.0.0 scope 253 <LINK>
> connmand[1602]: eth0 {add} route 192.168.4.13 gw 192.168.0.254 scope 0
<UNIVERSE>
> connmand[1602]: eth0 {add} route 192.168.1.26 gw 192.168.0.254 scope 0
<UNIVERSE>
> connmand[1602]: eth0 {add} route 0.0.0.0 gw 192.168.0.254 scope 0
<UNIVERSE>
> connmand[1602]: eth0 {add} route 87.106.208.187 gw 192.168.0.254 scope 0
<UNIVERSE>
> connmand[1602]: eth0 {del} route 87.106.208.187 gw 192.168.0.254 scope 0
<UNIVERSE>
>
> // Connection with access point removed from here
>
> connmand[1602]: eth0 {RX} 371 packets 40285 bytes
> connmand[1602]: eth0 {TX} 220 packets 31048 bytes
> connmand[1602]: eth0 {update} flags 36867 <UP>
> connmand[1602]: eth0 {newlink} index 3 address 50:56:63:1D:05:AD mtu 1500
> connmand[1602]: eth0 {newlink} index 3 operstate 2 <DOWN>
> connmand[1602]: src/dhcp.c:__connman_dhcp_stop() network_table 0xa5f98
network 0xacc50
> connmand[1602]: src/dhcp.c:dhcp_release() dhcp 0xabb10
> connmand[1602]: DHCP index 3: sending DHCP release request
> connmand[1602]: src/dhcp.c:dhcp_invalidate() dhcp 0xabb10 callback 0
> connmand[1602]: src/dhcp.c:dhcp_invalidate() last address 192.168.0.105
> connmand[1602]: eth0 {del} address 192.168.0.105/24 label eth0
> connmand[1602]: eth0 {del} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[1602]: eth0 {RX} 371 packets 40285 bytes
> connmand[1602]: eth0 {TX} 220 packets 31048 bytes
> connmand[1602]: eth0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
> connmand[1602]: eth0 {newlink} index 3 address 50:56:63:1D:05:AD mtu 1500
> connmand[1602]: eth0 {newlink} index 3 operstate 6 <UP>
> connmand[1602]: Skipping disconnect of carrier, network is connecting.
> connmand[1602]: src/dhcp.c:__connman_dhcp_start()
> connmand[1602]: src/dhcp.c:dhcp_request() dhcp 0xab9d0
> connmand[1602]: DHCP index 3: switch listening mode (0 ==> 1)
> connmand[1602]: DHCP index 3: DHCP client start with state init_reboot
> connmand[1602]: DHCP index 3: sending DHCP request
> connmand[1602]: DHCP index 3: received DHCP packet xid 0x0000 (current
state 1)
> connmand[1602]: DHCP index 3: processed DHCP packet (new state 1)
> connmand[1602]: DHCP index 3: restart DHCP timeout
> connmand[1602]: DHCP index 3: restart DHCP (retries 0)
> connmand[1602]: DHCP index 3: sending DHCP discover request
> connmand[1602]: DHCP index 3: received DHCP packet xid 0x0000 (current
state 0)
> connmand[1602]: DHCP index 3: start request (retries 0)
> connmand[1602]: DHCP index 3: sending DHCP request
> connmand[1602]: DHCP index 3: received DHCP packet xid 0x0000 (current
state 2)
> connmand[1602]: DHCP index 3: switch listening mode (1 ==> 0)
> connmand[1602]: src/dhcp.c:lease_available_cb() Lease available
> connmand[1602]: src/dhcp.c:lease_available_cb() last address 192.168.0.128
> connmand[1602]: src/dhcp.c:lease_available_cb() c_address (null)
> connmand[1602]: DHCP index 3: start bound
> connmand[1602]: DHCP index 3: processed DHCP packet (new state 3)
> connmand[1602]: eth0 {add} address 192.168.0.128/24 label eth0 family 2
> connmand[1602]: eth0 {add} route 192.168.0.0 gw 0.0.0.0 scope 253 <LINK>
> connmand[1602]: eth0 {add} route 192.168.0.100 gw 0.0.0.0 scope 253 <LINK>
> connmand[1602]: eth0 {add} route 0.0.0.0 gw 192.168.0.100 scope 0
<UNIVERSE>
> connmand[1602]: eth0 {add} route 192.168.0.100 gw 192.168.0.100 scope 0
<UNIVERSE>
> connmand[1602]: Aborting (signal 11) [connmand]
>
> -----Original Message-----
> From: connman [mailto:connman-boun...@connman.net] On Behalf Of Patrik
Flykt
> Sent: vrijdag 2 mei 2014 7:55
> To: connman@connman.net
> Subject: Re: Connman crashes when loosing network
>
> On Thu, 2014-05-01 at 08:05 +0000, Marcel Mulder wrote:
> > I experience reproducible connman crashes with version v1.20, v1.21,
> > v1.22, v1.23 and HEAD of git. Older version I did not try.
>
> See if dd96d41ea182f0d1e0b55686adf793fa72e0e4d3 helps. At least it was an
attempt to solve a very similar sounding problem.
>
> When debugging this, run 'CONNMAN_DHCP_DEBUG=1 connmand -n -d src/dhcp.c'
so that all DHCP logs are available.
>
> Cheers,
>
>         Patrik
>
>
> _______________________________________________
> connman mailing list
> connman@connman.net
> https://lists.connman.net/mailman/listinfo/connman
> _______________________________________________
> connman mailing list
> connman@connman.net
> https://lists.connman.net/mailman/listinfo/connman
> _______________________________________________
> connman mailing list
> connman@connman.net
> https://lists.connman.net/mailman/listinfo/connman
_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to