Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2006 17:34:46 +0400
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Maxim Konovalov <maxim@macomnet.ru>
Cc:        Denis Shaposhnikov <dsh@vlink.ru>, freebsd-current@freebsd.org, Gleb Smirnoff <glebius@freebsd.org>
Subject:   Re: broken stack trace (Was: carp kernel trap)
Message-ID:  <20060627133446.GB40621@comp.chem.msu.su>
In-Reply-To: <20060627171415.V87634@mp2.macomnet.net>
References:  <87fyhwf6z0.fsf@neva.vlink.ru> <20060627111334.GE36941@comp.chem.msu.su> <20060627171415.V87634@mp2.macomnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060627133446.GB40621>