Date: Thu, 29 Sep 2011 16:20:01 +0300 From: Alexandr Kovalenko <alexandr.kovalenko@gmail.com> To: Kostik Belousov <kostikbel@gmail.com> 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 Message-ID: <CAJDksDS4HKtCdkAcQzwZH%2BdNf4enEpjN-MX1DjC=_rc3annb_w@mail.gmail.com> In-Reply-To: <20110929131609.GP1511@deviant.kiev.zoral.com.ua> References: <CAJDksDQF1cdzy55ApzAUVmTMQdqoDGPirtT-4YZge8QMjOoN_A@mail.gmail.com> <20110929123011.GK1511@deviant.kiev.zoral.com.ua> <CAJDksDRHihwL5RBcjx=CmFbE8OGMLTBk8UuB2xXYdAOi3kUVDw@mail.gmail.com> <20110929124837.GM1511@deviant.kiev.zoral.com.ua> <CAJDksDQi1To_LYd63%2BZ2vhnKAXwRZzE7VVshsDAOW%2BM=_PzicA@mail.gmail.com> <20110929130058.GN1511@deviant.kiev.zoral.com.ua> <CAJDksDQKVo3da07wB57M8Hy3f7-cpdGNqfkz27pCh3hK7Ttxhw@mail.gmail.com> <20110929131609.GP1511@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/29 Kostik Belousov <kostikbel@gmail.com>: > On Thu, Sep 29, 2011 at 04:12:19PM +0300, Alexandr Kovalenko wrote: >> 2011/9/29 Kostik Belousov <kostikbel@gmail.com>: >> > On Thu, Sep 29, 2011 at 03:51:53PM +0300, Alexandr Kovalenko wrote: >> >> 2011/9/29 Kostik Belousov <kostikbel@gmail.com>: >> >> > On Thu, Sep 29, 2011 at 03:47:19PM +0300, Alexandr Kovalenko wrote: >> >> >> On Thu, Sep 29, 2011 at 3:30 PM, Kostik Belousov <kostikbel@gmail.= com> wrote: >> >> >> > On Thu, Sep 29, 2011 at 02:52:31PM +0300, Alexandr Kovalenko wro= te: >> >> >> >> Hello! >> >> >> >> >> >> >> >> I'm running 9.0-BETA3 (r225827) and now rebuilding all my 1215 = ports >> >> >> >> (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 ? >> >> Yes, ZERO_COPY_SOCKETS is there. > Ok, this is the cause. Remove it. So, ZERO_COPY_SOCKETS is broken? > 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_SOCK= ETS > in kernel config. Sorry, didn't noticed that. (kgdb) p *(struct vm_object *)0xc5725770 $1 =3D {mtx =3D {lock_object =3D {lo_name =3D 0xc0a3f26a "vm object", lo_fl= ags =3D 21168128, lo_data =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 4}, object_l= ist =3D {tqe_next =3D 0xc5725110, tqe_prev =3D 0xc61714dc}, shadow_head =3D {lh_first =3D 0x0}, shadow_list =3D {le_next =3D 0xc5af0c38, le_prev =3D 0xc11ac704}, memq =3D {tqh_first =3D 0xc2dc5168, tqh_last = =3D 0xc1719718}, root =3D 0xc2cf2fe8, size =3D 6576, generation =3D 1, ref_coun= t =3D 1, shadow_count =3D 0, memattr =3D 6 '\006', type =3D 1 '\001', flags = =3D 12288, pg_color =3D 45335, paging_in_progress =3D 0, resident_page_count =3D 6202, backing_object =3D 0x0, backing_object_offset =3D 0, pager_object_list =3D {tqe_next =3D 0x0, tqe_prev =3D 0x0}, rvq =3D {lh_first =3D 0x0}, cache =3D 0xc18f2390, handle= =3D 0x0, un_pager =3D {vnp =3D {vnp_size =3D 66}, devp =3D {devp_pglist =3D {tqh_first =3D 0x42, tqh_last =3D 0x0}}, sgp =3D {sgp_pglist =3D {tqh_first =3D 0x42, tqh_last =3D 0x0}}, swp =3D {swp_bcount =3D 66}}, cred =3D 0xc56a4280, char= ge =3D 26935296} > >> >> >> >> > >> >> >> >> >> >> >> >> FreeBSD mile.xxx.ua 9.0-BETA3 FreeBSD 9.0-BETA3 #0 r225827: Wed= Sep 28 >> >> >> >> 17:11:17 EEST 2011 =A0 =A0 root@mile.xxx.ua:/usr/obj/usr/src/sy= s/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 =A0doadump (textdump=3D1) at pcpu.h:244 >> >> >> >> #1 =A00xc071e5cb in kern_reboot (howto=3D260) >> >> >> >> =A0 =A0 at /usr/src/sys/kern/kern_shutdown.c:442 >> >> >> >> #2 =A00xc071e82b in panic (fmt=3DVariable "fmt" is not availabl= e. >> >> >> >> ) at /usr/src/sys/kern/kern_shutdown.c:607 >> >> >> >> #3 =A00xc0966903 in vm_page_unwire (m=3D0xc2a38dc8, activate=3D= 0) >> >> >> >> =A0 =A0 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 w= ell. >> >> >> >> (kgdb) frame 3 >> >> #3 =A00xc0966903 in vm_page_unwire (m=3D0xc2a38dc8, activate=3D0) at >> >> /usr/src/sys/vm/vm_page.c:1905 >> >> 1905 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0panic("vm_page_unwire: pa= ge %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, rig= ht =3D >> >> 0x0, object =3D 0xc5725770, pindex =3D 0xbd3, phys_addr =3D 0x56a3200= 0, md =3D >> >> {pv_list =3D {tqh_first =3D 0xc3cc6418, tqh_last =3D 0xc3cc641c}, >> >> =A0 =A0 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 kgd= b. >> >> >> >> >> >> >> #2 =A00xc071e82b in panic (fmt=3DVariable "fmt" is not available.)= at >> >> >> /usr/src/sys/kern/kern_shutdown.c:607 >> >> >> 607 =A0 =A0 =A0 =A0 =A0 =A0 kern_reboot(bootopt); >> >> >> (kgdb) p/x *m >> >> >> No symbol "m" in current context. >> >> >> >> >> >> >> >> >> >> #4 =A00xc0796b80 in vfs_vmio_release (bp=3D0xde8bcbf4) >> >> >> >> =A0 =A0 at /usr/src/sys/kern/vfs_bio.c:1638 >> >> >> >> #5 =A00xc0798813 in getnewbuf (vp=3D0xc6ea3550, slpflag=3D0, sl= ptimeo=3D0, >> >> >> >> =A0 =A0 size=3D16384, maxsize=3D16384, gbflags=3D0) at /usr/src= /sys/kern/vfs_bio.c:1949 >> >> >> >> #6 =A00xc0799f2a in getblk (vp=3D0xc6ea3550, blkno=3D2520, size= =3D16384, slpflag=3D0, >> >> >> >> =A0 =A0 slptimeo=3D0, flags=3DVariable "flags" is not available= . >> >> >> >> ) at /usr/src/sys/kern/vfs_bio.c:2788 >> >> >> >> #7 =A00xc079d49c in cluster_rbuild (vp=3D0xc6ea3550, filesize= =3D44505088, lbn=3D2520, >> >> >> >> =A0 =A0 blkno=3D1209440, size=3D16384, run=3DVariable "run" is = not available. >> >> >> >> ) at /usr/src/sys/kern/vfs_cluster.c:332 >> >> >> >> #8 =A00xc079e145 in cluster_read (vp=3D0xc6ea3550, filesize=3D4= 4505088, >> >> >> >> =A0 =A0 lblkno=3D2520, size=3D16384, cred=3D0x0, totread=3D1024= , seqcount=3D7, >> >> >> >> =A0 =A0 bpp=3D0xf5824b60) at /usr/src/sys/kern/vfs_cluster.c:25= 4 >> >> >> >> #9 =A00xc0934cf5 in ffs_read (ap=3D0xf5824bac) >> >> >> >> =A0 =A0 at /usr/src/sys/ufs/ffs/ffs_vnops.c:514 >> >> >> >> #10 0xc09ccb92 in VOP_READ_APV (vop=3D0xc0aa6a80, a=3D0xf5824ba= c) >> >> >> >> =A0 =A0 at vnode_if.c:887 >> >> >> >> #11 0xc07c1120 in vn_read (fp=3D0xc5474508, uio=3D0xf5824c48, >> >> >> >> =A0 =A0 active_cred=3D0xc56a4d80, flags=3D1, td=3D0xc5b76b80) a= t vnode_if.h:384 >> >> >> >> #12 0xc076380e in dofileread (td=3D0xc5b76b80, fd=3D3, fp=3D0xc= 5474508, >> >> >> >> =A0 =A0 auio=3D0xf5824c48, offset=3D41189376, flags=3D1) at fil= e.h:254 >> >> >> >> #13 0xc07639f5 in kern_preadv (td=3D0xc5b76b80, fd=3D3, auio=3D= 0xf5824c48, >> >> >> >> =A0 =A0 offset=3D41189376) at /usr/src/sys/kern/sys_generic.c:2= 88 >> >> >> >> #14 0xc0763b0d in sys_pread (td=3D0xc5b76b80, uap=3D0xf5824cec) >> >> >> >> =A0 =A0 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 () >> >> >> >> =A0 =A0 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@fr= eebsd.org" >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Alexandr Kovalenko >> >> >> http://uafug.org.ua/ >> >> > >> >> >> >> >> >> >> >> -- >> >> Alexandr Kovalenko >> >> http://uafug.org.ua/ >> > >> >> >> >> -- >> Alexandr Kovalenko >> http://uafug.org.ua/ > > > --=20 Alexandr Kovalenko http://uafug.org.ua/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJDksDS4HKtCdkAcQzwZH%2BdNf4enEpjN-MX1DjC=_rc3annb_w>