Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 1998 17:29:59 +0100
From:      Ollivier Robert <roberto@eurocontrol.fr>
To:        "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Subject:   Panic with CURRENT & softupdates-240298
Message-ID:  <19980302172959.38382@caerdonn.eurocontrol.fr>

next in thread | raw e-mail | index | archive | help
Running a CURRENT kernel with the softupdate code of 2/24/98 leads to the
following panic. It is always failing at the same place in
"softdep_setup_allocindir_page".

Now, it is procmail that trigger the problem although the filesystem in
question is not very heavily used.

/dev/sd1s1h on /home (local, noatime, soft-updates, writes: sync 4 async 367)

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xf2334000
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xf0190e06
stack pointer           = 0x10:0xf407fc88
frame pointer           = 0x10:0xf407fccc
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         = 322 (procmail)
interrupt mask          = 
trap number             = 12
panic: page fault
#0  boot (howto=256) at ../../kern/kern_shutdown.c:296
296                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=256) at ../../kern/kern_shutdown.c:296
#1  0xf0113fde in panic (fmt=0xf0191d9f "page fault")
    at ../../kern/kern_shutdown.c:436
#2  0xf01929a9 in trap_fatal (frame=0xf407fc4c) at ../../i386/i386/trap.c:842
#3  0xf0192444 in trap_pfault (frame=0xf407fc4c, usermode=0)
    at ../../i386/i386/trap.c:735
#4  0xf019210b in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = -231522304, 
      tf_esi = -223766528, tf_ebp = -200803124, tf_isp = -200803212, 
      tf_ebx = -238411264, tf_edx = 8192, tf_ecx = 512, tf_eax = -7755776, 
      tf_trapno = 12, tf_err = 2, tf_eip = -266793466, tf_cs = 8, 
      tf_eflags = 66054, tf_esp = -259828448, tf_ss = 0})
    at ../../i386/i386/trap.c:363
#5  0xf0190e06 in generic_bcopy ()
#6  0xf016ab73 in softdep_setup_allocindir_page (ip=0xf0895600, lbn=514, 
    bp=0xf1ca2200, ptrno=502, newblkno=149872, oldblkno=0, nbp=0xf1c93708)
    at ../../ufs/ffs/ffs_softdep.c:1416
#7  0xf0168173 in ffs_balloc (ap=0xf407fe88) at ../../ufs/ffs/ffs_balloc.c:302
#8  0xf017172f in ffs_write (ap=0xf407fee0) at vnode_if.h:995
#9  0xf013b372 in vn_write (fp=0xf07b7740, uio=0xf407ff28, cred=0xf08b2d80)
    at vnode_if.h:331
#10 0xf011c36e in write (p=0xf4072c40, uap=0xf407ff84)
    at ../../kern/sys_generic.c:268
#11 0xf0192c3c in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 5, 
      tf_esi = 98304, tf_ebp = -272638920, tf_isp = -200802348, tf_ebx = 2166, 
      tf_edx = 2166, tf_ecx = 0, tf_eax = 4, tf_trapno = 0, tf_err = 7, 
      tf_eip = 537479713, tf_cs = 31, tf_eflags = 643, tf_esp = -272638948, 
      tf_ss = 39}) at ../../i386/i386/trap.c:994
#12 0x20094a21 in ?? ()
#13 0x66e1 in ?? ()
#14 0x6d9b in ?? ()
#15 0x429b in ?? ()
#16 0x1095 in ?? ()

#6  0xf016ab73 in softdep_setup_allocindir_page (ip=0xf0895600, lbn=514, 
    bp=0xf1ca2200, ptrno=502, newblkno=149872, oldblkno=0, nbp=0xf1c93708)
    at ../../ufs/ffs/ffs_softdep.c:1416
1416            setup_allocindir_phase2(bp, ip, aip);
(kgdb) print *bp
$1 = {b_hash = {le_next = 0xf1c66d00, le_prev = 0xf01d2410}, b_vnbufs = {
    le_next = 0x0, le_prev = 0xf1c93710}, b_freelist = {tqe_next = 0xf1cadd10, 
    tqe_prev = 0xf1c8ff34}, b_act = {tqe_next = 0x0, tqe_prev = 0xf07b7e94}, 
  b_proc = 0x0, b_flags = 536870960, b_qindex = 0, b_usecount = 6 '\006', 
  b_error = 0, b_bufsize = 8192, b_bcount = 8192, b_resid = 0, 
  b_dev = 4294967295, b_data = 0xf2a98000 "ð\030\002", 
  b_kvabase = 0xf2a98000 "ð\030\002", b_kvasize = 8192, b_lblkno = -12, 
  b_blkno = -12, b_iodone = 0, b_iodone_chain = 0x0, b_vp = 0xf40067e0, 
  b_dirtyoff = 0, b_dirtyend = 0, b_generation = 11, b_rcred = 0x0, 
  b_wcred = 0x0, b_validoff = 0, b_validend = 0, b_pblkno = 3087692, 
  b_saveaddr = 0x0, b_savekva = 0x0, b_driver1 = 0x0, b_driver2 = 0x0, 
  b_spc = 0x0, b_cluster = {cluster_head = {tqh_first = 0x0, tqh_last = 0x0}, 
    cluster_entry = {tqe_next = 0x0, tqe_prev = 0x0}}, b_pages = {0xf043deb0, 
    0xf043dee4, 0x0 <repeats 30 times>}, b_npages = 2, b_dep = {
    lh_first = 0x0}}
(kgdb) print *ip
$2 = {i_lock = {lk_interlock = {lock_data = -238654208}, 
    lk_flags = 4028441616, lk_sharecount = 0, lk_waitcount = -238471408, 
    lk_exclusivecount = -8944, lk_prio = -3638, 
    lk_wmesg = 0xf1c8ff34 "¸iÈñtÈÈñ", lk_timo = 0, 
    lk_lockholder = -260342124}, i_hash = {le_next = 0x0, 
    le_prev = 0x20000030}, i_vnode = 0x60000, i_devvp = 0x0, i_flag = 8192, 
  i_dev = 8192, i_number = 0, i_effnlink = -1, inode_u = {fs = 0xf2a98000, 
    e2fs = 0xf2a98000}, i_dquot = {0xf2a98000, 0x2000}, 
  i_modrev = 0xfffffff4fffffff4, i_lockf = 0x0, i_count = 0, 
  i_endoff = -201300000, i_diroff = 0, i_offset = 0, i_ino = 11, i_reclen = 0, 
  i_spare = {0, 0, 0, 3087692, 0}, i_din = {di_mode = 0, di_nlink = 0, di_u = {
      oldids = {0, 0}, inumber = 0}, di_size = 0, di_atime = 0, 
    di_atimensec = 0, di_mtime = -263987536, di_mtimensec = -263987484, 
    di_ctime = 0, di_ctimensec = 0, di_db = {0 <repeats 12 times>}, di_ib = {
      0, 0, 0}, di_flags = 0, di_blocks = 0, di_gen = 0, di_uid = 0, 
    di_gid = 0, di_spare = {0, 0}}}
(kgdb) print *aip
$3 = {ai_list = {wk_list = {le_next = 0x0, le_prev = 0x0}, wk_type = 0, 
    wk_state = 0}, ai_next = {le_next = 0x0, le_prev = 0x0}, ai_offset = 0, 
  ai_newblkno = 0, ai_oldblkno = 0, ai_freefrag = 0x0, ai_indirdep = 0x0, 
  ai_deps = {le_next = 0x0, le_prev = 0x0}, ai_buf = 0x0}

-- 
Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
FreeBSD caerdonn.eurocontrol.fr 3.0-CURRENT #3: Mon Mar  2 15:06:59 CET 1998
roberto@caerdonn.eurocontrol.fr:/home/build/soft/sys/compile/CAERDONN  i386 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980302172959.38382>