Kernel panics in tcp_twclose

Navdeep Parhar nparhar at gmail.com
Wed Sep 23 21:25:46 UTC 2015


On Wed, Sep 23, 2015 at 11:15:03PM +0200, Palle Girgensohn wrote:
...
> > By the way Palle could you also run below Dtrace script to see where
> > this tcp_close() in INP_TIMEWAIT comes from:
> > 
> > $ cat tcp-close-tw.d
> > fbt::tcp_close:entry
> > /args[0]->t_inpcb->inp_flags & 0x01000000/
> > {
> >  @s1[stack()] = count()
> > }
> > 
> > tick-1sec {
> > printa(@s1);
> > }
> > $ sudo dtrace -s tcp-close-tw.d
> 
> # dtrace -s tcp-close-tw.d
> dtrace: failed to compile script tcp-close-tw.d: line 2: t_inpcb is not a member of struct e1000_hw
> 
> > 
> 
> on one system...
> 
> and for the other two:
> 
> # dtrace -s tcp-close-tw.d
> dtrace: failed to initialize dtrace: DTrace device not available on system
> 
> I'm adding
> 
> options         KDTRACE_HOOKS
> 
> to the kernels, I guess that will help?

Load the DTrace modules ("kldload dtraceall") before trying to run the
DTrace script.

Regards,
Navdeep


More information about the freebsd-net mailing list