Current-Users archive

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

Re: Panic on evbarm triggered by dumpfs





On Wed, 15 Jan 2014, Christos Zoulas wrote:

On Jan 15, 10:16am, petri.laakso%asd.fi@localhost (Petri Laakso) wrote:
-- Subject: Re: Panic on evbarm triggered by dumpfs

| evbarm# fdisk ld0
| Disk: /dev/rld0c
| NetBSD disklabel disk geometry:
| cylinders: 975, heads: 64, sectors/track: 63 (4032 sectors/cylinder)
| total sectors: 3932160, bytes/sector: 512
|
| BIOS disk geometry:
| cylinders: 245, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
| total sectors: 3932160
|
| Partitions aligned to 16065 sector boundaries, offset 63
|
| Partition table:
| 0: DM6 Aux3 (sysid 83)
|      start 63, size 32067 (16 MB, Cyls 0-1)
|          PBR is not bootable: All bytes are identical (0x00)
| 1: NetBSD (sysid 169)
|      start 32130, size 3900030 (1904 MB, Cyls 2-244/195/15)
|          PBR is not bootable: All bytes are identical (0x00)
| 2: <UNUSED>
| 3: <UNUSED>
| No active partition.
|
| evbarm# disklabel ld0
| # /dev/rld0c:
| type: SCSI
| disk: STORAGE DEVICE
| label: fictitious
| flags: removable
| bytes/sector: 512
| sectors/track: 32
| tracks/cylinder: 64
| sectors/cylinder: 2048
| cylinders: 1920
| total sectors: 3932160
| rpm: 3600
| interleave: 1
| trackskew: 0
| cylinderskew: 0
| headswitch: 0           # microseconds
| track-to-track seek: 0  # microseconds
| drivedata: 0
|
| 6 partitions:
| #        size    offset     fstype [fsize bsize cpg/sgs]
|   a:   3637886     32130     4.2BSD   2048 16384     0  # (Cyl.     15*-   
1791)
|   b:    262144   3670016       swap                     # (Cyl.   1792 -   
1919)
|   c:   3932160         0     unused      0     0        # (Cyl.      0 -   
1919)
|   d:   3932160         0     unused      0     0        # (Cyl.      0 -   
1919)
|   e:     32067        63    unknown                     # (Cyl.      0*-     
15*)


This looks fine to me. Can you break it if you don't reboot?


I was able to do that on second try. lots of output below.
Yesterday I disabled logging, but it didn't change anything.

Now when I tried hard, I was able to crash the system without shutdown.

# Second try @ single user read-only

[repeated calls to dumpfs, only picked up interesting ones below]
# dumpfs /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs /dev/rld0a
[1]   Bus error               dumpfs /dev/rld0a
# dumpfs /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# scan_ffs /dev/rld0a
Disk: STORAGE DEVICE  fictitious
Total sectors on disk: 3932160

panic: pool_get: pvepl: page empty
Stopped in pid 46.1 (scan_ffs) at       netbsd:cpu_Debugger+0x4:        bx
r
14
db> bt
0xcbab9c1c: netbsd:vpanic+0x10
0xcbab9c34: netbsd:printf_nolog
0xcbab9c6c: netbsd:pool_get+0x304
0xcbab9cc8: netbsd:pmap_enter+0x748
0xcbab9d00: netbsd:vmapbuf+0xbc
0xcbab9d60: netbsd:physio+0x28c
0xcbab9d80: netbsd:ldread+0x40
0xcbab9da0: netbsd:cdev_read+0x40
0xcbab9e04: netbsd:spec_read+0x6c
0xcbab9e14: netbsd:ufsspec_read+0x44
0xcbab9e3c: netbsd:VOP_READ+0x38
0xcbab9e64: netbsd:vn_read+0x84
0xcbab9eb4: netbsd:dofileread+0x84
0xcbab9eec: netbsd:sys_pread+0xa0
0xcbab9f80: netbsd:syscall+0x88
0xcbab9fac: netbsd:swi_handler+0x9c
db>

# First try

Enter pathname of shell or RETURN for /bin/sh:                        [158/1905]
Terminal type is vt100.
We recommend that you create a non-root account and use su(1) for root access.
# cat /etc/fstab
#/dev/ld0a       /       ffs     rw,log,noatime  1 1
#/dev/ld0a       /       ffs     rw,noatime  1 1
/dev/ld0a       /       ffs     rw  1 1
/dev/ld0b       none    swap    sw,dp   0 0
ptyfs   /dev/pts        ptyfs   rw
kernfs          /kern   kernfs  rw
procfs          /proc   procfs  rw
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
file system: /dev/rld0a
format  FFSv2
endian  little-endian
location 65536  (-b 128)
magic   19540119        time    Wed Jan 15 12:36:40 2014
superblock location     65536   id      [ 52d57477 69a9a8b3 ]
cylgrp  dynamic inodes  FFSv2   sblock  FFSv2   fslevel 5
nbfree  101391  ndir    1359    nifree  213195  nffree  185
ncg     10      size    909471  blocks  881670
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
bpg     11369   fpg     90952   ipg     22080
minfree 5%      optim   time    maxcontig 4     maxbpg  2048
symlinklen 120  contigsumsize 4
maxfilesize 0x000080100202ffff
nindir  2048    inopb   64
avgfilesize 16384       avgfpdir 64
sblkno  40      cblkno  48      iblkno  56      dblkno  2816
sbsize  2048    cgsize  16384
csaddr  2816    cssize  2048
cgrotor 0       fmod    0       ronly   0       clean   0x01
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 1830400      loc1 3424       loc2 512        loc3 966
flags   none
fsmnt   /
volname         swuid   0
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Bus error               dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Bus error               dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
#
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
file system: /dev/rld0a
format  FFSv2
endian  little-endian
location 65536  (-b 128)
magic   19540119        time    Wed Jan 15 12:36:40 2014
superblock location     65536   id      [ 52d57477 69a9a8b3 ]
cylgrp  dynamic inodes  FFSv2   sblock  FFSv2   fslevel 5
nbfree  101391  ndir    1359    nifree  213195  nffree  185
ncg     10      size    909471  blocks  881670
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
bpg     11369   fpg     90952   ipg     22080
minfree 5%      optim   time    maxcontig 4     maxbpg  2048
symlinklen 120  contigsumsize 4
maxfilesize 0x000080100202ffff
nindir  2048    inopb   64
avgfilesize 16384       avgfpdir 64
sblkno  40      cblkno  48      iblkno  56      dblkno  2816
sbsize  2048    cgsize  16384
csaddr  2816    cssize  2048
cgrotor 0       fmod    0       ronly   0       clean   0x01
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 1830400      loc1 3424       loc2 512        loc3 966
flags   none
fsmnt   /
volname         swuid   0
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
[1]   Segmentation fault      dumpfs -s /dev/rld0a
#
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: (null): could not find superblock, skipped
# dumpfs -s /dev/rld0a
dumpfs: /dev/rld0a: could not find superblock, skipped
# shutdown -p now
Shutdown NOW!
shutdown: [pid 84]
# panic: pool_get: pvepl: page empty
Stopped in pid 85.1 (sh) at     netbsd:cpu_Debugger+0x4:        bx      r14
db> bt
0xcbab9d30: netbsd:vpanic+0x10
0xcbab9d48: netbsd:printf_nolog
0xcbab9d80: netbsd:pool_get+0x304
0xcbab9ddc: netbsd:pmap_enter+0x748
0xcbab9e0c: netbsd:uvm_fault_lower_enter.clone.10+0x7c
0xcbab9f30: netbsd:uvm_fault_internal+0xc6c
0xcbab9fac: netbsd:data_abort_handler+0x398
db> show reg
spsr        60000013
r0          c03ff29c    pic_sources
r1          63061
r2          63061
r3          1
r4          c0406938    scratchstr.10734
r5          c040691c    panicstr
r6          c0405e2c    msgbufenabled
r7          c02e5edc    copyright+0x16ad8
r8          cbab9d50
r9          104
r10         c040691c    panicstr
r11         cbab9d30
r12         cbab9d08
usr_sp      bfffd7c8
usr_lr      40172868
svc_sp      cbab9d08
svc_lr      c01c2570    vpanic+0x128
pc          c003aa50    cpu_Debugger+0x4
und_sp      c0422000
abt_sp      c041f000
irq_sp      c0421000
netbsd:cpu_Debugger+0x4:        bx      r14
db>



Home | Main Index | Thread Index | Old Index