ddb trap 4 happens on edgerouter boot

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

ddb trap 4 happens on edgerouter boot

Sergey Bronnikov-3
>Synopsis: ddb trap 4 happens on edgerouter boot
>Category: system mips64
>Environment:
        System      : OpenBSD 6.4
        Details     : OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC 2018
    visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC

        Architecture: OpenBSD.mips64
        Machine     : octeon
>Description:
        For unknown reasons device became unbootable.
        Native OS (Linux) works fine on the same device.
>How-To-Repeat:
        boot edgerouter lite
>Fix:
        unknown

Looking for valid bootloader image....
Jumping to start of image at address 0xbfc80000


U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012 - 15:48:51)

BIST check passed.
UBNT_E100 r1:2, r2:14, serial #: DC9FDB28B240
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) scanning bus for devices...
      USB device not responding, giving up (status=0)
1 USB Devices found
       scanning bus for storage devices...
No device found. Not initialized?
 4  3  2  1  0
(Re)start USB...
USB:   (port 0) scanning bus for devices... 1 USB Devices found
       scanning bus for storage devices...
  Device 0: Vendor: General  Prod.: USB Flash Disk   Rev: 1100
            Type: Removable Hard Disk
            Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)
reading bsd
.
.....
.......................

5851467 bytes read
argv[2]: numcores=2
ELF file is 64 bit
Allocating memory for ELF segment: addr: 0xffffffff81000000 (adjusted to: 0x1000000), size 0x588c30
Allocated memory for ELF segment: addr: 0xffffffff81000000, size 0x588c30
Processing PHDR 0
  Loading 4f7ef8 bytes at ffffffff81000000
  Clearing 90d38 bytes at ffffffff814f7ef8
## Loading Linux kernel with entry point: 0xffffffff81000000 ...
Bootloader: Done loading app on coremask: 0x3
bootmem desc 0x24108 version 3.0
avail phys mem 0x00000000001004d0 - 0x0000000000fffcd0
avail phys mem 0x0000000001588c30 - 0x0000000008100000
avail phys mem 0x0000000008100010 - 0x000000000fffdc00
avail phys mem 0x0000000410000000 - 0x000000041ff00000
Total DRAM Size 0x0000000020000000
mem_layout[0] page 0x0000000000000041 -> 0x00000000000003FF
mem_layout[1] page 0x0000000000000563 -> 0x0000000000002040
mem_layout[2] page 0x0000000000002041 -> 0x0000000000003FFFInitial setup done, switching console.
boot_desc->desc_ver:7
boot_desc->desc_size:400
boot_desc->stack_top:0
boot_desc->heap_start:0
boot_desc->heap_end:0
boot_desc->argc:3
boot_desc->flags:0x5
boot_desc->core_mask:0x3
boot_desc->dram_size:512
boot_desc->phy_mem_desc_addr:0
boot_desc->debugger_flag_addr:0xa44
boot_desc->eclock:500000000
boot_desc->boot_info_addr:0x100200
boot_info->ver_major:1
boot_info->ver_minor:2
boot_info->stack_top:0
boot_info->heap_start:0
boot_info->heap_end:0
boot_info->boot_desc_addr:0
boot_info->exception_base_addr:0x1000
boot_info->stack_size:0
boot_info->flags:0x5
boot_info->core_mask:0x3
boot_info->dram_size:512
boot_info->phys_mem_desc_addr:0x24108
boot_info->debugger_flags_addr:0
boot_info->eclock:500000000
boot_info->dclock:266000000
boot_info->board_type:20002
boot_info->board_rev_major:2
boot_info->board_rev_minor:14
boot_info->mac_addr_count:3
boot_info->cf_common_addr:0
boot_info->cf_attr_addr:0
boot_info->led_display_addr:0
boot_info->dfaclock:0
boot_info->config_flags:0x8
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2018 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC 2018
    visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
real mem = 536870912 (512MB)
avail mem = 523878400 (499MB)
mainbus0 at root: board 20002 rev 2.14
cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
octciu0 at simplebus0
cn30xxsmi0 at simplebus0
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
dwctwo0 at iobus0 base 0x1180068000000 irq 56
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1
octrng0 at iobus0 base 0x1400000000000 irq 0
cn30xxgmx0 at iobus0 base 0x1180008000000
cnmac0 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
cnmac1 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
cnmac2 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2

Trap cause = 4 Frame 0x9800000410007d68
Trap PC 0xffffffff811de03c RA 0xffffffff8108a6d8 fault 0x20733d3078256d48
0xffffffff811ddc24 (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra 0xffffffff8108a6d8 sp 0x9800000410007ec0, sz 0
0xffffffff8108a5d0 (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra 0x10 sp 0x9800000410007ec0, sz 48
stacktrace: ra corrupted!
stopped on non ddb fault
Stopped at      0xffffffff811de03c:     lb      v0,208(s2)
ddb> show registers
at                0xffffffff814f0000
v0                0x98b06bcd8c01d5ea
v1                               0x1
a0                0xffffffff814e3ae8
a1                0xffffffff814e8a00
a2                                 0
a3                0xffffffff8144a440
a4                0xffffffff81587690
a5                                 0
a6                                 0
a7                0x9800000410007e00
t0                0xffffffff81582364
t1                               0x1
t2                                 0
t3                               0x1
s0                0xffffffff814e3b18
s1                0xffffffff814e8a00
s2                0x20733d3078256c78
s3                0xffffffff814321a0
s4                0xffffffff814e3ae8
s5                               0x3
s6                               0x3
s7                0xffffffffc00d5ca0
t8                0xc000000000002000
t9                0xffffffff8121a6d0
k0                0xffffffff8156e320
k1                0xc0000000000104b0
gp                0xffffffff814ea500
sp                0x9800000410007ec0
s8                                 0
ra                0xffffffff8108a6d8
sr                        0x100087e3
lo                                 0
hi                                 0
bad               0x20733d3078256d48
cs                              0x10
pc                0xffffffff811de03c
0xffffffff811de03c:     lb      v0,208(s2)
ddb> boot dump
syncing disks...
Trap cause = 2 Frame 0x98000004100078b8
Trap PC 0xffffffff810ccec4 RA 0xffffffff813aebfc fault 0x0
0xffffffff810ccea0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0xffffffff813aebfc sp 0x9800000410007a10, sz 32
0xffffffff813aeba0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0xffffffff8137e980 sp 0x9800000410007a30, sz 32
0xffffffff8137e430 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0x0 sp 0x9800000410007a50, sz 0
User-level: pid 0
Caught exception in ddb.
ddb> show panic
the kernel did not panic
ddb> boot
sync        crash       dump        halt        reboot      poweroff
ddb> continue
panic: trap
Stopped at      0xffffffff81312764:     jr      ra
0xffffffff81312768:      nop
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*     0      0      0     0x10000      0x200    0  swapper
0xffffffff81312760 (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
 0xffffffff8123a0e8 sp 0x9800000410007c10, sz 0
0xffffffff81239ea8 (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
 0x0 sp 0x9800000410007c10, sz 0
User-level: pid 0
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.

--
sergeyb@

Reply | Threaded
Open this post in threaded view
|

Re: ddb trap 4 happens on edgerouter boot

Rudolf Leitgeb
Am I correct in assuming, that your OpenBSD image lives
on a different medium than the original linux image?

Is there a chance that the flash medium holding the
OpenBSD image is defective?

On Sun, 2019-03-10 at 17:02 +0300, Sergey Bronnikov wrote:

> > Synopsis: ddb trap 4 happens on edgerouter boot
> > Category: system mips64
> > Environment:
>
> System      : OpenBSD 6.4
> Details     : OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC 2018
>     visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
>
> Architecture: OpenBSD.mips64
> Machine     : octeon
> > Description:
>
> For unknown reasons device became unbootable.
> Native OS (Linux) works fine on the same device.
> > How-To-Repeat:
>
> boot edgerouter lite
> > Fix:
>
> unknown
>
> Looking for valid bootloader image....
> Jumping to start of image at address 0xbfc80000
>
>
> U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012 - 15:48:51)
>
> BIST check passed.
> UBNT_E100 r1:2, r2:14, serial #: DC9FDB28B240
> Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
> DRAM:  512 MB
> Clearing DRAM....... done
> Flash:  4 MB
> Net:   octeth0, octeth1, octeth2
>
> USB:   (port 0) scanning bus for devices...
>       USB device not responding, giving up (status=0)
> 1 USB Devices found
>        scanning bus for storage devices...
> No device found. Not initialized?
>  4  3  2  1  0
> (Re)start USB...
> USB:   (port 0) scanning bus for devices... 1 USB Devices found
>        scanning bus for storage devices...
>   Device 0: Vendor: General  Prod.: USB Flash Disk   Rev: 1100
>             Type: Removable Hard Disk
>             Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)
> reading bsd
> .
> .....
> .......................
>
> 5851467 bytes read
> argv[2]: numcores=2
> ELF file is 64 bit
> Allocating memory for ELF segment: addr: 0xffffffff81000000 (adjusted to: 0x1000000),
> size 0x588c30
> Allocated memory for ELF segment: addr: 0xffffffff81000000, size 0x588c30
> Processing PHDR 0
>   Loading 4f7ef8 bytes at ffffffff81000000
>   Clearing 90d38 bytes at ffffffff814f7ef8
> ## Loading Linux kernel with entry point: 0xffffffff81000000 ...
> Bootloader: Done loading app on coremask: 0x3
> bootmem desc 0x24108 version 3.0
> avail phys mem 0x00000000001004d0 - 0x0000000000fffcd0
> avail phys mem 0x0000000001588c30 - 0x0000000008100000
> avail phys mem 0x0000000008100010 - 0x000000000fffdc00
> avail phys mem 0x0000000410000000 - 0x000000041ff00000
> Total DRAM Size 0x0000000020000000
> mem_layout[0] page 0x0000000000000041 -> 0x00000000000003FF
> mem_layout[1] page 0x0000000000000563 -> 0x0000000000002040
> mem_layout[2] page 0x0000000000002041 -> 0x0000000000003FFFInitial setup done, switching
> console.
> boot_desc->desc_ver:7
> boot_desc->desc_size:400
> boot_desc->stack_top:0
> boot_desc->heap_start:0
> boot_desc->heap_end:0
> boot_desc->argc:3
> boot_desc->flags:0x5
> boot_desc->core_mask:0x3
> boot_desc->dram_size:512
> boot_desc->phy_mem_desc_addr:0
> boot_desc->debugger_flag_addr:0xa44
> boot_desc->eclock:500000000
> boot_desc->boot_info_addr:0x100200
> boot_info->ver_major:1
> boot_info->ver_minor:2
> boot_info->stack_top:0
> boot_info->heap_start:0
> boot_info->heap_end:0
> boot_info->boot_desc_addr:0
> boot_info->exception_base_addr:0x1000
> boot_info->stack_size:0
> boot_info->flags:0x5
> boot_info->core_mask:0x3
> boot_info->dram_size:512
> boot_info->phys_mem_desc_addr:0x24108
> boot_info->debugger_flags_addr:0
> boot_info->eclock:500000000
> boot_info->dclock:266000000
> boot_info->board_type:20002
> boot_info->board_rev_major:2
> boot_info->board_rev_minor:14
> boot_info->mac_addr_count:3
> boot_info->cf_common_addr:0
> boot_info->cf_attr_addr:0
> boot_info->led_display_addr:0
> boot_info->dfaclock:0
> boot_info->config_flags:0x8
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> The Regents of the University of California.  All rights reserved.
> Copyright (c) 1995-2018 OpenBSD. All rights reserved.  https://www.OpenBSD.org
>
> OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC 2018
>     visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
> real mem = 536870912 (512MB)
> avail mem = 523878400 (499MB)
> mainbus0 at root: board 20002 rev 2.14
> cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
> cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
> clock0 at mainbus0: int 5
> octcrypto0 at mainbus0
> iobus0 at mainbus0
> simplebus0 at iobus0: "soc"
> octciu0 at simplebus0
> cn30xxsmi0 at simplebus0
> com0 at simplebus0: ns16550a, 64 byte fifo
> com0: console
> dwctwo0 at iobus0 base 0x1180068000000 irq 56
> usb0 at dwctwo0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1
> octrng0 at iobus0 base 0x1400000000000 irq 0
> cn30xxgmx0 at iobus0 base 0x1180008000000
> cnmac0 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
> cnmac1 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
> cnmac2 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2
>
> Trap cause = 4 Frame 0x9800000410007d68
> Trap PC 0xffffffff811de03c RA 0xffffffff8108a6d8 fault 0x20733d3078256d48
> 0xffffffff811ddc24 (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra
> 0xffffffff8108a6d8 sp 0x9800000410007ec0, sz 0
> 0xffffffff8108a5d0 (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra 0x10 sp
> 0x9800000410007ec0, sz 48
> stacktrace: ra corrupted!
> stopped on non ddb fault
> Stopped at      0xffffffff811de03c:     lb      v0,208(s2)
> ddb> show registers
> at                0xffffffff814f0000
> v0                0x98b06bcd8c01d5ea
> v1                               0x1
> a0                0xffffffff814e3ae8
> a1                0xffffffff814e8a00
> a2                                 0
> a3                0xffffffff8144a440
> a4                0xffffffff81587690
> a5                                 0
> a6                                 0
> a7                0x9800000410007e00
> t0                0xffffffff81582364
> t1                               0x1
> t2                                 0
> t3                               0x1
> s0                0xffffffff814e3b18
> s1                0xffffffff814e8a00
> s2                0x20733d3078256c78
> s3                0xffffffff814321a0
> s4                0xffffffff814e3ae8
> s5                               0x3
> s6                               0x3
> s7                0xffffffffc00d5ca0
> t8                0xc000000000002000
> t9                0xffffffff8121a6d0
> k0                0xffffffff8156e320
> k1                0xc0000000000104b0
> gp                0xffffffff814ea500
> sp                0x9800000410007ec0
> s8                                 0
> ra                0xffffffff8108a6d8
> sr                        0x100087e3
> lo                                 0
> hi                                 0
> bad               0x20733d3078256d48
> cs                              0x10
> pc                0xffffffff811de03c
> 0xffffffff811de03c:     lb      v0,208(s2)
> ddb> boot dump
> syncing disks...
> Trap cause = 2 Frame 0x98000004100078b8
> Trap PC 0xffffffff810ccec4 RA 0xffffffff813aebfc fault 0x0
> 0xffffffff810ccea0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0xffffffff813aebfc sp
> 0x9800000410007a10, sz 32
> 0xffffffff813aeba0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0xffffffff8137e980 sp
> 0x9800000410007a30, sz 32
> 0xffffffff8137e430 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0x0 sp
> 0x9800000410007a50, sz 0
> User-level: pid 0
> Caught exception in ddb.
> ddb> show panic
> the kernel did not panic
> ddb> boot
> sync        crash       dump        halt        reboot      poweroff
> ddb> continue
> panic: trap
> Stopped at      0xffffffff81312764:     jr      ra
> 0xffffffff81312768:      nop
>     TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
> *     0      0      0     0x10000      0x200    0  swapper
> 0xffffffff81312760 (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
>  0xffffffff8123a0e8 sp 0x9800000410007c10, sz 0
> 0xffffffff81239ea8 (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
>  0x0 sp 0x9800000410007c10, sz 0
> User-level: pid 0
> https://www.openbsd.org/ddb.html describes the minimum info required in bug
> reports.  Insufficient info makes it difficult to find and fix bugs.
>
> --
> sergeyb@
>

Reply | Threaded
Open this post in threaded view
|

Re: ddb trap 4 happens on edgerouter boot

Sergey Bronnikov
Hmm, it can be a good hypothesis. I'll check it and report here.



пн, 11 мар. 2019 г. в 12:41, Rudolf Leitgeb <[hidden email]>:

> Am I correct in assuming, that your OpenBSD image lives
> on a different medium than the original linux image?
>
> Is there a chance that the flash medium holding the
> OpenBSD image is defective?
>
> On Sun, 2019-03-10 at 17:02 +0300, Sergey Bronnikov wrote:
> > > Synopsis:   ddb trap 4 happens on edgerouter boot
> > > Category:   system mips64
> > > Environment:
> >
> >       System      : OpenBSD 6.4
> >       Details     : OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC
> 2018
> >     visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
> >
> >       Architecture: OpenBSD.mips64
> >       Machine     : octeon
> > > Description:
> >
> >       For unknown reasons device became unbootable.
> >       Native OS (Linux) works fine on the same device.
> > > How-To-Repeat:
> >
> >       boot edgerouter lite
> > > Fix:
> >
> >       unknown
> >
> > Looking for valid bootloader image....
> > Jumping to start of image at address 0xbfc80000
> >
> >
> > U-Boot 1.1.1 (UBNT Build ID: 4493936-g009d77b) (Build time: Sep 20 2012
> - 15:48:51)
> >
> > BIST check passed.
> > UBNT_E100 r1:2, r2:14, serial #: DC9FDB28B240
> > Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
> > DRAM:  512 MB
> > Clearing DRAM....... done
> > Flash:  4 MB
> > Net:   octeth0, octeth1, octeth2
> >
> > USB:   (port 0) scanning bus for devices...
> >       USB device not responding, giving up (status=0)
> > 1 USB Devices found
> >        scanning bus for storage devices...
> > No device found. Not initialized?
> >     4     3     2     1     0
> > (Re)start USB...
> > USB:   (port 0) scanning bus for devices... 1 USB Devices found
> >        scanning bus for storage devices...
> >   Device 0: Vendor: General  Prod.: USB Flash Disk   Rev: 1100
> >             Type: Removable Hard Disk
> >             Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)
> > reading bsd
> > .
> > .....
> > .......................
> >
> > 5851467 bytes read
> > argv[2]: numcores=2
> > ELF file is 64 bit
> > Allocating memory for ELF segment: addr: 0xffffffff81000000 (adjusted
> to: 0x1000000),
> > size 0x588c30
> > Allocated memory for ELF segment: addr: 0xffffffff81000000, size 0x588c30
> > Processing PHDR 0
> >   Loading 4f7ef8 bytes at ffffffff81000000
> >   Clearing 90d38 bytes at ffffffff814f7ef8
> > ## Loading Linux kernel with entry point: 0xffffffff81000000 ...
> > Bootloader: Done loading app on coremask: 0x3
> > bootmem desc 0x24108 version 3.0
> > avail phys mem 0x00000000001004d0 - 0x0000000000fffcd0
> > avail phys mem 0x0000000001588c30 - 0x0000000008100000
> > avail phys mem 0x0000000008100010 - 0x000000000fffdc00
> > avail phys mem 0x0000000410000000 - 0x000000041ff00000
> > Total DRAM Size 0x0000000020000000
> > mem_layout[0] page 0x0000000000000041 -> 0x00000000000003FF
> > mem_layout[1] page 0x0000000000000563 -> 0x0000000000002040
> > mem_layout[2] page 0x0000000000002041 -> 0x0000000000003FFFInitial setup
> done, switching
> > console.
> > boot_desc->desc_ver:7
> > boot_desc->desc_size:400
> > boot_desc->stack_top:0
> > boot_desc->heap_start:0
> > boot_desc->heap_end:0
> > boot_desc->argc:3
> > boot_desc->flags:0x5
> > boot_desc->core_mask:0x3
> > boot_desc->dram_size:512
> > boot_desc->phy_mem_desc_addr:0
> > boot_desc->debugger_flag_addr:0xa44
> > boot_desc->eclock:500000000
> > boot_desc->boot_info_addr:0x100200
> > boot_info->ver_major:1
> > boot_info->ver_minor:2
> > boot_info->stack_top:0
> > boot_info->heap_start:0
> > boot_info->heap_end:0
> > boot_info->boot_desc_addr:0
> > boot_info->exception_base_addr:0x1000
> > boot_info->stack_size:0
> > boot_info->flags:0x5
> > boot_info->core_mask:0x3
> > boot_info->dram_size:512
> > boot_info->phys_mem_desc_addr:0x24108
> > boot_info->debugger_flags_addr:0
> > boot_info->eclock:500000000
> > boot_info->dclock:266000000
> > boot_info->board_type:20002
> > boot_info->board_rev_major:2
> > boot_info->board_rev_minor:14
> > boot_info->mac_addr_count:3
> > boot_info->cf_common_addr:0
> > boot_info->cf_attr_addr:0
> > boot_info->led_display_addr:0
> > boot_info->dfaclock:0
> > boot_info->config_flags:0x8
> > Copyright (c) 1982, 1986, 1989, 1991, 1993
> >       The Regents of the University of California.  All rights reserved.
> > Copyright (c) 1995-2018 OpenBSD. All rights reserved.
> https://www.OpenBSD.org
> >
> > OpenBSD 6.4 (GENERIC) #0: Sat Oct 13 03:41:10 UTC 2018
> >     visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC
> > real mem = 536870912 (512MB)
> > avail mem = 523878400 (499MB)
> > mainbus0 at root: board 20002 rev 2.14
> > cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
> > cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
> > clock0 at mainbus0: int 5
> > octcrypto0 at mainbus0
> > iobus0 at mainbus0
> > simplebus0 at iobus0: "soc"
> > octciu0 at simplebus0
> > cn30xxsmi0 at simplebus0
> > com0 at simplebus0: ns16550a, 64 byte fifo
> > com0: console
> > dwctwo0 at iobus0 base 0x1180068000000 irq 56
> > usb0 at dwctwo0: USB revision 2.0
> > uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev
> 2.00/1.00 addr 1
> > octrng0 at iobus0 base 0x1400000000000 irq 0
> > cn30xxgmx0 at iobus0 base 0x1180008000000
> > cnmac0 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> > atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2
> > cnmac1 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> > atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2
> > cnmac2 at cn30xxgmx0: RGMII, address xx:xx:xx:xx:xx:xx
> > atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2
> >
> > Trap cause = 4 Frame 0x9800000410007d68
> > Trap PC 0xffffffff811de03c RA 0xffffffff8108a6d8 fault 0x20733d3078256d48
> > 0xffffffff811ddc24
> (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra
> > 0xffffffff8108a6d8 sp 0x9800000410007ec0, sz 0
> > 0xffffffff8108a5d0
> (ffffffff814e3ae8,ffffffff814e8a00,0,ffffffff8144a440)  ra 0x10 sp
> > 0x9800000410007ec0, sz 48
> > stacktrace: ra corrupted!
> > stopped on non ddb fault
> > Stopped at      0xffffffff811de03c:     lb      v0,208(s2)
> > ddb> show registers
> > at                0xffffffff814f0000
> > v0                0x98b06bcd8c01d5ea
> > v1                               0x1
> > a0                0xffffffff814e3ae8
> > a1                0xffffffff814e8a00
> > a2                                 0
> > a3                0xffffffff8144a440
> > a4                0xffffffff81587690
> > a5                                 0
> > a6                                 0
> > a7                0x9800000410007e00
> > t0                0xffffffff81582364
> > t1                               0x1
> > t2                                 0
> > t3                               0x1
> > s0                0xffffffff814e3b18
> > s1                0xffffffff814e8a00
> > s2                0x20733d3078256c78
> > s3                0xffffffff814321a0
> > s4                0xffffffff814e3ae8
> > s5                               0x3
> > s6                               0x3
> > s7                0xffffffffc00d5ca0
> > t8                0xc000000000002000
> > t9                0xffffffff8121a6d0
> > k0                0xffffffff8156e320
> > k1                0xc0000000000104b0
> > gp                0xffffffff814ea500
> > sp                0x9800000410007ec0
> > s8                                 0
> > ra                0xffffffff8108a6d8
> > sr                        0x100087e3
> > lo                                 0
> > hi                                 0
> > bad               0x20733d3078256d48
> > cs                              0x10
> > pc                0xffffffff811de03c
> > 0xffffffff811de03c:     lb      v0,208(s2)
> > ddb> boot dump
> > syncing disks...
> > Trap cause = 2 Frame 0x98000004100078b8
> > Trap PC 0xffffffff810ccec4 RA 0xffffffff813aebfc fault 0x0
> > 0xffffffff810ccea0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra
> 0xffffffff813aebfc sp
> > 0x9800000410007a10, sz 32
> > 0xffffffff813aeba0 (ffffffff8152e6c8,0,0,98000004100079f8)  ra
> 0xffffffff8137e980 sp
> > 0x9800000410007a30, sz 32
> > 0xffffffff8137e430 (ffffffff8152e6c8,0,0,98000004100079f8)  ra 0x0 sp
> > 0x9800000410007a50, sz 0
> > User-level: pid 0
> > Caught exception in ddb.
> > ddb> show panic
> > the kernel did not panic
> > ddb> boot
> > sync        crash       dump        halt        reboot      poweroff
> > ddb> continue
> > panic: trap
> > Stopped at      0xffffffff81312764:     jr      ra
> > 0xffffffff81312768:      nop
> >     TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
> > *     0      0      0     0x10000      0x200    0  swapper
> > 0xffffffff81312760
> (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
> >  0xffffffff8123a0e8 sp 0x9800000410007c10, sz 0
> > 0xffffffff81239ea8
> (98b06bcd8c01d5ea,9001070000000208,208,9800000410007bd8)  ra
> >  0x0 sp 0x9800000410007c10, sz 0
> > User-level: pid 0
> > https://www.openbsd.org/ddb.html describes the minimum info required in
> bug
> > reports.  Insufficient info makes it difficult to find and fix bugs.
> >
> > --
> > sergeyb@
> >
>
>