Hello.

I have an Element14 Beaglebone Black clone which panics during "make
build", but only if /tmp is mounted on tmpfs. Without using tmpfs,
the build completes fine; if /tmp is mounted, it panics (tested twice).

tmpfs /tmp tmpfs rw,nodev,nosuid,noexec 0 0

I do not have a swap partition configured - is that, perhaps,
a contributing factor? During the last test the build stopped here:

SSH session:
building shared c library (version 84.1)
cc -shared -fpic -o libc.so.84.1  `lorder [...long list]


Console:
Fatal kernel mode data abort: 'Alignment Fault 1'
trapframe: 0xcb9b6cec
DFSR=00000801, DFAR=cb9bb965, spsr=20000113
r0 =cb9bb965, r1 =00000000, r2 =0000069c, r3 =00000000
r4 =00000000, r5 =00000000, r6 =00000000, r7 =00000000
r8 =00000962, r9 =00000002, r10=c068f578, r11=cb9b6d84
r12=cb9b6cc8, ssp=cb9b6d38, slr=c03fdcf4, pc =c052467c

Stopped at      memset+0x58:    stmia   r0!, {r3-r6}
ddb>

ddb> trace
tmpfs_zeropg+0xc
        scp=0xc03fdc8c rlv=0xc0400088 (tmpfs_reg_resize+0x230)
        rsp=0xcb9b6d88 rfp=0xcb9b6dd0
        r10=0xc92a6444 r8=0x00000002 r7=0xfffff000 r6=0x00000000
        r5=0x00000002 r4=0xffffffff
tmpfs_reg_resize+0xc
        scp=0xc03ffe64 rlv=0xc0403d20 (tmpfs_write+0x10c)
        rsp=0xcb9b6dd4 rfp=0xcb9b6e10
        r10=0xc92a88a0 r9=0x00000000 r8=0xc92a6444 r7=0xcb9b6ec4
        r6=0x00000001 r5=0x00000003 r4=0x00000000
tmpfs_write+0x10
        scp=0xc0403c24 rlv=0xc03f0970 (VOP_WRITE+0x3c)
        rsp=0xcb9b6e14 rfp=0xcb9b6e34
        r10=0xcb9b6f24 r9=0xcb678010 r8=0xc920ba20 r7=0x00000015
        r6=0xc92a88a0 r5=0xcb9b6ec4 r4=0x00000003
VOP_WRITE+0xc
        scp=0xc03f0940 rlv=0xc03f1540 (vn_write+0x94)
        rsp=0xcb9b6e38 rfp=0xcb9b6e64
vn_write+0xc
        scp=0xc03f14b8 rlv=0xc03c6800 (dofilewritev+0x19c)
        rsp=0xcb9b6e68 rfp=0xcb9b6f10
        r10=0xcb9b6f24 r9=0xc920ba08 r8=0xcb9b6f78 r7=0x00000001
        r6=0xcb678010 r5=0xcb9b6f2c r4=0x00000015
dofilewritev+0xc
        scp=0xc03c6670 rlv=0xc03c6a64 (sys_write+0x80)
        rsp=0xcb9b6f14 rfp=0xcb9b6f50
        r10=0x416dd80a r9=0x00000004 r8=0xcb9b6f78 r7=0x00000004
        r6=0xcb678010 r5=0xcb9b6fb8 r4=0xc920ba20
sys_write+0xc
        scp=0xc03c69f0 rlv=0xc0533900 (swi_handler+0x174)
        rsp=0xcb9b6f54 rfp=0xcb9b6fb0
        r8=0x00000004 r7=0xcb9b6fb4 r6=0xcb678010 r5=0x00100000
        r4=0xcb9b6fb8
swi_handler+0x10
        scp=0xc053379c rlv=0xc0535ed0 (swi_entry+0x20)
        rsp=0xcb9b6fb4 rfp=0xbffca9f4
        r10=0x416dd80a r9=0x00000000 r8=0x4b23f900 r7=0x0002754c
        r6=0x0002753c r5=0x0002753c r4=0x477773e0

ddb> ps
   TID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
*25604  15196   9469   1000  7    0x100003                sed
 28398  15196   9469   1000  3    0x100003  netio         nm
 30565   7896   9469   1000  3    0x100083  piperd        tsort
 15196   7896   9469   1000  3    0x10008b  pause         sh
  7896  26274   9469   1000  3    0x100083  piperd        sh
 26274   8323   9469   1000  3    0x10008b  pause         make
  8323  26286   9469   1000  3    0x10008b  pause         sh
 26286   7783   9469   1000  3    0x10008b  pause         make
  7783  14486   9469   1000  3    0x10008b  pause         sh
 14486   9469   9469   1000  3    0x10008b  pause         make
  9469  22539   9469   1000  3    0x10008b  pause         sh
 22539  29161  22539   1000  3    0x10008b  pause         ksh
 29161      1  29161   1000  3    0x100080  kqread        tmux
 15949   2177  15949   1000  3    0x100083  kqread        tmux
 16344      0      0      0  3     0x14280  nfsidl        nfsio
 20918      0      0      0  3     0x14280  nfsidl        nfsio
 22034      0      0      0  3     0x14280  nfsidl        nfsio
 12238      0      0      0  3     0x14280  nfsidl        nfsio
  2177  26249   2177   1000  3    0x10008b  pause         ksh
 26249  18016  18016   1000  3        0x90  select        sshd
 18016   9396  18016      0  3        0x92  poll          sshd
 11511      1  11511      0  3    0x100083  ttyin         getty
 18586      1  18586      0  3    0x100088  poll          cron
  6144  23247  23247     95  3    0x100090  kqread        smtpd
 14835  23247  23247     95  3    0x100090  kqread        smtpd
 21590  23247  23247     95  3    0x100090  kqread        smtpd
 27375  23247  23247     95  3    0x100090  kqread        smtpd
 31868  23247  23247     95  3    0x100090  kqread        smtpd
 19914  23247  23247    103  3    0x100090  kqread        smtpd
 23247      1  23247      0  3    0x100080  kqread        smtpd
  9396      1   9396      0  3        0x80  select        sshd
 24084      1  24084      0  3    0x100080  poll          ntpd
 29704   5624  29704     83  3    0x100090  poll          ntpd
  5624      1   5624     83  3    0x100090  poll          ntpd
  9281  28350  28350     74  3    0x100090  bpf           pflogd
 28350      1  28350      0  3        0x80  netio         pflogd
 21263  10218  10218     73  2    0x100090                syslogd
 10218      1  10218      0  3    0x100080  netio         syslogd
 31200      1  31200     77  3        0x90  poll          dhclient
 17800      1  17800      0  3        0x80  poll          dhclient
 22122      0      0      0  3     0x14200  pgzero        zerothread
 19751      0      0      0  3     0x14200  aiodoned      aiodoned
 19223      0      0      0  3     0x14200  syncer        update
  3147      0      0      0  3     0x14200  cleaner       cleaner
  2140      0      0      0  3     0x14200  reaper        reaper
 30847      0      0      0  3     0x14200  pgdaemon      pagedaemon
 12601      0      0      0  3     0x14200  bored         crypto
 32738      0      0      0  3     0x14200  pftm          pfpurge
  8147      0      0      0  3     0x14200  mmctsk        sdmmc1
  7886      0      0      0  3     0x14200  mmctsk        sdmmc0
 20607      0      0      0  2     0x14200                softnet
 19171      0      0      0  3     0x14200  bored         systqmp
 20147      0      0      0  3     0x14200  bored         systq
 30122      0      0      0  3  0x40014200                idle0
 24068      0      0      0  3     0x14200  kmalloc       kmthread
     1      0      1      0  3        0x82  wait          init
     0     -1      0      0  3     0x10200  scheduler     swapper
ddb>

ddb> show registers
spsr          0x20000113
r0            0xcb9bb965        _bss_end__+0xb2a8ed1
r1                     0
r2                 0x69c        fiqvector+0x680
r3                     0
r4                     0
r5                     0
r6                     0
r7                     0
r8                 0x962        fiqvector+0x946
r9                   0x2
r10           0xc068f578        kernel_map
r11           0xcb9b6d84        _bss_end__+0xb2a42f0
r12           0xcb9b6cc8        _bss_end__+0xb2a4234
usr_sp        0xbffca96c
usr_lr            0xc9b8        fiqvector+0xc99c
svc_sp        0xcb9b6d38        _bss_end__+0xb2a42a4
svc_lr        0xc03fdcf4        tmpfs_zeropg+0x74
pc            0xc052467c        memset+0x58
und_sp        0xcb9b5ff0        _bss_end__+0xb2a355c
abt_sp        0xc07a4000        _bss_end__+0x9156c
irq_sp        0xc07a3000        _bss_end__+0x9056c
memset+0x58:    stmia   r0!, {r3-r6}

ddb> show panic
the kernel did not panic

ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim Kern Lim
         devbuf   685    273K     274K  39321K      1210        0        0
            pcb    65     10K      11K  39321K       120        0        0
         rtable    84      3K       4K  39321K       128        0        0
         ifaddr    30      7K       7K  39321K        31        0        0
       ioctlops     0      0K       4K  39321K      1475        0        0
            iov     0      0K       0K  39321K         1        0        0
          mount     3      3K       3K  39321K         3        0        0
      NFS mount     1      0K       0K  39321K         1        0        0
         vnodes    14      0K      62K  39321K      1009        0        0
      UFS quota     1      8K       8K  39321K         1        0        0
      UFS mount     5     12K      12K  39321K         5        0        0
            shm     2      0K       0K  39321K         2        0        0
         VM map     2      0K       0K  39321K         2        0        0
            sem     2      0K       0K  39321K         2        0        0
        dirhash    27      4K       6K  39321K        54        0        0
        VM pmap    37      0K       0K  39321K     25014        0        0
      file desc     8      2K       2K  39321K         8        0        0
           proc    12      2K       2K  39321K        12        0        0
    VFS cluster     0      0K       0K  39321K        11        0        0
    NFS srvsock     1      0K       0K  39321K         1        0        0
     NFS daemon     1      8K       8K  39321K         1        0        0
       in_multi    14      0K       0K  39321K        14        0        0
    ether_multi     1      0K       0K  39321K         1        0        0
    ISOFS mount     1      8K       8K  39321K         1        0        0
  MSDOSFS mount     1      4K       4K  39321K         1        0        0
           ttys   378    259K     259K  39321K       378        0        0
           exec     0      0K       1K  39321K     50059        0        0
   miscfs mount     1      0K       0K  39321K         1        0        0
     pfkey data     1      0K       0K  39321K         2        0        0
        pagedep     1      2K       2K  39321K         1        0        0
       inodedep     1      8K      19K  39321K       188        0        0
         newblk     1      0K       0K  39321K         1        0        0
       indirdep     0      0K      16K  39321K         1        0        0
        VM swap     1      0K       2K  39321K         4        0        0
       UVM amap  4860    181K     274K  39321K   2510515        0        0
       UVM aobj     4      1K       1K  39321K      1867        0        0
    crypto data     1      1K       1K  39321K         1        0        0
            NDP     4      0K       0K  39321K         4        0        0
           temp    78     34K      98K  39321K    256953        0        0

dmesg:

U-Boot SPL 2015.07 (Aug 14 2015 - 15:33:22)
*** Warning - bad CRC, using default environment

reading u-boot.img
reading u-boot.img


U-Boot 2015.07 (Aug 14 2015 - 15:33:22 +1000)

       Watchdog enabled
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
158 bytes read in 3 ms (50.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading bsd.umg
4665880 bytes read in 256 ms (17.4 MiB/s)
## Booting kernel from Legacy Image at 82800000 ...
   Image Name:   boot
   Created:      2015-11-04  11:48:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4665816 Bytes = 4.4 MiB
   Load Address: 80300000
   Entry Point:  80300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


OpenBSD/omap booting ...
arg0 0x0 arg1 0xe05 arg2 0x80000100
atag core flags 0 pagesize 0 rootdev 0
atag cmdline [sd0i:/bsd.umg]
atag mem start 0x80000000 size 0x20000000
bootfile: sd0i:/bsd.umg
bootargs:
memory size derived from u-boot
bootconf.mem[0].address = 80000000 pages 131072/0x20000000
Allocating page tables
freestart = 0x80774000, free_pages = 129164 (0x0001f88c)
IRQ stack: p0x807a2000 v0xc07a2000
ABT stack: p0x807a3000 v0xc07a3000
UND stack: p0x807a4000 v0xc07a4000
SVC stack: p0x807a5000 v0xc07a5000
Creating L1 page table at 0x80774000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ using 395076 bytes of bsd ELF symbol table ]
board type: 3589
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.8-current (GENERIC) #149: Wed Nov  4 22:47:19 AEDT 2015
    [email protected]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 536870912 (512MB)
avail mem = 518381568 (494MB)
warning: no entropy supplied by boot loader
mainbus0 at root
cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core)
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: TI AM335x BeagleBone
prcm0 at omap0 rev 0.2
sitaracm0 at omap0: control module, rev 1.0
intc0 at omap0 rev 5.0
edma0 at omap0 rev 0.0
dmtimer0 at omap0 rev 3.1
dmtimer1 at omap0 rev 3.1
omdog0 at omap0 rev 0.1
omgpio0 at omap0: rev 0.1
gpio0 at omgpio0: 32 pins
omgpio1 at omap0: rev 0.1
gpio1 at omgpio1: 32 pins
omgpio2 at omap0: rev 0.1
gpio2 at omgpio2: 32 pins
omgpio3 at omap0: rev 0.1
gpio3 at omgpio3: 32 pins
omap0: device tiiic unit 0 not configured
omap0: device tiiic unit 1 not configured
omap0: device tiiic unit 2 not configured
ommmc0 at omap0
sdmmc0 at ommmc0
ommmc1 at omap0
sdmmc1 at ommmc1
com0 at omap0: ti16750, 64 byte fifo
com0: console
cpsw0 at omap0: version 1.12 (0), address 78:a5:04:ca:1e:52
ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0001f0, model 0x000f
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed
sd0: 3688MB, 512 bytes/sector, 7553024 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (6b49fa5314aa91c3.a) swap on sd0b dump on sd0b

Reply via email to