From owner-freebsd-current@FreeBSD.ORG Thu Sep 29 13:18:49 2011 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 BD76D106566C; Thu, 29 Sep 2011 13:18:49 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from core.impulsive.hu (core.impulsive.hu [79.172.194.2]) by mx1.freebsd.org (Postfix) with ESMTP id 326598FC1C; Thu, 29 Sep 2011 13:18:49 +0000 (UTC) Received: by core.impulsive.hu (Postfix, from userid 143) id 4C02ADC0B6; Thu, 29 Sep 2011 13:19:43 +0000 (UTC) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by core.impulsive.hu (Postfix) with ESMTP id 6C09ADC0AE for ; Thu, 29 Sep 2011 13:19:40 +0000 (UTC) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 713C51A8BC3; Thu, 29 Sep 2011 13:16:25 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 6640410656B4; Thu, 29 Sep 2011 13:16:24 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0748106566B; Thu, 29 Sep 2011 13:16:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 3F1B98FC0C; Thu, 29 Sep 2011 13:16:16 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p8TDG9Gs055726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Sep 2011 16:16:10 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p8TDG9nd053020; Thu, 29 Sep 2011 16:16:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p8TDG9O7053019; Thu, 29 Sep 2011 16:16:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 29 Sep 2011 16:16:09 +0300 From: Kostik Belousov To: Alexandr Kovalenko Message-ID: <20110929131609.GP1511@deviant.kiev.zoral.com.ua> References: <20110929123011.GK1511@deviant.kiev.zoral.com.ua> <20110929124837.GM1511@deviant.kiev.zoral.com.ua> <20110929130058.GN1511@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="56t0w02+0hM6p4Ad" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: stable/9 r225827 i386 panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero X-BeenThere: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2011 13:18:49 -0000 --56t0w02+0hM6p4Ad Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 29, 2011 at 04:12:19PM +0300, Alexandr Kovalenko wrote: > 2011/9/29 Kostik Belousov : > > On Thu, Sep 29, 2011 at 03:51:53PM +0300, Alexandr Kovalenko wrote: > >> 2011/9/29 Kostik Belousov : > >> > On Thu, Sep 29, 2011 at 03:47:19PM +0300, Alexandr Kovalenko wrote: > >> >> On Thu, Sep 29, 2011 at 3:30 PM, Kostik Belousov wrote: > >> >> > On Thu, Sep 29, 2011 at 02:52:31PM +0300, Alexandr Kovalenko wrot= e: > >> >> >> Hello! > >> >> >> > >> >> >> I'm running 9.0-BETA3 (r225827) and now rebuilding all my 1215 p= orts > >> >> >> (I've upgraded from 8.2). I'm getting panic. Is it known > >> >> >> problem/already fixed somewhere? > > Do you use custom kernel config ? Is there a chance you have ZERO_COPY_= SOCKETS > > option enabled ? >=20 > Yes, ZERO_COPY_SOCKETS is there. Ok, this is the cause. Remove it. I asked for some additional data below, which you ignored, but I believe that I will not see anything new there, after we found the ZERO_COPY_SOCKETS in kernel config. >=20 >=20 >=20 > > > >> >> >> > >> >> >> FreeBSD mile.xxx.ua 9.0-BETA3 FreeBSD 9.0-BETA3 #0 r225827: Wed = Sep 28 > >> >> >> 17:11:17 EEST 2011 =9A =9A root@mile.xxx.ua:/usr/obj/usr/src/sys= /mile-9 > >> >> >> i386 > >> >> >> > >> >> >> Unread portion of the kernel message buffer: > >> >> >> panic: vm_page_unwire: page 0xc2a38dc8's wire count is zero > >> >> >> cpuid =3D 1 > >> >> >> Uptime: 16h6m53s > >> >> >> Physical memory: 1904 MB > >> >> >> Dumping 367 MB: 352 336 320 304 288 272 256 240 224 208 192 176 = 160 > >> >> >> 144 128 112 96 80 64 48 32 16 > >> >> >> > >> >> >> #0 =9Adoadump (textdump=3D1) at pcpu.h:244 > >> >> >> #1 =9A0xc071e5cb in kern_reboot (howto=3D260) > >> >> >> =9A =9A at /usr/src/sys/kern/kern_shutdown.c:442 > >> >> >> #2 =9A0xc071e82b in panic (fmt=3DVariable "fmt" is not available. > >> >> >> ) at /usr/src/sys/kern/kern_shutdown.c:607 > >> >> >> #3 =9A0xc0966903 in vm_page_unwire (m=3D0xc2a38dc8, activate=3D0) > >> >> >> =9A =9A at /usr/src/sys/vm/vm_page.c:1905 > >> >> > Please do "frame 2", then "p/x *m" and show the result. > >> >> > >> >> (kgdb) frame 2 > >> > frame 3, sorry. "p/x *(struct vm_page *)0xc2a38dc8" will do it as we= ll. > >> > >> (kgdb) frame 3 > >> #3 =9A0xc0966903 in vm_page_unwire (m=3D0xc2a38dc8, activate=3D0) at > >> /usr/src/sys/vm/vm_page.c:1905 > >> 1905 =9A =9A =9A =9A =9A =9A =9A =9A =9A =9Apanic("vm_page_unwire: pag= e %p's wire count is > >> zero", m); > >> (kgdb) p/x *(struct vm_page *)0xc2a38dc8 > >> $1 =3D {pageq =3D {tqe_next =3D 0xc2a38e10, tqe_prev =3D 0xc282a2b0}, = listq =3D > >> {tqe_next =3D 0xc2a38e10, tqe_prev =3D 0xc282a2b8}, left =3D 0x0, righ= t =3D > >> 0x0, object =3D 0xc5725770, pindex =3D 0xbd3, phys_addr =3D 0x56a32000= , md =3D > >> {pv_list =3D {tqh_first =3D 0xc3cc6418, tqh_last =3D 0xc3cc641c}, > >> =9A =9A pat_mode =3D 0x6}, queue =3D 0x1, segind =3D 0x2, hold_count = =3D 0x0, > >> order =3D 0xb, pool =3D 0x0, cow =3D 0x0, wire_count =3D 0x0, aflags = =3D 0x3, > >> flags =3D 0x0, oflags =3D 0x0, act_count =3D 0x5, busy =3D 0x0, valid = =3D 0xff, > >> dirty =3D 0xff} > > > > Please show the output of "p *(struct vm_object *)0xc5725770" from kgdb. > >> > >> > >> >> #2 =9A0xc071e82b in panic (fmt=3DVariable "fmt" is not available.) = at > >> >> /usr/src/sys/kern/kern_shutdown.c:607 > >> >> 607 =9A =9A =9A =9A =9A =9A kern_reboot(bootopt); > >> >> (kgdb) p/x *m > >> >> No symbol "m" in current context. > >> >> > >> >> > >> >> >> #4 =9A0xc0796b80 in vfs_vmio_release (bp=3D0xde8bcbf4) > >> >> >> =9A =9A at /usr/src/sys/kern/vfs_bio.c:1638 > >> >> >> #5 =9A0xc0798813 in getnewbuf (vp=3D0xc6ea3550, slpflag=3D0, slp= timeo=3D0, > >> >> >> =9A =9A size=3D16384, maxsize=3D16384, gbflags=3D0) at /usr/src/= sys/kern/vfs_bio.c:1949 > >> >> >> #6 =9A0xc0799f2a in getblk (vp=3D0xc6ea3550, blkno=3D2520, size= =3D16384, slpflag=3D0, > >> >> >> =9A =9A slptimeo=3D0, flags=3DVariable "flags" is not available. > >> >> >> ) at /usr/src/sys/kern/vfs_bio.c:2788 > >> >> >> #7 =9A0xc079d49c in cluster_rbuild (vp=3D0xc6ea3550, filesize=3D= 44505088, lbn=3D2520, > >> >> >> =9A =9A blkno=3D1209440, size=3D16384, run=3DVariable "run" is n= ot available. > >> >> >> ) at /usr/src/sys/kern/vfs_cluster.c:332 > >> >> >> #8 =9A0xc079e145 in cluster_read (vp=3D0xc6ea3550, filesize=3D44= 505088, > >> >> >> =9A =9A lblkno=3D2520, size=3D16384, cred=3D0x0, totread=3D1024,= seqcount=3D7, > >> >> >> =9A =9A bpp=3D0xf5824b60) at /usr/src/sys/kern/vfs_cluster.c:254 > >> >> >> #9 =9A0xc0934cf5 in ffs_read (ap=3D0xf5824bac) > >> >> >> =9A =9A at /usr/src/sys/ufs/ffs/ffs_vnops.c:514 > >> >> >> #10 0xc09ccb92 in VOP_READ_APV (vop=3D0xc0aa6a80, a=3D0xf5824bac) > >> >> >> =9A =9A at vnode_if.c:887 > >> >> >> #11 0xc07c1120 in vn_read (fp=3D0xc5474508, uio=3D0xf5824c48, > >> >> >> =9A =9A active_cred=3D0xc56a4d80, flags=3D1, td=3D0xc5b76b80) at= vnode_if.h:384 > >> >> >> #12 0xc076380e in dofileread (td=3D0xc5b76b80, fd=3D3, fp=3D0xc5= 474508, > >> >> >> =9A =9A auio=3D0xf5824c48, offset=3D41189376, flags=3D1) at file= .h:254 > >> >> >> #13 0xc07639f5 in kern_preadv (td=3D0xc5b76b80, fd=3D3, auio=3D0= xf5824c48, > >> >> >> =9A =9A offset=3D41189376) at /usr/src/sys/kern/sys_generic.c:288 > >> >> >> #14 0xc0763b0d in sys_pread (td=3D0xc5b76b80, uap=3D0xf5824cec) > >> >> >> =9A =9A at /usr/src/sys/kern/sys_generic.c:189 > >> >> >> #15 0xc09accf5 in syscall (frame=3D0xf5824d28) at subr_syscall.c= :131 > >> >> >> #16 0xc0996db1 in Xint0x80_syscall () > >> >> >> =9A =9A at /usr/src/sys/i386/i386/exception.s:266 > >> >> >> #17 0x00000033 in ?? () > >> >> >> Previous frame inner to this frame (corrupt stack?) > >> >> >> > >> >> >> -- > >> >> >> Alexandr Kovalenko > >> >> >> http://uafug.org.ua/ > >> >> >> _______________________________________________ > >> >> >> freebsd-stable@freebsd.org mailing list > >> >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable > >> >> >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@fre= ebsd.org" > >> >> > > >> >> > >> >> > >> >> > >> >> -- > >> >> Alexandr Kovalenko > >> >> http://uafug.org.ua/ > >> > > >> > >> > >> > >> -- > >> Alexandr Kovalenko > >> http://uafug.org.ua/ > > >=20 >=20 >=20 > --=20 > Alexandr Kovalenko > http://uafug.org.ua/ --56t0w02+0hM6p4Ad Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6Eb5kACgkQC3+MBN1Mb4gvRwCg0EmGY2HI9/QF5Xwo4WL5fQL1 hfgAnimj0o7GOi1DS5gh8Cfi7meqo5Fb =f7Jw -----END PGP SIGNATURE----- --56t0w02+0hM6p4Ad--