[c-nsp] debugging stack corruption

bill fumerola billf at mu.org
Tue Aug 19 14:49:43 EDT 2008


On Tue, Aug 19, 2008 at 10:41:05AM -0400, Rodney Dunn wrote:
> How are you getting this output?

ssh rtr1
en
sh stacks

> If you ssh/telnet to it and run the command do you get th esame output?

it is not signal noise (serial spew, ip corruption, etc).

> That's not stack corruption to me.

i'll try and profile the exec process, but i'm not so good w/ profiling
and tracing w/o at least symbols.

there is also the matter of the 30% solid EXEC process. however, the
switch that device is attached to (both in network and by serial via
rtr1:aux<>sw1:cons) is exhibiting the same behavior. it could be a feedback
loop on the serial connection, but i've tried turning all of that down
and still no relief. the jump occurred to both at the same time.

it could just be corruption in the display, but the CPU spike is what
made me investigate in the first place.

-- bill

> > rtr1#show stacks
> > Minimum process stacks:
> >  Free/Size   Name
[...]
> >  3360/6000
> > d^\ytd^[^P^Ld^\zTd^[`Dd^[I$d^\^[Td^[T^Dd^\y^Dd^\^P<d^[@Td^[p<d^\^B,d^\^Sld^\^@dd^\dtd^\f4d^\eDd^\g^Dd^\eTd^\c^Td^\f$d^\ddd^\g^Td^[e\d^[NTd^[)$d^[pLd^[|^\d^\
> > ,d^[mdd^\^Nld^\
> > dd^[	4d^[Q<d^[^V^\d^\1dd^[1<d^[O4d^[|Dd^\^P<d^[^Ydd^[e\d^[)$d^[NTd^[
> > 4d^[1^Dd^[`Td^[{td^[^E^\d^[m<d^[^Z^Ld^[8<d^[}^Dd^[j^\d^\^Q|d^[x^\d^[u^\d^\
> > ,d^\^ALd^[jTd^[pLd^[|^\d^[~td^[^D,d^[RDd^ld^[x$d^[^^Dd^[ptd^[^Bld^[^QLd^[^Q\d^[
> > ld^[zdd^\,$d^[ttd^[^Vdd^[iLd^[^X\d^[)4d^\34d^[v$d^[^VTd^\^Ptd^^\d^[{Dd^[R|d^\^Q^\d^[`^Ld^[]^Ld^\
> > ,d^[^R^Dd^[^Fld^[\d^[b^Td^[^LDd^\^P^Dd^[^B4d^[^NLd^[^Y,d^[^Kdd^\
>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\ld^^Td^\d^\	<d^\
> > ^Dd^Ld^$d^[,d^[dd^[^\d^[Td^\
> > 10468/12000  HSRP (Standby)
> > 
> > Interrupt level stacks:
> > Level    Called Unused/Size  Name
> >   1  2648551315   6280/9000  Network interfaces
> >   2           0   9000/9000  DMA/Timer Interrupt
> >   3      185107   7472/9000  PA Management Int Handler
> >   4  1715750501   8444/9000  Console Uart
> >   5           0   9000/9000  OIR/Error Interrupt
> >   7  3207930022   8532/9000  NMI Interrupt Handler
> > 
> > Spurious interrupts: 233
> > rtr1#
> > 
> > and on a different router:
> > 
> > rtr1.chi#sh stacks
> > Minimum process stacks:
> >  Free/Size   Name
> > [....]
> >  3500/6000  
> >  7160/9000    5,<$/jDSw_h 5,< 5,< 5,< 5,< 5,< d(X d(X 5,< 5,< 5,< 5,<
> > 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< d'X 5,<
> > 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,<
> > 5,< 5,<V7;@ 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,<Vo^BT 5,<
> > 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,<
> > 5,< 5,< 5,< 5,< 5,< 5,<Q6mT 5,< 5,< 5,< 5,< 5,< 5,< 5,<
> > 5,<#^Qz|#^Qy|#^Qy| 5,<#^Qx|#^Qx| 5,<%Dtx%Dtx%Dtx%Dtx%Dsx%Dsx%Dsx%Dsx 5,<
> > 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,<
> > 5,< 5,<%Dsx 5,< 5,< 5,<%Drx 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,< 5,<
> > 5,<#^Qw|#^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