Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X7Pro Hardfault #17063

Closed
LorenzMeier opened this issue Mar 9, 2021 · 0 comments
Closed

X7Pro Hardfault #17063

LorenzMeier opened this issue Mar 9, 2021 · 0 comments
Assignees

Comments

@LorenzMeier
Copy link
Member

When running the MAVLink console (read from bottom to top). @bkueng any ideas?

(gdb) info line *0x080202d7
Line 214 of "armv7-m/gnu/arm_exception.S" starts at address 0x80202d6 <exception_common+46>
   and ends at 0x80202d8 <exception_common+48>.
(gdb) info line *0x080233c1
Line 320 of "semaphore/sem_holder.c" starts at address 0x80233c0 <nxsem_boostholderprio>
   and ends at 0x80233c4 <nxsem_boostholderprio+4>.
(gdb) info line *0x080233ab
Line 288 of "semaphore/sem_holder.c" starts at address 0x80233aa <nxsem_foreachholder+18>
   and ends at 0x80233ae <nxsem_foreachholder+22>.
(gdb) info line *0x080231e1
Line 145 of "semaphore/sem_wait.c" starts at address 0x80231e0 <nxsem_wait+80>
   and ends at 0x80231e8 <nxsem_wait+88>.
(gdb) info line *0x0816a237
Line 199 of "pipes/pipe.c" starts at address 0x816a236 <nx_pipe+18> and ends at 0x816a242 <nx_pipe+30>.
(gdb) info line *0x0816929f
Line 61 of "unistd/lib_pipe.c" starts at address 0x816929e <pipe+10> and ends at 0x81692a2 <pipe+14>.
(gdb) info line *0x080c4b7b
Line 14397 of "src/modules/mavlink/modules__mavlink_unity.cpp"
   starts at address 0x80c4b74 <MavlinkShell::start()+16> and ends at 0x80c4b7c <MavlinkShell::start()+24>.
arm_hardfault:   IRQ: 3 regs: 0x3002b6bc
arm_hardfault:   BASEPRI: 00000080 PRIMASK: 00000000 IPSR: 00000003 CONTROL: 00000000
arm_hardfault:   CFAULTS: 00008200 HFAULTS: 40000000 DFAULTS: 00000000 BFAULTADDR: 0000000b AFAULTS: 00000000
arm_hardfault: PANIC!!! Hard fault: 40000000
up_assert: Assertion failed at file:armv7-m/arm_hardfault.c line: 134 task: mavlink_rcv_if0
up_registerdump: R0: ffffffff 24000fa0 3002ae70 24004830 ffffffff 24000fa4 3002ae70 3002b808
up_registerdump: R8: 00000000 00000000 0000001b 00000046 0000000a 3002b790 080233cf 080243c0
up_registerdump: xPSR: 01000000 BASEPRI: 00000080 CONTROL: 00000000
up_registerdump: EXC_RETURN: ffffffe9
up_dumpstate: sp:     24001130
up_dumpstate: IRQ stack:
up_dumpstate:   base: 240011c0
up_dumpstate:   size: 00000200
up_dumpstate:   used: 00000188
up_stackdump: 24001120: 24001130 240042fc 3002c2e8 0802a171 00000080 00000000 00000046 0000000a
up_stackdump: 24001140: 3002b790 080233cf 080243c0 e000ed2c 0000000b e000ed2c 0000000b 00000000
up_stackdump: 24001160: 00000000 00000000 00000000 0000001b 00000046 08021977 08022601 08021677
up_stackdump: 24001180: 40000000 00000000 0000000b 00000000 240042fc 00000003 00000003 08022ef7
up_stackdump: 240011a0: 00000080 08021099 00000080 3002b6bc 24000fa4 3002ae70 3002b808 080202d7
up_dumpstate: sp:     3002b790
up_dumpstate: User stack:
up_dumpstate:   base: 3002c2e8
up_dumpstate:   size: 000012d4
up_dumpstate:   used: 00000dbc
up_stackdump: 3002b780: 00000000 00000000 20000010 000000f0 24000fa0 080233c1 3002ae70 080233ab
up_stackdump: 3002b7a0: 24000fa0 3002ae70 000000f0 080231e1 30019a60 30019a60 00000000 0816a237
up_stackdump: 3002b7c0: 00000000 00000000 00000000 00000000 00000000 30019a60 30019a60 00000000
up_stackdump: 3002b7e0: 00000000 00000029 00000000 0000001b 00000000 0816929f 30019a60 080c4b7b
up_stackdump: 3002b800: 30019a60 00000020 2400431c 08023333 30019a60 08022b95 00000016 30019a60
up_stackdump: 3002b820: 30013410 00000000 00000000 080c4ca3 3002bb10 3002b9bc 0000004f 080c4d21
up_stackdump: 3002b840: 00000000 160a0000 f1000a01 007fe81d 00000100 00000100 00000200 00000000
up_stackdump: 3002b860: 00001800 00000000 3d000a00 00600001 00000100 00000100 00000400 00000000
up_stackdump: 3002b880: 00001800 00000000 00000a00 08600000 3002b9bc 3002bb10 30013485 080ce9ff
up_stackdump: 3002b8a0: 00000000 30013410 3002bb10 080cf36d deadbeef deadbeef deadbeef 0000001a
up_stackdump: 3002b8c0: 00000001 00000000 deadbeef deadbeef 0000074d 00000000 03448f7d 00000000
up_stackdump: 3002b8e0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef 00000003
up_stackdump: 3002b900: 00000101 00000000 00000000 00000000 04000000 00000000 18000000 00000000
up_stackdump: 3002b920: 0a000000 00000000 01292a60 01000000 02000000 00000000 18000000 00000000
up_stackdump: 3002b940: 0a000000 00013d00 01000060 01000000 034496ca 00000000 00000020 00000000
up_stackdump: 3002b960: 00000022 00000022 00000000 00210000 00000000 00000000 deadbeef deadbeef
up_stackdump: 3002b980: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
up_stackdump: 3002b9a0: deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef 4ffd292a
up_stackdump: 3002b9c0: ffdd0000 00007ebe 00000000 160a0000 f1000a01 007fe81d 00000100 00000100
up_stackdump: 3002b9e0: 00000200 00000000 00001800 00000000 3d000a00 00600001 00000100 00000100
up_stackdump: 3002ba00: 00000400 00000000 00001800 00000000 00000a00 00600000 00000000 00000000
up_stackdump: 3002ba20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
up_stackdump: 3002ba40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
up_stackdump: 3002ba60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
up_stackdump: 3002ba80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
LorenzMeier added a commit that referenced this issue Mar 9, 2021
The statement could end up in the pipe during creation, leading to a hard fault. Fixes #17063
@bkueng bkueng self-assigned this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants