broken stack trace (Was: carp kernel trap)
Yar Tikhiy
yar at comp.chem.msu.su
Tue Jun 27 13:34:51 UTC 2006
On Tue, Jun 27, 2006 at 05:17:15PM +0400, Maxim Konovalov wrote:
> Btw, Yar, while working on this panic I noticed the trace is not
> correct. gdb shows sin=0x0 but oviously it is not. Any ideas why?
>
> > #12 0xc054733a in carp_set_addr (sc=0xc115bc00, sin=0x0) at ../../../netinet/ip_carp.c:1439
> > ifp = (struct ifnet *) 0xc1291000
> > cif = (struct carp_if *) 0x6b5
> > ia = (struct in_ifaddr *) 0xc12a4500
> > ia_if = (struct in_ifaddr *) 0xc1291000
> > imo = (struct ip_moptions *) 0xc115bc0c
> > addr = {s_addr = 301990112}
> > iaddr = 3239427084
> > own = 0
> > error = -1066976812
It must be fallout from optimization by gcc. Alas, absolutely
reliable debugging of function arguments and automatic variables
is possible only after -O0 was specified explicitly to gcc, according
to my experience with gcc and gdb.
--
Yar
More information about the freebsd-current
mailing list