-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
Describe the bug
A clear and concise description of what the bug is.
When I run the updatehub app without DNS and without DHCP, it generates error right after probing. In other words, this error is generated after 1-2 minute right now but varies when updatehub lib is a bit played with.
updatehub: Probe metadata received
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: * BUS FAULT *[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Precise data bus error[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: BFAR Address: 0x6f2e065[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: r0/a1: 0x06f2e065 r1/a2: 0x08039309 r2/a3: 0x00000031[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: r3/a4: 0x06f2e065 r12/ip: 0x20002c0e r14/lr: 0x08027e21[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: xpsr: 0x61000000[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Faulting instruction address (r15/pc): 0x0802073e[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Current thread: 0x20004f04 (unknown)[1B][0m
[1B][8D[1B][J[00:04:33.023,000] [1B][1;31m os: Halting system[1B][0m
What have you tried to diagnose or workaround this issue?
I removed the the recent enhancements (probe security, cleaning the code warnings etc.) made to updatehub lib and the app works fine at the moment. It is related to memory leak. So I tried to play around memory allocations in the updatehub lib and finally the code runs well.
Please see my branch
https://github.com/mtahirbutt/zephyr/tree/disco_l475_iot1
To Reproduce
Steps to reproduce the behavior:
- mkdir build; cd build
- cmake -DBOARD=disco_l475_iot1
- make
- See error
Expected behavior
The updatehub client should successfully download the image for updatehub-CE
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)
Right now, I am successful in downloading the image and the framework works fine with older version of updatehub lib with some changings.
Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: * BUS FAULT *[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Precise data bus error[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: BFAR Address: 0x6f2e065[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: r0/a1: 0x06f2e065 r1/a2: 0x08039309 r2/a3: 0x00000031[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: r3/a4: 0x06f2e065 r12/ip: 0x20002c0e r14/lr: 0x08027e21[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: xpsr: 0x61000000[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Faulting instruction address (r15/pc): 0x0802073e[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0[1B][0m
[1B][8D[1B][J[00:04:32.948,000] [1B][1;31m os: Current thread: 0x20004f04 (unknown)[1B][0m
[1B][8D[1B][J[00:04:33.023,000] [1B][1;31m os: Halting system[1B][0m
Environment (please complete the following information):
- OS: (e.g. Ubuntu 18.04.4 LTS)
- Toolchain (e.g Zephyr 2.2.99 SDK-0.11.2, ...)
- Commit SHA: 3223c43
Additional context
I did not use DHCP and DNS.