Bug 242423 - netstat -rs is broken
Summary: netstat -rs is broken
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-04 12:53 UTC by Olivier Cochard
Modified: 2019-12-12 19:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Cochard freebsd_committer freebsd_triage 2019-12-04 12:53:57 UTC
# netstat -rs
rtstat: symbol not in namelist

Broken since some time, somewhere between r312663 and r334444 (need to bisec to reduce this large range).
Comment 1 Olivier Cochard freebsd_committer freebsd_triage 2019-12-04 13:43:36 UTC
The culprit commit is r323016.
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2019-12-04 15:49:25 UTC
https://reviews.freebsd.org/D22672 this should fix it can you confirm?
Comment 3 Olivier Cochard freebsd_committer freebsd_triage 2019-12-05 09:21:50 UTC
Yes it fixes it. Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-12-09 10:22:09 UTC
A commit references this bug:

Author: bapt
Date: Mon Dec  9 10:21:25 UTC 2019
New revision: 355554
URL: https://svnweb.freebsd.org/changeset/base/355554

Log:
  Fix: netstat -rs

  Routing statistics requires somes symbols that are only loaded when not running
  live. Load them only in that specific case

  PR:		242423
  Submitted by:	olivier
  MFC after:	3 days

Changes:
  head/usr.bin/netstat/main.c
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-12-12 19:17:36 UTC
A commit references this bug:

Author: bapt
Date: Thu Dec 12 19:17:26 UTC 2019
New revision: 355663
URL: https://svnweb.freebsd.org/changeset/base/355663

Log:
  MFC: r355554

  Fix: netstat -rs

  Routing statistics requires somes symbols that are only loaded when not running
  live. Load them only in that specific case

  PR:		242423
  Submitted by:	olivier

Changes:
_U  stable/12/
  stable/12/usr.bin/netstat/main.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-12-12 19:17:38 UTC
A commit references this bug:

Author: bapt
Date: Thu Dec 12 19:17:30 UTC 2019
New revision: 355664
URL: https://svnweb.freebsd.org/changeset/base/355664

Log:
  MFC: r355554

  Fix: netstat -rs

  Routing statistics requires somes symbols that are only loaded when not running
  live. Load them only in that specific case

  PR:		242423
  Submitted by:	olivier

Changes:
_U  stable/11/
  stable/11/usr.bin/netstat/main.c