From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041220 K-Meleon/0.9 Description of problem: When doing a netstat output of all active connections on a server, I am getting "warning, got duplicate tcp line." mixed in with the regular connection listings. See example: tcp 0 1 natasha.ahbl.org:64137 240.wfc.nycm.n54ny05r:32723 SYN_SENT tcp 0 1 natasha.ahbl.org:64227 12.111.132.186:33539 SYN_SENT tcp 0 1 natasha.ahbl.org:64146 178.muaab.cmbr.bstma0:32723 SYN_SENT warning, got duplicate tcp line. warning, got duplicate tcp line. warning, got duplicate tcp line. tcp 0 1 natasha.ahbl.org:64154 24.we1.phnx.ls3ca31ur:32723 SYN_SENT tcp 0 1 natasha.ahbl.org:64245 12.109.79.13:33539 SYN_SENT Possibly related to change made in bugzilla entry #139407, "Add filtering for duplicate entries in netstat". Version-Release number of selected component (if applicable): net-tools-1.60-42 How reproducible: Always Steps to Reproduce: 1. Run the command 'netstat' Additional info: Kernel is 2.6.9-ac11 (source extracted from Fedora Core devel kernel SRPM with misc patches included - will have to find the specific version of the release if you need it) on an AthlonXP 2000+
Well, this is the correct behaviour. The warning goes to stderr, so the workaround for you is to redir the stderr output somewhere else.
Is the any point to having the warning output? Is this indicative of a problem that needs to be fixed? If not, then they should be supressed by default, IMO.
That's true. I'm will probably move these messages to a system log rather than stderr.
Hmm, still experiencing this on latest FC3-kernel. What is the cause for this error? Sure not the error-output but the error is to be fixed :-)
The problem is in nonexistence of some kind of lock between the /proc/net file and netstat. So when there're rapid changes in /proc/net file, reading the input line by line causes line duplicates. So I won't clasify this as a kernel bug ..
Anyway, I've supressed the warning in next rawhide build - net-tools-1.60-52