dhclient/route buggy under 5.1-RELEASE

From: Jesse Guardiani <jesse_at_wingnet.net>
Date: Wed, 20 Aug 2003 12:32:35 -0400
Just an FYI:

I've noticed some bugginess in dhclient or route under 5.1-RELEASE.
It seems to be tied to route handling somehow.

For example, last night I shut down my wi0 interface and
brought up my fxp0 interface using dhclient. For some reason,
ANYTHING that had to access the network would just "spin"
(for lack of a better word). CPU was at or near 98% _idle_,
but any programs that used the network were incredibly slow
to start (like, 30 minutes for LinNeighborhood, etc...).

I also ran netstat, and it "hung" after writing the field
descriptions to the terminal. Bringing my fxp0 interface
down would always solve the problem and all programs would
speed up again (but obviously they no longer had network
connectivity).

I solved the problem by killing dhclient, flushing my routes,
and adding my default route back in using 'route add'.

I ran ktrace on my mozilla process while all of this was
happening (the window hadn't appeared yet, but mozilla-bin
was running), and here is a sample of the kdump output:

------ BEGIN kdump OUTPUT ------
   946 mozilla-bin RET   sendto 28/0x1c
   946 mozilla-bin CALL  gettimeofday(0xbfbfde90,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  poll(0x8088000,0x1,0)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  poll(0x8088000,0x2,0x1388)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  gettimeofday(0x28875178,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  fstat(0xd,0xbfbfdda0)
   946 mozilla-bin RET   fstat 0
   946 mozilla-bin CALL  close(0xd)
   946 mozilla-bin RET   close 0
   946 mozilla-bin CALL  socket(0x2,0x2,0)
   946 mozilla-bin RET   socket 13/0xd
   946 mozilla-bin CALL  fcntl(0xd,0x3,0)
   946 mozilla-bin RET   fcntl 2
   946 mozilla-bin CALL  fcntl(0xd,0x4,0x6)
   946 mozilla-bin RET   fcntl 0
   946 mozilla-bin CALL  sendto(0xd,0xbfbfe130,0x1c,0,0x28956730,0x10)
   946 mozilla-bin GIO   fd 13 wrote 28 bytes
       "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0
        trevarthan\0\0\^A\0\^A"
   946 mozilla-bin RET   sendto 28/0x1c
   946 mozilla-bin CALL  gettimeofday(0xbfbfde90,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  poll(0x8088000,0x1,0)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  poll(0x8088000,0x2,0x1388)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  gettimeofday(0x28875178,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  fstat(0xd,0xbfbfdda0)
   946 mozilla-bin RET   fstat 0
   946 mozilla-bin CALL  close(0xd)
   946 mozilla-bin RET   close 0
   946 mozilla-bin CALL  socket(0x2,0x2,0)
   946 mozilla-bin RET   socket 13/0xd
   946 mozilla-bin CALL  fcntl(0xd,0x3,0)
   946 mozilla-bin RET   fcntl 2
   946 mozilla-bin CALL  fcntl(0xd,0x4,0x6)
   946 mozilla-bin RET   fcntl 0
   946 mozilla-bin CALL  sendto(0xd,0xbfbfe130,0x1c,0,0x28956740,0x10)
   946 mozilla-bin GIO   fd 13 wrote 28 bytes
       "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0
        trevarthan\0\0\^A\0\^A"
   946 mozilla-bin RET   sendto 28/0x1c
   946 mozilla-bin CALL  gettimeofday(0xbfbfde90,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  poll(0x8088000,0x1,0)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  poll(0x8088000,0x2,0x1388)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  gettimeofday(0x28875178,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  fstat(0xd,0xbfbfdda0)
   946 mozilla-bin RET   fstat 0
   946 mozilla-bin CALL  close(0xd)
   946 mozilla-bin RET   close 0
   946 mozilla-bin CALL  socket(0x2,0x2,0)
   946 mozilla-bin RET   socket 13/0xd
   946 mozilla-bin CALL  fcntl(0xd,0x3,0)
   946 mozilla-bin RET   fcntl 2
   946 mozilla-bin CALL  fcntl(0xd,0x4,0x6)
   946 mozilla-bin RET   fcntl 0
   946 mozilla-bin CALL  sendto(0xd,0xbfbfe130,0x1c,0,0x28956730,0x10)
   946 mozilla-bin GIO   fd 13 wrote 28 bytes
       "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0
        trevarthan\0\0\^A\0\^A"
   946 mozilla-bin RET   sendto 28/0x1c
   946 mozilla-bin CALL  gettimeofday(0xbfbfde90,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0xbfbfdeb0,0x1,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  poll(0x8088000,0x1,0)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  poll(0x8088000,0x2,0x2710)
   946 mozilla-bin RET   poll 0
   946 mozilla-bin CALL  gettimeofday(0x28875178,0)
   946 mozilla-bin RET   gettimeofday 0
   946 mozilla-bin CALL  kevent(0xc,0,0,0xbfbfdeb0,0x1,0xbfbfde00)
   946 mozilla-bin RET   kevent 0
   946 mozilla-bin CALL  fstat(0xd,0xbfbfdda0)
   946 mozilla-bin RET   fstat 0
   946 mozilla-bin CALL  close(0xd)
   946 mozilla-bin RET   close 0
   946 mozilla-bin CALL  socket(0x2,0x2,0)
   946 mozilla-bin RET   socket 13/0xd
   946 mozilla-bin CALL  fcntl(0xd,0x3,0)
   946 mozilla-bin RET   fcntl 2
   946 mozilla-bin CALL  fcntl(0xd,0x4,0x6)
   946 mozilla-bin RET   fcntl 0
   946 mozilla-bin CALL  sendto(0xd,0xbfbfe130,0x1c,0,0x28956740,0x10)
   946 mozilla-bin GIO   fd 13 wrote 28 bytes
       "\M-m\M-q\^A\0\0\^A\0\0\0\0\0\0
        trevarthan\0\0\^A\0\^A"
------ END kdump OUTPUT ------


I seem to remember someone else having trouble with
this same (or similar) thing a month or so ago.

Again, just an FYI. I'm not sure what caused it.



Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net
Received on Wed Aug 20 2003 - 07:32:55 UTC

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