Date: Sat, 20 Nov 2004 19:51:18 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Xin LI <delphij@frontfree.net> Cc: Xin LI <delphij@FreeBSD.org> Subject: Re: kern/72539: Panic: vm_page_remove(): page not found in hash Message-ID: <20041120195118.GA793@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20041115085240.GA3759@frontfree.net> References: <200411120350.iAC3o8xF072944@freefall.freebsd.org> <20041114174352.GA876@happy-idiot-talk.infracaninophile.co.uk> <20041115085240.GA3759@frontfree.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Mon, Nov 15, 2004 at 04:52:40PM +0800, Xin LI wrote: > Hi, Matthew, > > Would you please have INVARIANTS and INVARIANT_SUPPORT in your > kernel configuration and try again? I think it would be helpful > for us to figure out what was happening. > > In addition, Matt Dillon has suggested[1] that you run his vmpageinfo > program on the dump, please have a try. > > [1] http://lists.freebsd.org/pipermail/freebsd-hackers/2004-November/008954.html > Right. I've now had a chance to compile up a kernel with INVARIANTS and INVARIANT_SUPPORT. This doesn't include the vm_page.c patch you sent me. I still get a crash from running my nasty perl code, but this time, it's on a page fault. Dillon's vmpageinfo program doesn't produce any interesting output: % sudo ~/src/vm_page_remove.crash/vmpageinfo -N kernel.31 -M vmcore.31 -d Password: page 131042 index 262143 Here's a backtrace: Script started on Sat Nov 20 19:41:38 2004 Password: GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf IdlePTD at physical address 0x00979000 initial pcb at physical address 0x003a7ee0 panicstr: page fault panic messages: --- panic: double fault syncing disks... kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address = 0x30 fault code = supervisor read, page not present instruction pointer = 0x8:0xc02581d4 stack pointer = 0x10:0xc03c2410 frame pointer = 0x10:0xc03c2418 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = nested task, resume, IOPL = 0 current process = Idle interrupt mask = net tty bio cam trap number = 12 panic: page fault Uptime: 8m37s dumping to dev #da/0x20001, offset 1048736 dump 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 420 419 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 15 --- #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) bt/full A syntax error in expression, near `full'. (kgdb) bt\full #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487 error = 0 #1 0xc0180277 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:316 howto = 260 #2 0xc01806b5 in panic (fmt=0xc035a22c "%s") at /usr/src/sys/kern/kern_shutdown.c:595 fmt = 0xc035a22c "%s" bootopt = 260 buf = "page fault\000t", '\000' <repeats 243 times> #3 0xc02f19fb in trap_fatal (frame=0xc03c23d0, eva=48) at /usr/src/sys/i386/i386/trap.c:974 frame = (struct trapframe *) 0xc03c23d0 code = 16 type = 12 ss = 16 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 8, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1} #4 0xc02f16a9 in trap_pfault (frame=0xc03c23d0, usermode=0, eva=48) at /usr/src/sys/i386/i386/trap.c:867 va = 0 vm = (struct vmspace *) 0x0 map = 0xc rv = 0 ftype = 255 'ÿ' p = (struct proc *) 0x0 #5 0xc02f124f in trap (frame={tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1069770624, tf_esi = 0, tf_ebp = -1069800424, tf_isp = -1069800452, tf_ebx = -1070095780, tf_edx = 6832128, tf_ecx = 4, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071283756, tf_cs = 8, tf_eflags = 82054, tf_esp = 0, tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:466 p = (struct proc *) 0x0 sticks = 14011138798591732604 i = 0 ucode = 0 type = 12 code = 0 eva = 48 #6 0xc02581d4 in acquire_lock (lk=0xc037a25c) at /usr/src/sys/ufs/ffs/ffs_softdep.c:266 lk = (struct lockit *) 0xffffffff holder = 0 #7 0xc025c812 in softdep_fsync_mountdev (vp=0xd69dbb40) at /usr/src/sys/ufs/ffs/ffs_softdep.c:4024 bp = (struct buf *) 0x0 nbp = (struct buf *) 0xc03c2468 wk = (struct worklist *) 0x0 #8 0xc0260c1e in ffs_fsync (ap=0xc03c248c) at /usr/src/sys/ufs/ffs/ffs_vnops.c:134 vp = (struct vnode *) 0xd69dbb40 bp = (struct buf *) 0x0 nbp = (struct buf *) 0xc03c24a0 s = -1069770624 error = 0 wait = 0 passes = -694305984 skipmeta = -1070194848 lbn = 2147483647 #9 0xc025f84f in ffs_sync (mp=0xc2732e00, waitfor=2, cred=0xc1854480, p=0xc03c9880) at vnode_if.h:558 a = {a_desc = 0xc0361ca0, a_vp = 0xd69dbb40, a_cred = 0xc1854480, a_waitfor = 2, a_p = 0xc03c9880} vp = (struct vnode *) 0x0 cred = (struct ucred *) 0xc1854480 waitfor = 2 p = (struct proc *) 0xc03c9880 p = (struct proc *) 0xc03c9880 nvp = (struct vnode *) 0x0 vp = (struct vnode *) 0x0 ip = (struct inode *) 0x0 ump = (struct ufsmount *) 0xc2722c00 fs = (struct fs *) 0xc2790800 error = 0 allerror = 0 #10 0xc01b2383 in sync (p=0xc03c9880, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:583 p = (struct proc *) 0xc03c9880 mp = (struct mount *) 0xc2732e00 ---Type <return> to continue, or q <return> to quit--- nmp = (struct mount *) 0x0 asyncflag = 0 #11 0xc018003a in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:235 bp = (struct buf *) 0x0 iter = 0 nbusy = -1 pbusy = 5 howto = 256 #12 0xc01806b5 in panic (fmt=0xc0359c62 "double fault") at /usr/src/sys/kern/kern_shutdown.c:595 fmt = 0xc0359c62 "double fault" bootopt = 256 buf = "page fault\000t", '\000' <repeats 243 times> #13 0xc02f1a57 in dblfault_handler () at /usr/src/sys/i386/i386/trap.c:1004 No locals. (kgdb) quit Script done on Sat Nov 20 19:42:52 2004 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBn6A2iD657aJF7eIRAnM0AKCHB4vs1neigjrnG9OVtcdFArc21ACgon3R i2a4jNVZy3Jq0Kq3bk1kFoM= =F3nq -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041120195118.GA793>
