  justin Australian join:1999-05-28 Brooklyn, NY
Host: IPv6 Business Connectiv.. Home/Office setup .. Console/Handheld g.. Console Tech
| netstat segmentation fault
Is this still the current net-tools?
»www.tazenda.demon.co.uk/phil/net-tools/
Because version 1.60 netstat segmentation faults on more than one of our boxes, and the way I fix it is to edit netstat.c and change "int inode" to "unsigned int inode" in the three places that is used, and recompile.
It coredumps because the hash function hashes a negative inode number to a negative hash array number.
I'm writing this because I spent quite a while googling for the problem and while I saw a number of posts complaining about core dumping netstat I never saw a post explaining the reason. |
|
  BeesTea Network Janitor Premium,VIP join:2003-03-08 00000
| It is the most recent. There's a few patches out there that distros are applying though. Some for 2.6 systems, gcc3.4 and some others.
Perhaps the problem you're seeing is fixed by one of those. -- Captain of the ATU Tux Racer Clan. |
|