From owner-freebsd-current@FreeBSD.ORG Tue Sep 15 12:24:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25D5D10656CC for ; Tue, 15 Sep 2009 12:24:48 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id BFF648FC28 for ; Tue, 15 Sep 2009 12:24:47 +0000 (UTC) Received: from outgoing.leidinger.net (pD954FB25.dip.t-dialin.net [217.84.251.37]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id D0CB8844730; Tue, 15 Sep 2009 14:24:39 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id A3AFF145CDF; Tue, 15 Sep 2009 14:24:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1253017476; bh=H1NodqohmhLKuY3NSndij7PnDnSK8LO+c/QXRbM0Msw=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=drySYnRMp0qAomP7OeGFVnuFkSCcwrlK0R+2EtZkPgNxTadCWOJs3zwH1zvl71MdA Rfy8tJAVNqDIMxIoSnfr8GLFX+rAOoR2vqsUUGCg0WSf7bouYSvespSBYyEmz/U5wz 7ndB39Je/UgSEOz2RY5oRG7KdkFEeNN/hfnOcBpL3UIvqdUWy9MgLBO0JagQUscAoc actts08cYASoRQfMfQ2VlTmQb/3oh31B3yBkCZIA6TQ73utgVjhBQf9QVpCC1e1zKd 5QKTlh/H9KFEUYqCOR6vq8ok6vcSLpgEF7NrkaQ617he90P24YqSkYCZekdpKcvOKH brzpJE6jUVGqw== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n8FCOaWF014717; Tue, 15 Sep 2009 14:24:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 15 Sep 2009 14:24:35 +0200 Message-ID: <20090915142435.11915wlsxyt6d2g4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 15 Sep 2009 14:24:35 +0200 From: Alexander Leidinger To: Mel Flynn References: <200909142024.49226.mel.flynn+fbsd.current@mailing.thruhere.net> <20090915111431.GD47688@deviant.kiev.zoral.com.ua> <200909151403.50609.mel.flynn+fbsd.current@mailing.thruhere.net> In-Reply-To: <200909151403.50609.mel.flynn+fbsd.current@mailing.thruhere.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.3.3 / FreeBSD-8.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: D0CB8844730.EB04E X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.439, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1253622282.43226@hlDFfSuFOQQE2Yrw2XinFQ X-EBL-Spam-Status: No Cc: Kostik Belousov , freebsd-current@freebsd.org Subject: Re: Panic in kern_access 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, 15 Sep 2009 12:24:48 -0000 Quoting Mel Flynn (from Tue, 15 Sep 2009 14:03:50 +0200): > On Tuesday 15 September 2009 13:14:31 Kostik Belousov wrote: >> On Mon, Sep 14, 2009 at 08:24:49PM +0200, Mel Flynn wrote: >> > Hi, >> > >> > below some crash info. However, since kib@ made some fixes that seem >> > to relate to this, I shall rebuild my kernel with new sources. >> >> No my fixes were related to the issue, AFAIR. >> >> > At the time I was building various ports in a jail and asleep, so no >> > other contributing factors. >> > >> > panic: free: address 0xc62e0e00(0xc62e0000) has not been allocated. >> > >> > #0 doadump () at pcpu.h:246 >> > 246 pcpu.h: No such file or directory. >> > in pcpu.h >> > (kgdb) #0 doadump () at pcpu.h:246 >> > #1 0xc0642b57 in boot (howto=260) at >> > /usr/src/sys/kern/kern_shutdown.c:416 #2 0xc0642e49 in panic >> > (fmt=Variable "fmt" is not available. >> > ) at /usr/src/sys/kern/kern_shutdown.c:579 >> > #3 0xc062fcfe in free (addr=0x0, mtp=0xc091c330) >> > at /usr/src/sys/kern/kern_malloc.c:444 >> > #4 0xc063b018 in crfree (cr=0xc795ea80) at >> > /usr/src/sys/kern/kern_prot.c:1840 >> >> I want to see the output of >> p/x cr >> and >> p/x cr->cr_groups >> from the frame 4. > > (kgdb) p/x cr > $1 = 0xc795ea80 > (kgdb) p/x cr->cr_groups > $2 = 0xc62e0e00 > (kgdb) p/x *cr->cr_groups > $3 = 0x0 > (kgdb) p/x *cr > $4 = {cr_ref = 0x0, cr_uid = 0x0, cr_ruid = 0x0, cr_svuid = 0x0, > cr_ngroups = 0x2, > cr_rgid = 0x0, cr_svgid = 0x0, cr_uidinfo = 0xc5523380, > cr_ruidinfo = 0xc5523380, > cr_prison = 0xcc3a0800, cr_pspare = 0x0, cr_flags = 0x0, > cr_pspare2 = {0x0, 0x0}, > cr_label = 0x0, cr_audit = {ai_auid = 0xffffffff, ai_mask = > {am_success = 0x0, > am_failure = 0x0}, ai_termid = {at_port = 0x0, at_type = 0x4, > at_addr = {0x0, 0x0, > 0x0, 0x0}}, ai_asid = 0x0, ai_flags = 0x0}, cr_groups = 0xc62e0e00, > cr_agroups = 0x10} > > > Hmm, since this is in credentials, would it be relevant that I have > patched kern_jail.c > to allow /dev/io access? I don't touch credentials,though and X > wasn't running in the jail I would be very surprised if this is related. > at the crash time. Just in case, patch is below. I have a similar patch: http://www.leidinger.net/FreeBSD/current-patches/jail.diff This patch does not contain the necessary change to the DRI driver, currently (HEAD) it uses a generic priv, not a dedicated one like in my patch. When I tried the DRI stuff my system paniced, I hadn't time yet to investigate further. Did you trace hald/X to see what's the reason for the long startup time of X in a jail? Bye, Alexander. -- If a can of Alpo costs 38 cents, would it cost .50 in Dog Dollars? http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137