Re: Still crashes in swapgeom_strategy and also sometimes in propagate_priority

From: Eivind Olsen <eivind_at_aminor.no>
Date: Fri, 19 Sep 2003 07:28:43 +0200
--On 18. september 2003 09:23 +0200 Eivind Olsen <eivind_at_aminor.no> wrote:
> Hello.
> I'm experiencing frequent crashes on my FreeBSD box here. It's running
> FreeBSD 5.x CURRENT (CVSUP'ed yesterday (the 17th) around 1800 CET).

I've now had more crashes which looks like those I mentioned in the last 
mail. The difference is that this time it actually produced a crash dump!

This is the crash that produced the crashdump "vmcore.2":

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x40
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc04ad20c
stack pointer           = 0x10:0xcaf23a3c
frame pointer           = 0x10:0xcaf23a54
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         = 6 (pagedaemon)
kernel: type 12 trap, code=0
Stopped at      swapgeom_strategy+0x3c: movl    %edi,0x40(%eax)
db> show reg
cs                 0x8
ds                0x10
es            0x100010
fs                0x18
ss                0x10
eax                  0
ecx                  0
edx                0x4
ebx         0xc1f97880
esp         0xcaf23a3c
ebp         0xcaf23a54
esi         0xc5ab5bf0
edi         0xc5ab5bf0
eip         0xc04ad20c  swapgeom_strategy+0x3c
efl            0x10246
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
swapgeom_strategy+0x3c: movl    %edi,0x40(%eax)
db> trace
swapgeom_strategy(c5ab5bf0,c1f97880,0,0,2) at swapgeom_strategy+0x3c
swp_pager_strategy(c5ab5bf0,200,0,419fe,0) at swp_pager_strategy+0xc5
swap_pager_putpages(c27e85c8,caf23b80,3,0,caf23af0) at
swap_pager_putpages+0x452
vm_pageout_flush(caf23b80,3,0,1,1) at vm_pageout_flush+0x18b
vm_pageout_clean(c09f4c60,0,0,0,0) at vm_pageout_clean+0x2cd
vm_pageout_scan(0,c0636420,44,c0569dbc,1f4) at vm_pageout_scan+0x73f
vm_pageout(0,caf23d48,0,0,0) at vm_pageout+0x368
fork_exit(c04c2fa0,0,caf23d48) at fork_exit+0xb1
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xcaf23d7c, ebp = 0 ---
db> panic
panic: from debugger
Debugger("panic")


(I didn't take the time to write down all the pointers in this section, I 
didn't expect it to be able to crashdump since it usually hasn't done that, 
so the three pointers here are not the correct ones but are taken from an 
older crashdump which looked just the same)
Fatal trap 3: breakpoint instruction fault while in kernel mode
instruction pointer     = 0x8:0xc04e9e64
stack pointer           = 0x10:0xcaf257bc
frame pointer           = 0x10:0xcaf257c8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
currnet process         = 6 (pagedaemon)
Stopped at      swapgeom_strategy+0x3c: movl    %edi,0x40(%eax)
db> panic
panic: from debugger
Uptime: 12h5m36s
ad2: WARNING - WRITE_DMA recovered from missing interrupt
Dumping 191 MB
 16 32 ...etc...
Dump complete



Then, when the system booted I got the following crash (this one also looks 
like the second one I mentioned in my previous mail):

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x24
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0346b2b
stack pointer           = 0x10:0xcaec4c38
frame pointer           = 0x10:0xcaec4c4c
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         = 12 (swi8: tty:sio clock)
kernel: type 12 trap, code=0
Stopped at      propagate_priority+0x8b:    cmpl    0x24(%ebx),%ecx
db> show reg
cs                 0x8
ds          0xc0d30010
es          0xc0350010  getrusage+0x150
fs          0xcaec0018
ss                0x10
eax               0x24
ecx         0xc0d3eab0
edx         0xc0566311
ebx                  0
esp         0xcaec4c38
ebp         0xcaec4c4c
esi               0x24
edi         0xc0636f20  default_kbd
eip         0xc0346b2b  propagate_priority+0x8b
efl            0x10293
dr0                  0
dr1                  0
dr2                  0
dr3                  0
dr4         0xffff0ff0
dr5              0x400
dr6         0xffff0ff0
dr7              0x400
propagate_priority+0x8b:    cmpl    0x24(%ebx),%ecx
db> trace
propagate_priority(c0d37980,c0627ce0,c0d39bc0,0,c0d379a0) at
propagate_priority+0x8b
_mtx_lock_sleep(c0625260,0,0,0,c04d8000) at _mtx_lock_sleep+0x259
softclock(0,0,0,0,c0d36974) at softclock+0x250
ithread_loop(c0d35280,caec4d48,0,0,0) at ithread_loop+0x1d8
fork_exit(c033b850,c0d35280,caec4d48) at fork_exit+0xb1
fork_trampoline() at fork_trampoline+0x8
-- trap 0x1, eip = 0, esp = 0xcaec4d7c, ebp = 0 ---
db> panic
panic: from debugger
Debugger("panic")



Fatal trap 3: breakpoint instruction fault while in kernel mode
instruction pointer     = 0x8:0xc04ee154
stack pointer           = 0x10:0xcaec49ec
frame pointer           = 0x10:0xcaec49f8
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = IOPL = 0
currnet process         = 12 (swi8: tty:sio clock)
Stopped at      propagate_priority+0x8b:    cmpl    0x24(%ebx),%ecx
db> panic
panic: from debugger
Uptime: 1m42s


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x24
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0346b2b
stack pointer           = 0x10:0xcaedfc84
frame pointer           = 0x10:0xcaedfc98
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         = 28 (irq5: fxp1)
kernel: type 12 trap, code=0
Stopped at      propagate_priority+0x8b:    cmpl    0x24(%ebx),%ecx
db> panic
panic: from debugger
Uptime: 1m43s
...and there it hangs...


So, any suggestions? Can the crashdump help anyone figure out exactly what 
goes wrong?

-- 
Regards / Hilsen
Eivind Olsen
<eivind_at_aminor.no>
Received on Thu Sep 18 2003 - 20:28:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:22 UTC