Segmentation fault in netstat after r354373 -> r354373 update

From: David Wolfskill <david_at_catwhisker.org>
Date: Thu, 7 Nov 2019 04:36:55 -0800
(I haven't started to look for a culprit yet; thought I'd let folks know
about it first.  -- dhw)

g1-49(13.0-C)[1] uname -a
FreeBSD g1-49.catwhisker.org 13.0-CURRENT FreeBSD 13.0-CURRENT #514 r354436M/354436: Thu Nov  7 04:15:23 PST 2019     root_at_g1-49.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY  amd64
g1-49(13.0-C)[2] which netstat
/usr/bin/netstat
g1-49(13.0-C)[3] ls -lT `!!`
ls -lT `which netstat`
-r-xr-sr-x  1 root  kmem  160192 Nov  7 04:17:46 2019 /usr/bin/netstat
g1-49(13.0-C)[4] netstat -nr
Segmentation fault
g1-49(13.0-C)[5] sudo netstat -nr
Segmentation fault
g1-49(13.0-C)[6] sudo gdb `which netstat`
Password:
GNU gdb (GDB) 8.3.1 [GDB v8.3.1 for FreeBSD]
Copyright (C) 2019 Free Software Foundation, Inc.
...
Reading symbols from /usr/bin/netstat...
(No debugging symbols found in /usr/bin/netstat)
(gdb) run -nr
Starting program: /usr/bin/netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            172.17.0.1         UGS       wlan0
127.0.0.1          link#2             UH          lo0
172.17.0.0/16      link#3             U         wlan0
172.17.1.49        link#3             UHS         lo0

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               link#2                        UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         ::1                           UGRS        lo0
[Inferior 1 (process 1993) exited normally]


So...  Heisenbug?

No changes directly to netstat sources (in the r354373 - r354373
interval).  Looks as if libxo got a bit of an overhaul, though.

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
It's ... rich ... for Trump to accuse someone else of being a liar.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Thu Nov 07 2019 - 11:37:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC