tech-kern archive

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

Re: Crashing after quitting X or powering off



> Kevin Bloom <ktnb%netbsd.org@localhost> wrote:
> > When I try to view the savecore stuff the only information that I
> > get is "bad namelist" or some varient of that.
>
> You need to fix this first to have any way of tracking down what is
> going on.

It crashed again but this time I've actually got useful information.

Here is the dmesg:
[   175.399957] uvm_fault(0xffffe2b31bd79c78, 0x0, 1) -> e
[   175.399957] fatal page fault in supervisor mode
[   175.399957] trap type 6 code 0 rip 0xffffffff80ca042b cs 0x8 rflags 0x13287 cr2 0 ilevel 0 rsp 0xffffbe04bacdbcc0
[   175.399957] curlwp 0xffffe2b31d146040 pid 2207.2207 lowest kstack 0xffffbe04bacd72c0
[   175.399957] panic: trap
[   175.399957] cpu2: Begin traceback...
[   175.399957] vpanic() at netbsd:vpanic+0x183
[   175.409956] panic() at netbsd:panic+0x3c
[   175.409956] trap() at netbsd:trap+0xbaf
[   175.409956] --- trap (number 6) ---
[   175.419956] ufs_balloc_range() at netbsd:ufs_balloc_range+0x1cd
[   175.419956] ffs_write() at netbsd:ffs_write+0x34e
[   175.419956] VOP_WRITE() at netbsd:VOP_WRITE+0xa6
[   175.429956] vn_write() at netbsd:vn_write+0x10e
[   175.429956] dofilewrite() at netbsd:dofilewrite+0x80
[   175.429956] sys_write() at netbsd:sys_write+0x49
[   175.439956] syscall() at netbsd:syscall+0x1fc
[   175.439956] --- syscall (number 4) ---
[   175.439956] netbsd:syscall+0x1fc:
[   175.439956] cpu2: End traceback...

[   175.439956] dumping to dev 0,1 (offset=8, size=4164413):
[   175.439956] dump <4>thinkpad0: workqueue busy: updates stopped
[   211.420155] acpitz0: workqueue busy: updates stopped
[   211.420155] coretemp0: workqueue busy: updates stopped
[   211.420155] coretemp1: workqueue busy: updates stopped
[   211.420155] acpibat0: workqueue busy: updates stopped

vmstat:
     4096 bytes per page
        8 page colors
  4031070 pages managed
  3939143 pages free
        0 pages paging
     9730 pages wired
        1 reserve pagedaemon pages
       20 reserve kernel pages
   125979 boot kernel pages
    15361 kernel pool pages
    21168 anonymous pages
    19283 cached file pages
     7433 cached executable pages
     1024 minimum free pages
     1365 target free pages
  1343690 maximum wired pages
        1 swap devices
  1019893 swap pages
        0 swap pages in use
        0 swap allocations
   140232 total faults taken
    26484 traps
   372148 device interrupts
    82091 CPU context switches
      979 software interrupts
  1033215 system calls
        0 pagein requests
        0 pageout requests
        0 pages swapped in
        0 pages swapped out
      624 forks total
      205 forks blocked parent
      205 forks shared address space with parent
   208248 pagealloc desired color avail
        0 pagealloc desired color not avail
   157316 pagealloc local cpu avail
    50932 pagealloc local cpu not avail
        0 faults with no memory
        0 faults with no anons
        0 faults had to wait on pages
        0 faults found released page
     4329 faults relock (4327 ok)
  1690122 anon page faults
        0 anon retry faults
    22506 amap copy faults
        0 neighbour anon page faults
   208260 neighbour object page faults
    68453 locked pager get faults
     4329 unlocked pager get faults
  1675876 anon faults
    14246 anon copy on write faults
    52400 object faults
    16046 promote copy faults
    77837 promote zero fill faults
        0 faults upgraded lock
        0 faults couldn't upgrade lock
        6 times daemon wokeup
        2 revolutions of the clock hand
        0 pages freed by daemon
        0 pages scanned by daemon
        0 anonymous pages scanned by daemon
        0 object pages scanned by daemon
        0 pages reactivated
        0 pages found busy by daemon
        0 total pending pageouts
    17945 pages deactivated
        0 per-cpu stats synced
        0 anon pages possibly dirty
        0 anon pages dirt          0 anon pages clean
        0 file pages possibly dirty
        0 file pages dirty
        0 file pages clean
        0 total name lookups
        0 good hits
        0 negative hits
        0 bad hits
        0 false hits
        0 miss
        0 too long
        0 pass2 hits
        0 2passes
        0 reverse hits
        0 reverse miss
        0 access denied
          cache hits (0% pos + 0% neg) system 0% per-process
          deletions 0%, falsehits 0%, toolong 0%

crash bt:
dm_target_stripe_strategy.cold() at 0
kern_reboot() at sys_reboot
vpanic() at vpanic+0x18d
panic() at vprintf
trap() at startlwp
--- trap (number 6) ---
ufs_balloc_range() at ufs_balloc_range+0x1cd
ffs_write() at ffs_write+0x34e
VOP_WRITE() at VOP_WRITE+0xa6
vn_write() at vn_write+0x10e
dofilewrite() at dofilewrite+0x80
sys_write() at sys_write+0x49
syscall() at syscall+0x1fc
--- syscall (number 4) ---
syscall+0x1fc:

ps:
 PID TTY      STAT    TIME COMMAND
   1 ?        Rs   0:00.00 init
 346 ?        RKs  0:00.00 [master]
 347 ?        D    0:00.00 (pickup)
 348 ?        D    0:00.00 /usr/X11R7/bin/X :0 -noretro vt05 -auth /var/db/xdm/authdir/authfiles/A:0-CdJujB (qmgr)
 395 ?        D    0:00.00 (ntpd)
 497 ?        DKs  0:00.00 [inetd]
 575 ?        R    0:00.00 (dhcpcd)
 751 ?        Rs   0:00.00 (xdm)
 895 ?        R    0:00.00 (dhcpcd)
 932 ?        RKs  0:00.00 [wpa_supplicant]
 934 ?        U    0:00.00 (dhcpcd)
 953 ?        R    0:00.00 (dhcpcd)
1658 ?        RKs  0:00.00 [syslogd]
2207 ?        RKsl 0:00.00 [X]
2301 ?        RKs  0:00.00 [dbus-daemon]
2354 ?        RKs  0:00.00 [powerd]
2491 ?        OKs  0:00.00 [ntpd]
2555 ?        RKs  0:00.00 [sshd]
2612 ?        RKs  0:00.00 [xdm]
2614 ?        RKs  0:00.00 [cron]
2877 ?        Rs   0:00.00 (cupsd)
   0 console- ?<   0:00.00 ()
 582 ttyE0    R    0:00.00 /usr/sbin/inetd -l (ksh)
 588 ttyE0    R<   0:00.00 (su)
 590 ttyE0    R    0:00.00 (ksh)
 642 ttyE0    Rs   0:00.00 (login)
 643 ttyE1    Ds   0:00.00 (getty)
 645 ttyE2    Rs   0:00.00 (getty)
 644 ttyE3    Rs   0:00.00 (getty)


I was able to get the output of ps from crash(8) as well, if needed.

kev


Home | Main Index | Thread Index | Old Index