From owner-freebsd-current@FreeBSD.ORG Wed Jan 23 19:35:05 2008 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 7F9F516A417 for ; Wed, 23 Jan 2008 19:35:05 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 0F10713C4D5 for ; Wed, 23 Jan 2008 19:35:01 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so667789nfb.33 for ; Wed, 23 Jan 2008 11:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=N02I746i7e9Y9C1LZTjX2xBBabVCjhz0UgqhYf849LE=; b=KGPhMao6KGen9q9B+8Gn1LUrc1JYyDoxzd4ITdcnp/3QVPtR8xWTCX7YVdYDlz/RDHQpfmtddZ9CqzjIE3oGerfGyCp1zwbjplS9fiu6pkI7B7uKSq5X+cX8ec3ZygdujwBCRfLEdsqGV63OqKqAWfs3zbgkiTSuEFqU0awun10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Sn+OFIgNYRvMXp9LkQI01ZOefnNUpRjeWZOeYFI6cgaM7zp8YzppqBYrc6sYw4R77LDwkbHS6gg1VfZruNqbtASJcTQ7nX73UGULzlrpJwasQ61c507EB6W6ZkwoZEm6WHTeD+iB690hYSEwODC7YKXDH/mVN3yNoPxw8jyLMCQ= Received: by 10.78.171.20 with SMTP id t20mr13954052hue.41.1201116899865; Wed, 23 Jan 2008 11:34:59 -0800 (PST) Received: from ?192.168.10.200? ( [90.227.56.82]) by mx.google.com with ESMTPS id c9sm18545875nfi.16.2008.01.23.11.34.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Jan 2008 11:34:58 -0800 (PST) Message-ID: <479796E1.4000500@gmail.com> Date: Wed, 23 Jan 2008 20:34:57 +0100 From: Pawel Worach User-Agent: Thunderbird 2.0.0.9 (X11/20080119) MIME-Version: 1.0 To: Kostik Belousov References: <4792C32C.5010205@gmail.com> <20080122133835.GT57756@deviant.kiev.zoral.com.ua> <4796356D.9080809@gmail.com> <20080123051648.GV57756@deviant.kiev.zoral.com.ua> In-Reply-To: <20080123051648.GV57756@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , Joe Marcus Clarke Subject: Re: page fault panic in scioctl and console-kit-daemon 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: Wed, 23 Jan 2008 19:35:05 -0000 Kostik Belousov wrote: > On Tue, Jan 22, 2008 at 07:26:53PM +0100, Pawel Worach wrote: >> Kostik Belousov wrote: >>> On Sun, Jan 20, 2008 at 04:42:36AM +0100, Pawel Worach wrote: >>>> Hi, >>>> >>>> While starting console-kit-daemon (sysutils/consolekit 0.2.3) during >>>> boot or in single-user mode the system panics. If I start it post-boot >>>> it runs fine. This is on 8.0-CURRENT from about 12 hours ago, another >>>> user also reported the same on RELENG_7. Any other information I can >>>> provide ? >>>> >>>> Fatal trap 12: page fault while in kernel mode >>>> fault virtual address = 0x4 >>>> fault code = supervisor read, page not present >>>> instruction pointer = 0x20:0xc04d2ab4 >>>> stack pointer = 0x28:0xe6499b18 >>>> frame pointer = 0x28:0xe6499b80 >>>> code segment = base 0x0, limit 0xfffff, type 0x1b >>>> = DPL 0, pres 1, def32 1, gran 1 >>>> processor eflags = interrupt enabled, resume, IOPL = 0 >>>> current process = 134 (console-kit-daemon) >>>> Physical memory: 1014 MB >>>> Dumping 43 MB: 28 12 >>>> >>>> #8 0xc07a34a2 in trap (frame=0xe6499ad8) at >>>> /usr/src/sys/i386/i386/trap.c:489 >>>> #9 0xc079183b in calltrap () at /usr/src/sys/i386/i386/exception.s:146 >>>> #10 0xc04d2ab4 in scioctl (dev=0xc3b20d00, cmd=537163270, >>>> data=0xe6499c70 "\002", flag=1, td=0xc3d3c880) >>>> at /usr/src/sys/dev/syscons/syscons.c:1073 >>>> #11 0xc051ed1a in giant_ioctl (dev=0xc3b20d00, cmd=537163270, >>>> data=0xe6499c70 "\002", fflag=1, td=0xc3d3c880) >>>> at /usr/src/sys/kern/kern_conf.c:349 >>>> #12 0xc0598194 in cnioctl (dev=0xc3b20d00, cmd=537163270, >>>> data=0xe6499c70 "\002", flag=1, td=0xc3d3c880) >>>> ---Type to continue, or q to quit--- >>>> at /usr/src/sys/kern/tty_cons.c:521 >>> Unless the virtual screen is opened, the screen state scr_stat structure >>> is not allocated. The following patch would fix the panic, but I do not >>> know how the console-kit would react to the ENXIO from the >>> VT_WAITACTIVE ioctl. Please, test it. >> Thanks! The patch works. > > To clarify: do you see any problems with the console-kit after the patch ? > In particular, can you verify that the program functions correctly, esp. > on the virtual terminals 1, 2 ... , whatever this means ? The panic is of course gone, while chatting a bit with Marcus (CCd) it looks like console-kit does not do any error handling at all. I've not looked at what c-k does so maybe Marcus can answer the question better. Regards -- Pawel