tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64 panics w/XEN_DOM0, not GENERIC



 > On Wed, Aug 20, 2008 at 11:03:47PM +0200, Manuel Bouyer wrote:
 >
 > > Could you try a GENERIC+DEBUG+DIAGNOSTIC kernel ? XEN3_DOM0 has
 > > options DEBUG options DIAGNOSTIC while GENERIC doesn't.
 >
 > Also please try a XEN3_DOM0 kernel with the attached patch. It should
 > give more details on the source of the problem (the failing function
 > should now show up in the stack trace).

I'm still working on the generic kernel (will run it for the first time
tonight and the next few nights if it doesn't die on day one) but last
night with:

NetBSD 4.99.72 (XEN3_DOM0) #7: Sat Aug 23 10:08:58 EDT 2008
      
kovert%saidin.omniscient.com@localhost:/usr/obj/current/amd64/amd/guinness/usr/src/os/NetBSD/src/sys/arch/amd64/compile/XEN3_DOM0
total memory = 768 MB

(checkout earlier that day), with xen deamons running, I got what's below.

please let me know if there's more debugging I can stuff in to try to
narrow it down more.

thanks,
-Todd


---<snip>---
panic: kernel diagnostic assertion "bp->b_error == 0" failed: file 
"/amd/guinness/usr/src/os/NetBSD/src/sys/kern/kern_physio.c", line 219
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff804b6d5d cs e030 rflags 246 cr2  7f7ffd90a700 
cpl 6 rsp ffffa000352c5a80
Stopped in pid 0.13 (system) at netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x255
__kernassert() at netbsd:__kernassert+0x2d 
physio_biodone() at netbsd:physio_biodone+0xa7
scsipi_complete() at netbsd:scsipi_complete+0x17c
scsipi_completion_thread() at netbsd:scsipi_completion_thread+0xba
ds          0x5a90
es          0x7b1c  
fs          0x5a90
gs          0x7bf7  
rdi         0
rsi         0xdeadbeef
rbp         0xffffa000352c5a80
rbx         0xffffa000352c5a90
rdx         0
rcx         0
rax         0x1 
r8          0xffffffff80ad1f80  cpu_info_primary
r9          0x1 
r10         0xffffa000352c59a0
r11         0xffffffff804f2d50  xenconscn_putc
r12         0x100
r13         0xffffffff80972798
r14         0
r15         0
rip         0xffffffff804b6d5d  breakpoint+0x5
cs          0xe030
rflags      0x246  
rsp         0xffffa000352c5a80
ss          0xe02b 
netbsd:breakpoint+0x5:  leave
db> ps/l
 PID         LID S     FLAGS       STRUCT LWP *               NAME WAIT
 2302          1 3        84   ffffa00038260000             pickup kqueue
 3146          1 3        80   ffffa00038a43420             dumper netio
 2055          1 3        80   ffffa00038a43800             dumper netio
 3224          1 3        80   ffffa00038a43be0             dumper netio
 3720          1 3        80   ffffa00038920400             dumper netio
 2115        133 3         4   ffffa00038a5b7c0              taper physio
             132 3        84   ffffa00038a43040              taper parked
               1 3        80   ffffa000383df3e0              taper parked
 3231          1 3        80   ffffa000389207e0             driver select
 3242          1 3        80   ffffa00038920020               perl wait
 1846          1 3        80   ffffa000383dfba0                ksh pause
 2027          1 3        80   ffffa00038920bc0                 sh wait
 1724          1 3        80   ffffa000386677e0               cron piperd
 1307          8 5         4   ffffa000383df7c0          python2.4
               7 3        80   ffffa000388983e0          python2.4 socket
               6 3        80   ffffa000388987c0          python2.4 socket
               5 3        80   ffffa00038898ba0          python2.4 netio
               4 3        80   ffffa00038887040          python2.4 parked
               3 3        84   ffffa00038887420          python2.4 select
               2 3        80   ffffa00038887800          python2.4 socket
               1 3        80   ffffa00038667400          python2.4 select
 2960          2 3        80   ffffa00038887be0        xenconsoled netio
               1 3        80   ffffa00038667020        xenconsoled select
 1042          1 3        80   ffffa00038667bc0          python2.4 wait
 2559          1 3        80   ffffa000383df000          xenstored select
 681           1 3        80   ffffa000383c8420               bash ttyraw
 567           1 3        80   ffffa000383c8800               bash wait
 678           1 3        80   ffffa000383c8be0               sshd select
 194           1 3        80   ffffa000382c2020               sshd netio
 437           1 3        80   ffffa00038260ba0               qmgr kqueue
 492           1 3        80   ffffa00036a2c420              getty ttyraw
 467           1 3        80   ffffa00036a2c800              getty ttyraw
 478           2 3        80   ffffa000383c8040            apcupsd socket
               1 3        80   ffffa000382c2400            apcupsd select
 487           1 3        80   ffffa000382607c0               cron nanoslp
 483           1 3        80   ffffa000382c2bc0              inetd kqueue
 459           1 3        84   ffffa000382c27e0             master kqueue
 308           1 3        80   ffffa000382603e0             smartd nanoslp
 285           1 3        84   ffffa00038139420              snmpd select
 306           1 3        80   ffffa00038139800               sshd select
 278           1 3        84   ffffa00038139040               ntpd pause
 229           5 3        84   ffffa00038139be0              slave nfsd
               4 3        84   ffffa00036b55020              slave nfsd
               3 3        84   ffffa00036b55400              slave nfsd
               2 3        84   ffffa00036a2c040              slave nfsd
               1 3        80   ffffa00036b557e0             master select
 220           1 3        84   ffffa00036b46000             mountd select
 177           1 3        80   ffffa00036b55bc0          mount_mfs mfsidl
 153           1 3        84   ffffa00036b463e0            rpcbind select
 132           1 3        80   ffffa00036b46ba0            syslogd kqueue
 1             1 3        80   ffffa0003433cbe0               init wait
>0            42 3       204   ffffa00036b467c0            physiod physiod
              41 3       204   ffffa00036a2cbe0        vmem_rehash vmem_rehash
              40 3       204   ffffa00036a29020           aiodoned aiodoned
              39 3       204   ffffa00036a29400            ioflush syncer
              38 3       204   ffffa00036a297e0           pgdaemon pgdaemon
              37 3       204   ffffa00036a29bc0            raidio1 raidiow
              36 3       204   ffffa00036a26000              raid1 rfwcond
              35 3       204   ffffa00036a263e0            raidio0 raidiow
              34 3       204   ffffa00036a267c0              raid0 rfwcond
              33 3       204   ffffa0003433b400          cryptoret crypto_wait
              32 3       204   ffffa0003433b7e0               usb4 usbevt
              31 3       204   ffffa0003433bbc0               usb3 usbevt
              30 3       204   ffffa00034339000               usb2 usbevt
              29 3       204   ffffa000343393e0               usb1 usbevt
              28 3       204   ffffa00036a26ba0         usbtask-dr usbtsk
              27 3       204   ffffa0003433b020         usbtask-hc usbtsk
              26 3       204   ffffa0003433c800               usb0 usbevt
              25 3       204   ffffa0003433c040             xenbus rdst
              24 3       204   ffffa0003433c420           xenwatch evtsq
              15 3       204   ffffa000343397c0            atabus1 atath
              14 3       204   ffffa00034339ba0            atabus0 atath
           >  13 7       204   ffffa00034333040           scsibus0
              12 5       204   ffffa00034333420           (zombie)
              11 3       204   ffffa00034333800             sysmon smtaskq
              10 3       204   ffffa00034333be0           pmfevent pmfevent
               9 3       204   ffffa0003432c020            cachegc cachegc
               8 3       204   ffffa0003432c400              vrele vrele
               7 3       204   ffffa0003432c7e0            xcall/0 xcall
               6 1       204   ffffa0003432cbc0          softser/0
               5 1       204   ffffa0003432a000          softclk/0
               4 1       204   ffffa0003432a3e0          softbio/0
               3 1       204   ffffa0003432a7c0          softnet/0
               2 1       205   ffffa0003432aba0             idle/0
               1 3       204   ffffffff80a8c700            swapper schedule
db> ps/a
 PID          COMMAND      STRUCT PROC *            UAREA *     VMSPACE/VM_MAP
 2302          pickup   ffffa00038273808   ffffa00038368d80   ffffa000381fca18
 3146          dumper   ffffa00038a4ad48   ffffa00038a2cd80   ffffa000389c1a28
 2055          dumper   ffffa0003888f010   ffffa00038a29d80   ffffa000389c1b98
 3224          dumper   ffffa0003888f2b8   ffffa00038a26d80   ffffa000389c1d08
 3720          dumper   ffffa0003888f808   ffffa00038918d80   ffffa000389c1e78
 2115           taper   ffffa0003833c000   ffffa00038a74d80   ffffa000383db010
 3231          driver   ffffa0003888fab0   ffffa0003890dd80   ffffa000383db180
 3242            perl   ffffa0003888f560   ffffa0003891bd80   ffffa000383dbe70
 1846             ksh   ffffa00038437558   ffffa00038402d80   ffffa000383db740
 2027              sh   ffffa0003888fd58   ffffa0003890ad80   ffffa000383db8b0
 1724            cron   ffffa0003833c2a8   ffffa000384ccd80   ffffa000383db2f0
 1307       python2.4   ffffa000384372b0   ffffa000383f4d80   ffffa000383db5d0
 2960      xenconsole   ffffa00038437008   ffffa000388a4d80   ffffa000383dbb90
 1042       python2.4   ffffa00038437800   ffffa0003840ed80   ffffa000383dbd00
 2559       xenstored   ffffa00038437aa8   ffffa000384c5d80   ffffa000383dba20
 681             bash   ffffa0003833c550   ffffa000383f7d80   ffffa000381fc008
 567             bash   ffffa0003833c7f8   ffffa000383aed80   ffffa000381fc178
 678             sshd   ffffa0003833caa0   ffffa000383b8d80   ffffa000381fc2e8
 194             sshd   ffffa0003833cd48   ffffa000383b1d80   ffffa000381fc458
 437             qmgr   ffffa00036b4f008   ffffa00038242d80   ffffa000381fce68
 492            getty   ffffa0003433e7f8   ffffa00036af5d80   ffffa00036a23b80
 467            getty   ffffa0003433eaa0   ffffa00036af2d80   ffffa00036a23cf0
 478          apcupsd   ffffa00038273010   ffffa000383fad80   ffffa000381fc5c8
 487             cron   ffffa00038273d58   ffffa0003824ed80   ffffa000381fccf8
 483            inetd   ffffa00038273560   ffffa000382a1d80   ffffa000381fc8a8
 459           master   ffffa000382732b8   ffffa000382a9d80   ffffa000381fc738
 308           smartd   ffffa00038273ab0   ffffa00038292d80   ffffa000381fcb88
 285            snmpd   ffffa00036b4f558   ffffa000381b8d80   ffffa00036a23170
 306             sshd   ffffa0003433e550   ffffa000381b1d80   ffffa00036a23a10
 278             ntpd   ffffa00036b4f2b0   ffffa000381bbd80   ffffa00036a23000
 229             nfsd   ffffa00036b4f800   ffffa000381aed80   ffffa00036a232e0
 220           mountd   ffffa00036b4fd50   ffffa00036b75d80   ffffa00036a235c0
 177        mount_mfs   ffffa00036b4faa8   ffffa00036b78d80   ffffa00036a23450
 153          rpcbind   ffffa0003433e000   ffffa00036b72d80   ffffa00036a23730
 132          syslogd   ffffa0003433e2a8   ffffa00036afcd80   ffffa00036a238a0
 1               init   ffffa0003433ed48   ffffa000361e1d80   ffffa00036a23e60
>0             system   ffffffff80a8c440   ffffa00036affd80   ffffffff80b6f560


Home | Main Index | Thread Index | Old Index