From owner-freebsd-current@FreeBSD.ORG Wed Jan 23 05:16:59 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 644D416A419 for ; Wed, 23 Jan 2008 05:16:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id EF4DC13C4E7 for ; Wed, 23 Jan 2008 05:16:58 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=skuns.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1JHXyn-000G4J-Hl for freebsd-current@freebsd.org; Wed, 23 Jan 2008 07:16:58 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id m0N5GVms046700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2008 07:16:32 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m0N5Gmwg069332; Wed, 23 Jan 2008 07:16:48 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m0N5GmcF069331; Wed, 23 Jan 2008 07:16:48 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 23 Jan 2008 07:16:48 +0200 From: Kostik Belousov To: Pawel Worach Message-ID: <20080123051648.GV57756@deviant.kiev.zoral.com.ua> References: <4792C32C.5010205@gmail.com> <20080122133835.GT57756@deviant.kiev.zoral.com.ua> <4796356D.9080809@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5HT6cwC5gT1+UL1y" Content-Disposition: inline In-Reply-To: <4796356D.9080809@gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Scanner-Signature: 9f090f397804869cf00fade203417d62 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 2032 [Jan 22 2008] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Cc: FreeBSD Current 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 05:16:59 -0000 --5HT6cwC5gT1+UL1y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > >>boot or in single-user mode the system panics. If I start it post-boot= =20 > >>it runs fine. This is on 8.0-CURRENT from about 12 hours ago, another= =20 > >>user also reported the same on RELENG_7. Any other information I can=20 > >>provide ? > >> > >>Fatal trap 12: page fault while in kernel mode > >>fault virtual address =3D 0x4 > >>fault code =3D supervisor read, page not present > >>instruction pointer =3D 0x20:0xc04d2ab4 > >>stack pointer =3D 0x28:0xe6499b18 > >>frame pointer =3D 0x28:0xe6499b80 > >>code segment =3D base 0x0, limit 0xfffff, type 0x1b > >> =3D DPL 0, pres 1, def32 1, gran 1 > >>processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > >>current process =3D 134 (console-kit-daemon) > >>Physical memory: 1014 MB > >>Dumping 43 MB: 28 12 > >> > >>#8 0xc07a34a2 in trap (frame=3D0xe6499ad8) at=20 > >>/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=3D0xc3b20d00, cmd=3D537163270, > >> data=3D0xe6499c70 "\002", flag=3D1, td=3D0xc3d3c880) > >> at /usr/src/sys/dev/syscons/syscons.c:1073 > >>#11 0xc051ed1a in giant_ioctl (dev=3D0xc3b20d00, cmd=3D537163270, > >> data=3D0xe6499c70 "\002", fflag=3D1, td=3D0xc3d3c880) > >> at /usr/src/sys/kern/kern_conf.c:349 > >>#12 0xc0598194 in cnioctl (dev=3D0xc3b20d00, cmd=3D537163270, > >> data=3D0xe6499c70 "\002", flag=3D1, td=3D0xc3d3c880) > >>---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. >=20 > 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 ? --5HT6cwC5gT1+UL1y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkeWzb8ACgkQC3+MBN1Mb4gERQCgxzckcYwfHQ4+BX6ioF8tD1qA kU4AoIcc468dCUN4lfhyBat8Fd7E58NG =VQR0 -----END PGP SIGNATURE----- --5HT6cwC5gT1+UL1y--