From owner-freebsd-current@FreeBSD.ORG Tue Jun 27 13:34:51 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14D0816A406; Tue, 27 Jun 2006 13:34:51 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E1B43D72; Tue, 27 Jun 2006 13:34:48 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k5RDYkMx041748; Tue, 27 Jun 2006 17:34:47 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k5RDYkaI041747; Tue, 27 Jun 2006 17:34:46 +0400 (MSD) (envelope-from yar) Date: Tue, 27 Jun 2006 17:34:46 +0400 From: Yar Tikhiy To: Maxim Konovalov Message-ID: <20060627133446.GB40621@comp.chem.msu.su> References: <87fyhwf6z0.fsf@neva.vlink.ru> <20060627111334.GE36941@comp.chem.msu.su> <20060627171415.V87634@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060627171415.V87634@mp2.macomnet.net> User-Agent: Mutt/1.5.9i Cc: Denis Shaposhnikov , freebsd-current@freebsd.org, Gleb Smirnoff Subject: Re: broken stack trace (Was: carp kernel trap) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 13:34:51 -0000 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