{"action":"created","issue":{"url":"https://api.github.com/repos/opencomputeproject/onie/issues/310","labels_url":"https://api.github.com/repos/opencomputeproject/onie/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/opencomputeproject/onie/issues/310/comments","events_url":"https://api.github.com/repos/opencomputeproject/onie/issues/310/events","html_url":"https://github.com/opencomputeproject/onie/issues/310","id":126622062,"number":310,"title":"crash in 'ip neigh'","user":{"login":"bittorf","id":198379,"avatar_url":"https://avatars.githubusercontent.com/u/198379?v=3","gravatar_id":"","url":"https://api.github.com/users/bittorf","html_url":"https://github.com/bittorf","followers_url":"https://api.github.com/users/bittorf/followers","following_url":"https://api.github.com/users/bittorf/following{/other_user}","gists_url":"https://api.github.com/users/bittorf/gists{/gist_id}","starred_url":"https://api.github.com/users/bittorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bittorf/subscriptions","organizations_url":"https://api.github.com/users/bittorf/orgs","repos_url":"https://api.github.com/users/bittorf/repos","events_url":"https://api.github.com/users/bittorf/events{/privacy}","received_events_url":"https://api.github.com/users/bittorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-14T10:18:39Z","updated_at":"2016-01-14T23:29:42Z","closed_at":null,"body":"see http://lists.busybox.net/pipermail/busybox/2016-January/083789.html\r\n\r\n```\r\n\r\nroot at box:~ ip neigh show dev br-mastergate\r\nSegmentation fault\r\n\r\nbut this works:\r\n\r\nroot at box:~ ip neigh show | grep 'br-mastergate'\r\n192.168.100.111 dev br-mastergate lladdr e8:de:27:fb:ea:c9 used 0/0/0 probes 6 FAILED\r\n192.168.2.104 dev br-mastergate lladdr 10:6f:3f:0e:31:8f used 0/0/0 probes 6 FAILED\r\n10.35.50.168 dev br-mastergate lladdr 78:d6:f0:45:eb:55 used 0/0/0 probes 0 STALE\r\n10.185.73.139 dev br-mastergate lladdr 78:d6:f0:45:eb:55 used 0/0/0 probes 0 STALE\r\n169.254.123.93 dev br-mastergate lladdr 00:21:00:ce:c5:8f used 0/0/0 probes 0 STALE\r\n192.168.178.37 dev br-mastergate lladdr c4:0a:cb:bc:04:70 used 0/0/0 probes 6 FAILED\r\n192.168.23.75 dev br-mastergate lladdr 64:09:80:7a:e7:93 used 0/0/0 probes 6 FAILED\r\n192.168.111.21 dev br-mastergate lladdr 64:70:02:d3:24:0b used 0/0/0 probes 6 FAILED\r\n192.168.2.61 dev br-mastergate lladdr f4:ec:38:9d:86:36 ref 1 used 0/0/0 probes 4 INCOMPLETE\r\nfe80::7ad6:f0ff:fe45:eb55 dev br-mastergate lladdr 78:d6:f0:45:eb:55 used 0/0/0 probes 0 STALE\r\n\r\nalso another 'real' interface (e.g. wlan1) works without issues,\r\nthe 'br-mastergate' is a bridge. (_maybe_ this is the culprit)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/opencomputeproject/onie/issues/comments/171816206","html_url":"https://github.com/opencomputeproject/onie/issues/310#issuecomment-171816206","issue_url":"https://api.github.com/repos/opencomputeproject/onie/issues/310","id":171816206,"user":{"login":"cbrune","id":344659,"avatar_url":"https://avatars.githubusercontent.com/u/344659?v=3","gravatar_id":"","url":"https://api.github.com/users/cbrune","html_url":"https://github.com/cbrune","followers_url":"https://api.github.com/users/cbrune/followers","following_url":"https://api.github.com/users/cbrune/following{/other_user}","gists_url":"https://api.github.com/users/cbrune/gists{/gist_id}","starred_url":"https://api.github.com/users/cbrune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbrune/subscriptions","organizations_url":"https://api.github.com/users/cbrune/orgs","repos_url":"https://api.github.com/users/cbrune/repos","events_url":"https://api.github.com/users/cbrune/events{/privacy}","received_events_url":"https://api.github.com/users/cbrune/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T23:29:42Z","updated_at":"2016-01-14T23:29:42Z","body":"It seems the main difference between the two cases is when \"dev br-mastergate\" is specified to the query the following call is made:\r\n```\r\n\tif (filter_dev)  {\r\n\t\tif ((G_filter.index = xll_name_to_index(filter_dev)) == 0) {\r\n\t\t\tbb_error_msg_and_die(bb_msg_invalid_arg,\r\n\t\t\t\t\t     filter_dev, \"Cannot find device\");\r\n\t\t}\r\n\t}\r\n```\r\n\r\nCould xll_name_to_index() be corrupting something....\r\n\r\nIn print_neigh() `G_filter.index` is checked in order to determine whether or not print the result."}}