OpenBSD 6.1/6.2/6.3 crashing after awhile on BeagleBone Black

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenBSD 6.1/6.2/6.3 crashing after awhile on BeagleBone Black

Alfred Morgan
I'm not sure what is going on with my BBB it always seems to go to ddb>
prompt after a day or two of no use. This is happening on one other BBB I
leave on as well. I thought maybe 6.2 or 6.3 will fix this but nothing
seems to stay up. It still is in the ddb prompt in case someone has any
other debug command ideas other than what I attached on this email.

[image: Text file]
crash_6.3.txt
<https://drive.google.com/a/54.org/file/d/1-20cYrCc-jBjuA48teuxBsaNEsjOsdfu/view?usp=drivesdk>


--
-alfred
Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 6.1/6.2/6.3 crashing after awhile on BeagleBone Black

Alfred Morgan
Sorry for the share link in my previous email. It appears that I can't
simply attach files anymore these days. Here is my ddb output:

ddb> trace
pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
uvm_fault+0xe68
        rlv=0xc03b2b14 rfp=0xcb3a6df8
data_abort_handler+0x228
        rlv=0xc046c4e0 rfp=0xcb3a6e50
$a.13
        rlv=0xc04effdc rfp=0xcb3a6f80
uvm_fault+0x534
        rlv=0xc03b3050 rfp=0xcb3a6fa8
prefetch_abort_handler+0x118
        rlv=0xc046c4e0 rfp=0xbffde6b0
ddb> dmesg
OpenBSD 6.3 (GENERIC) #4: Sun Mar 25 07:49:21 MDT 2018
    [hidden email]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 536870912 (512MB)
avail mem = 516853760 (492MB)
mainbus0 at root: TI AM335x BeagleBone Black
cpu0 at mainbus0: ARM Cortex-A8 r3p2 (ARMv7)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache
omap0 at mainbus0
prcm0 at omap0 rev 0.2
dmtimer0 at omap0 rev 3.1
dmtimer1 at omap0 rev 3.1
simplebus0 at mainbus0: "ocp"
simplebus1 at simplebus0: "l4_wkup"
simplebus2 at simplebus1: "prcm"
simplebus3 at simplebus1: "scm"
syscon0 at simplebus3: "scm_conf"
ompinmux0 at simplebus3
simplebus4 at simplebus3: "scm_conf"
intc0 at simplebus0 rev 5.0
omgpio0 at simplebus0: rev 0.1
gpio0 at omgpio0: 32 pins
omgpio1 at simplebus0: rev 0.1
gpio1 at omgpio1: 32 pins
omgpio2 at simplebus0: rev 0.1
gpio2 at omgpio2: 32 pins
omgpio3 at simplebus0: rev 0.1
gpio3 at omgpio3: 32 pins
com0 at simplebus0: ti16750, 64 byte fifo
com0: console
tiiic0 at simplebus0 rev 0.11
iic0 at tiiic0
"ti,tps65217" at iic0 addr 0x24 not configured
"atmel,24c256" at iic0 addr 0x50 not configured
nxphdmi0 at iic0 addr 0x70: rev 0x0301
nxphdmi0: no display detected
tiiic1 at simplebus0 rev 0.11
iic1 at tiiic1
"atmel,24c256" at iic1 addr 0x54 not configured
"atmel,24c256" at iic1 addr 0x55 not configured
"atmel,24c256" at iic1 addr 0x56 not configured
"atmel,24c256" at iic1 addr 0x57 not configured
ommmc0 at simplebus0
sdmmc0 at ommmc0: 4-bit, sd high-speed, mmc high-speed
ommmc1 at simplebus0
sdmmc1 at ommmc1: 1-bit
omdog0 at simplebus0 rev 0.1
cpsw0 at simplebus0: version 1.12 (0), address a0:f6:fd:8a:26:ba
ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI
0x0001f
0, model 0x000f
amdisplay0 at simplebus0
amdisplay0: no display attached.
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, S10004, 0000> SCSI2 0/direct
removable

sd0: 3648MB, 512 bytes/sector, 7471104 sectors
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SL32G, 0080> SCSI2 0/direct removable
sd1: 30436MB, 512 bytes/sector, 62333952 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
boot device: sd0
root on sd1a (92626a597bdd4326.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
WARNING: CHECK AND RESET THE DATE!

uvm_fault(0xc4f31858, 0, 2, 0) -> e
Fatal kernel mode data abort: 'Translation fault (L1)'
trapframe: 0xcb3a6bf8
DFSR=00000805, DFAR=00000004, spsr=60000113
r0 =c46eb98c, r1 =00000000, r2 =0000000c, r3 =9671901f
r4 =0000000b, r5 =00000003, r6 =c4604cd0, r7 =938f101e
r8 =c07d4c08, r9 =00000021, r10=cc060000, r11=cb3a6c78
r12=c0805304, ssp=cb3a6c48, slr=00096719, pc =c033703c

Stopped at      pmap_enter+0x2f0:       stmib   r1, {r8, r10}
ddb> ddb> c033703c
ddb> Bad character
?
ddb> machine     kill        print       p           pprint      examine
x           search      set         write       w           delete
d           break       dwatch      watch       step        s
continue    c           until       next        match       trace
bt          call        ps          callout     show        boot
help        hangman     dmesg
ddb> Bad symbol name
ddb> pmap_enter+0x2f0:  e9810500
ddb> frame
ddb> all         bcstats     breaks      buf         extents     malloc
map         mbuf        mount       nfsreq      nfsnode     object
page        panic       pool        proc        registers   socket
struct      uvmexp      vnode       watches
ddb> procs       callout     pools       mounts      vnodes      bufs
nfsreqs     nfsnodes
ddb> mountpoint 0xc523b800
flags 5000<LOCAL,ROOTFS>
vnodecovered 0x0 syncer 0xc51961e8 data 0xc5238800
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 514439 free 481506 avail 455785
  files 155902 ffiles 154342 favail 154342
  f_fsidx {0x1810, 0x7aa8c687} owner 0 ctime 0x5b3a44c3
  syncwrites 26 asyncwrites = 20602
  syncreads 419243 asyncreads = 0
  fstype "ffs" mnton "/" mntfrom "/dev/sd1a" mntspec "92626a597bdd4326.a"
locked vnodes:
mountpoint 0xc5249800
flags 1018<NOSUID,NODEV,LOCAL>
vnodecovered 0xc51962d8 syncer 0xc51963c8 data 0xc5238d00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 6328679 free 6309536 avail 5993103
  files 1636990 ffiles 1635974 favail 1635974
  f_fsidx {0x181b, 0xd6c591f5} owner 0 ctime 0x5b3a4381
  syncwrites 2 asyncwrites = 20
  syncreads 4695 asyncreads = 0
  fstype "ffs" mnton "/home" mntfrom "/dev/sd1l" mntspec
"92626a597bdd4326.l"
locked vnodes:
mountpoint 0xc5249400
flags 1018<NOSUID,NODEV,LOCAL>
vnodecovered 0xc51965a8 syncer 0xc5196710 data 0xc5238f00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 997407 free 997402 avail 947532
  files 259838 ffiles 259832 favail 259832
  f_fsidx {0x1813, 0xa9e02882} owner 0 ctime 0x5b3a4381
  syncwrites 1458 asyncwrites = 12155
  syncreads 5012 asyncreads = 0
  fstype "ffs" mnton "/tmp" mntfrom "/dev/sd1d" mntspec "92626a597bdd4326.d"
locked vnodes:
mountpoint 0xc5249c00
flags 1010<NODEV,LOCAL>
vnodecovered 0xc51968f0 syncer 0xc5196968 data 0xc5238a00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 1030527 free 703540 avail 652014
  files 285822 ffiles 271089 favail 271089
  f_fsidx {0x1815, 0x9c400d79} owner 0 ctime 0x5b3a4381
  syncwrites 6510 asyncwrites = 21762
  syncreads 418692 asyncreads = 0
  fstype "ffs" mnton "/usr" mntfrom "/dev/sd1f" mntspec "92626a597bdd4326.f"
locked vnodes:
mountpoint 0xc534c400
flags 1010<NODEV,LOCAL>
vnodecovered 0xc5196f80 syncer 0xc518cf10 data 0xc5238c00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 514439 free 431834 avail 406113
  files 155902 ffiles 146776 favail 146776
  f_fsidx {0x1816, 0x846525d3} owner 0 ctime 0x5b3a4381
  syncwrites 2 asyncwrites = 51
  syncreads 38179 asyncreads = 0
  fstype "ffs" mnton "/usr/X11R6" mntfrom "/dev/sd1g" mntspec
"92626a597bdd4326
.g"
locked vnodes:
mountpoint 0xc534cc00
flags 1810<NODEV,WXALLOWED,LOCAL>
vnodecovered 0xc518ce20 syncer 0xc518cd30 data 0xc5238900
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 2202959 free 2023350 avail 1913203
  files 571646 ffiles 551739 favail 551739
  f_fsidx {0x1817, 0x8f9f3ca9} owner 0 ctime 0x5b3a4381
  syncwrites 2 asyncwrites = 328
  syncreads 86215 asyncreads = 0
  fstype "ffs" mnton "/usr/local" mntfrom "/dev/sd1h" mntspec
"92626a597bdd4326
.h"
locked vnodes:
mountpoint 0xc534c800
flags 1018<NOSUID,NODEV,LOCAL>
vnodecovered 0xc518ca60 syncer 0xc518c9e8 data 0xc5238e00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 1030527 free 1030526 avail 979000
  files 285822 ffiles 285821 favail 285821
  f_fsidx {0x181a, 0x90f2e278} owner 0 ctime 0x5b3a4381
  syncwrites 2 asyncwrites = 2
  syncreads 9 asyncreads = 0
  fstype "ffs" mnton "/usr/obj" mntfrom "/dev/sd1k" mntspec
"92626a597bdd4326.k
"
locked vnodes:
mountpoint 0xc534c000
flags 1018<NOSUID,NODEV,LOCAL>
vnodecovered 0xc518c8f8 syncer 0xc518c880 data 0xc5238b00
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 749247 free 361732 avail 324270
  files 207870 ffiles 131886 favail 131886
  f_fsidx {0x1819, 0xc03f69d7} owner 0 ctime 0x5b3a4381
  syncwrites 2 asyncwrites = 1071
  syncreads 343300 asyncreads = 0
  fstype "ffs" mnton "/usr/src" mntfrom "/dev/sd1j" mntspec
"92626a597bdd4326.j
"
locked vnodes:
mountpoint 0xc5351400
flags 1018<NOSUID,NODEV,LOCAL>
vnodecovered 0xc518c718 syncer 0xc518c6a0 data 0xc5352100
vfsconf: ops 0xc0730710 name "ffs" num 1 ref 9 flags 0x1000
statvfs cache: bsize 800 iosize 4000
blocks 1562327 free 1553545 avail 1475429
  files 415742 ffiles 414899 favail 414899
  f_fsidx {0x1814, 0xcd700600} owner 0 ctime 0x5b3a4381
  syncwrites 1933 asyncwrites = 23203
  syncreads 64761 asyncreads = 0
  fstype "ffs" mnton "/var" mntfrom "/dev/sd1e" mntspec "92626a597bdd4326.e"
locked vnodes:
ddb> machine     kill        print       p           pprint      examine
x           search      set         write       w           delete
d           break       dwatch      watch       step        s
continue    c           until       next        match       trace
bt          call        ps          callout     show        boot
help        hangman     dmesg
ddb> Bad character
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
uvm_fault+0xe68
        rlv=0xc03b2b14 rfp=0xcb3a6df8
data_abort_handler+0x228
        rlv=0xc046c4e0 rfp=0xcb3a6e50
$a.13
        rlv=0xc04effdc rfp=0xcb3a6f80
uvm_fault+0x534
        rlv=0xc03b3050 rfp=0xcb3a6fa8
prefetch_abort_handler+0x118
        rlv=0xc046c4e0 rfp=0xbffde6b0
ddb>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
*23841  332544  69327      0  7           0                sshd
 18968  142354  69327     27  3    0x100090  netio         sshd
 69327  514789  60921      0  3        0x82  netio         sshd
 96363  421410  59589     27  3    0x100090  select        sshd
 59589  224067  60921      0  3        0x82  poll          sshd
 45157  121578  57677     27  3    0x100090  select        sshd
 57677  132051  60921      0  3        0x82  poll          sshd
 71168   21638  80889     27  3    0x100090  select        sshd
 80889  183873  60921      0  3        0x82  poll          sshd
 47147  485770  80955     27  3    0x100090  select        sshd
 80955  486337  60921      0  3        0x82  poll          sshd
 32491  315952  99568     27  3    0x100090  select        sshd
 99568  152670  60921      0  3        0x82  poll          sshd
 81412   85935  48156     27  3    0x100090  select        sshd
 48156  383253  60921      0  3        0x82  poll          sshd
 19754   59555      1      0  3    0x100083  ttyin         getty
 71044  174866      1      0  3    0x100098  poll          cron
 80992  398622      1     99  3    0x100090  poll          sndiod
 85951  202473      1    110  3    0x100090  poll          sndiod
 85014  482961  57570     95  3    0x100092  kqread        smtpd
 26572  406507  57570    103  3    0x100092  kqread        smtpd
 65110  358135  57570     95  3    0x100092  kqread        smtpd
 64520  289601  57570     95  3    0x100092  kqread        smtpd
 75472  320418  57570     95  3    0x100092  kqread        smtpd
 45958  280247  57570     95  3    0x100092  kqread        smtpd
 57570  286294      1      0  3    0x100080  kqread        smtpd
 60921  122261      1      0  3        0x80  select        sshd
  6385   47432      1      0  3    0x100080  poll          ntpd
 46881    2152  90659     83  3    0x100092  poll          ntpd
 90659   96279      1     83  3    0x100092  poll          ntpd
 61640  455962  84284     74  3    0x100092  bpf           pflogd
 84284  389488      1      0  3        0x80  netio         pflogd
 14624    6167  36111     73  2    0x100090                syslogd
 36111  238446      1      0  3    0x100082  netio         syslogd
 57435  192051      1     77  3    0x100090  poll          dhclient
 90679  194645      1      0  3        0x80  poll          dhclient
 90556   16056  77102    115  3    0x100092  kqread        slaacd
 50255  415969  77102    115  3    0x100092  kqread        slaacd
 77102  187016      1      0  3        0x80  kqread        slaacd
 80444  340889      0      0  2     0x14200                zerothread
 65855  307895      0      0  3     0x14200  aiodoned      aiodoned
 48037  465353      0      0  3     0x14200  syncer        update
 31993  281027      0      0  3     0x14200  cleaner       cleaner
 30348  380788      0      0  3     0x14200  reaper        reaper
 ddb> the kernel did not panic
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
uvm_fault+0xe68
        rlv=0xc03b2b14 rfp=0xcb3a6df8
data_abort_handler+0x228
        rlv=0xc046c4e0 rfp=0xcb3a6e50
$a.13
        rlv=0xc04effdc rfp=0xcb3a6f80
uvm_fault+0x534
        rlv=0xc03b3050 rfp=0xcb3a6fa8
prefetch_abort_handler+0x118
        rlv=0xc046c4e0 rfp=0xbffde6b0
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
ddb> pmap_enter+0x2f0
        rlv=0xc04f0910 rfp=0xcb3a6da8
uvm_fault+0xe68
        rlv=0xc03b2b14 rfp=0xcb3a6df8
data_abort_handler+0x228
        rlv=0xc046c4e0 rfp=0xcb3a6e50
$a.13
        rlv=0xc04effdc rfp=0xcb3a6f80
uvm_fault+0x534
        rlv=0xc03b3050 rfp=0xcb3a6fa8
prefetch_abort_handler+0x118
        rlv=0xc046c4e0 rfp=0xbffde6b0
ddb>
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
*23841  332544  69327      0  7           0                sshd
 18968  142354  69327     27  3    0x100090  netio         sshd
 69327  514789  60921      0  3        0x82  netio         sshd
 96363  421410  59589     27  3    0x100090  select        sshd
 59589  224067  60921      0  3        0x82  poll          sshd
 45157  121578  57677     27  3    0x100090  select        sshd
 57677  132051  60921      0  3        0x82  poll          sshd
 71168   21638  80889     27  3    0x100090  select        sshd
 80889  183873  60921      0  3        0x82  poll          sshd
 47147  485770  80955     27  3    0x100090  select        sshd
 80955  486337  60921      0  3        0x82  poll          sshd
 32491  315952  99568     27  3    0x100090  select        sshd
 99568  152670  60921      0  3        0x82  poll          sshd
 81412   85935  48156     27  3    0x100090  select        sshd
 48156  383253  60921      0  3        0x82  poll          sshd
 19754   59555      1      0  3    0x100083  ttyin         getty
 71044  174866      1      0  3    0x100098  poll          cron
 80992  398622      1     99  3    0x100090  poll          sndiod
 85951  202473      1    110  3    0x100090  poll          sndiod
 85014  482961  57570     95  3    0x100092  kqread        smtpd
 26572  406507  57570    103  3    0x100092  kqread        smtpd
 65110  358135  57570     95  3    0x100092  kqread        smtpd
 64520  289601  57570     95  3    0x100092  kqread        smtpd
 75472  320418  57570     95  3    0x100092  kqread        smtpd
 45958  280247  57570     95  3    0x100092  kqread        smtpd
 57570  286294      1      0  3    0x100080  kqread        smtpd
 60921  122261      1      0  3        0x80  select        sshd
  6385   47432      1      0  3    0x100080  poll          ntpd
 46881    2152  90659     83  3    0x100092  poll          ntpd
 90659   96279      1     83  3    0x100092  poll          ntpd
 61640  455962  84284     74  3    0x100092  bpf           pflogd
 84284  389488      1      0  3        0x80  netio         pflogd
 14624    6167  36111     73  2    0x100090                syslogd
 36111  238446      1      0  3    0x100082  netio         syslogd
 57435  192051      1     77  3    0x100090  poll          dhclient
 90679  194645      1      0  3        0x80  poll          dhclient
 90556   16056  77102    115  3    0x100092  kqread        slaacd
 50255  415969  77102    115  3    0x100092  kqread        slaacd
 77102  187016      1      0  3        0x80  kqread        slaacd
 80444  340889      0      0  2     0x14200                zerothread
 65855  307895      0      0  3     0x14200  aiodoned      aiodoned
 48037  465353      0      0  3     0x14200  syncer        update
 31993  281027      0      0  3     0x14200  cleaner       cleaner
 30348  380788      0      0  3     0x14200  reaper        reaper
 88050  290534      0      0  3     0x14200  pgdaemon      pagedaemon
 27458   22991      0      0  3     0x14200  bored         crynlk
 17357  500842      0      0  3     0x14200  bored         crypto
 94589  161562      0      0  3     0x14200  mmctsk        sdmmc1
 45022  188356      0      0  3     0x14200  mmctsk        sdmmc0
 10360  132048      0      0  3     0x14200  bored         softnet
 25701  378778      0      0  3     0x14200  bored         systqmp
 98484   54600      0      0  3     0x14200  bored         systq
 85769  355533      0      0  3  0x40014200  bored         softclock
 62826   39652      0      0  3  0x40014200                idle0
 91895   22905      0      0  3     0x14200  kmalloc       kmthread
     1   19152      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb> show panic
the kernel did not panic
ddb> show uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  126264 VM pages: 5849 active, 4864 inactive, 0 wired, 87039 free (10874
zero)

  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  pages  0 anon, 0 vnode, 0 vtext
  freemin=4208, free-target=5610, inactive-target=0, wired-max=42088
  faults=9889713, traps=10710231, intrs=0, ctxswitch=14512461 fpuswitch=0
  softint=19542587, syscalls=10697830, kmapent=14
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=11840(11841), anget(retries)=5340510(0),
amapcopy=2898969

    neighbor anon/obj pg=339368/8369035, gets(lock/unlock)=2315618/11841
    cases: anon=4778274, anoncow=562236, obj=2042017, prcopy=273600,
przero=223
3584
  daemon and swap counts:
    woke=0, revs=0, scans=0, obscans=0, anscans=0
    busy=0, freed=0, reactivate=0, deactivate=0
    pageouts=0, pending=0, nswget=0
    nswapdev=1, nanon=0, nanonneeded=0 nfreeanon=0
    swpages=196607, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0xc079141c
ddb> show bcstats
Current Buffer Cache status:
numbufs 6293 busymapped 0, delwri 5
kvaslots 409 avail kva slots 409
bufpages 25148, dmapages 25148, dirtypages 20
pendingreads 0, pendingwrites 0
highflips 0, highflops 0, dmaflips 0


--
-alfred