]> The Tcpdump Group git mirrors - libpcap/commit
findalldevstest: fix SIGSEGV (Segmentation fault) on Travis (Linux build)
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 11 Feb 2015 15:27:50 +0000 (16:27 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 11 Feb 2015 15:27:50 +0000 (16:27 +0100)
commiteae5b3940c592a5c906ec8d94a945fae48d6cba4
tree971a8d3dff9b62eda3956cdf09b580ee08f60d50
parent8b8646a08d044f58bc1eb4897139efa15501e244
findalldevstest: fix SIGSEGV (Segmentation fault) on Travis (Linux build)

This occurs with 'venet0' interface.
The reason of the NULL pointer is currently unkown.
There is now a message:
    Warning: a->addr is NULL, skipping this address.

Context:
Linux: 2.6.32 x86_64

$ ip link
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/void

gdb trace:
--------------------------------------------------------------------------
venet0
        Loopback: no

Program received signal SIGSEGV, Segmentation fault.
0x0000000000403430 in ifprint (d=0x63e070) at ./tests/findalldevstest.c:69
69 switch(a->addr->sa_family)
--------------------------------------------------------------------------
.travis.yml
tests/findalldevstest.c