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

Logging: Fault instruction address in the logging thread #30771

Closed
LingaoM opened this issue Dec 16, 2020 · 6 comments
Closed

Logging: Fault instruction address in the logging thread #30771

LingaoM opened this issue Dec 16, 2020 · 6 comments
Assignees
Labels
area: Logging bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug Stale

Comments

@LingaoM
Copy link
Collaborator

LingaoM commented Dec 16, 2020

Describe the bug
Every time power on, it will trigger the crash exception.

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. west build -b nrf52840dk_nrf52840 zephyr/tests/bluetooth/mesh_shell/
  3. west build -t menuconfig

Zephyr Kernel Version: 2.4.99

[00:00:17.732,574] bt_mesh_crypto.bt_mesh_beacon_auth: BeaconKey 001245a59b55cee65ede2ecd3706dba~
[00:00:17.732,574] bt_mesh_crypto.bt_mesh_beacon_auth: NetId c358e9488149e865
[00:00:17.732,574] bt_mesh_crypto.bt_mesh_beacon_auth: IV Index 0x00000000
[00:00:17.732,604] bt_mesh_crypto.bt_mesh_beacon_auth: BeaconMsg 00c358e9488149e86500000000
[00:00:17.733,123] bt_mesh_proxy.bt_mesh_proxy_adv_stop: adv_enabled 0
[00:00:17.734,802] bt_mesh_proxy.bt_mesh_proxy_gatt_enable:
[00:00:17.833,435] os: r0/a1: 0x00000004 r1/a2: 0x0000006d r2/a3: 0x200038d0
[00:00:17.833,465] os: r3/a4: 0x00000001 r12/ip: 0x00000000 r14/lr: 0x00004e8b
[00:00:17.833,465] os: xpsr: 0x61000000
[00:00:17.833,496] os: Faulting instruction address (r15/pc): 0x0002ef4c
[00:00:17.833,496] os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:17.833,526] os: Current thread: 0x20000e08 (logging)
[00:00:18.510,375] os: Halting system

$: ~/zephyr-sdk-0.11.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line -e zephyr/zephyr.elf -a 0x00004e8b
0x00004e8b
/home/lingao/zephyrproject/zephyr/subsys/shell/shell_log_backend.c:190

@LingaoM LingaoM added the bug The issue is a bug, or the PR is fixing a bug label Dec 16, 2020
@LingaoM
Copy link
Collaborator Author

LingaoM commented Dec 16, 2020

autoconf.zip

@ioannisg
Copy link
Member

ioannisg commented Jan 4, 2021

@trond-snekvik maybe you could take a look at this mesh-related test issue?

@ioannisg ioannisg added the priority: medium Medium impact/importance bug label Jan 4, 2021
@trond-snekvik
Copy link
Contributor

@ioannisg This error is happening on the logging thread, I can't quite see how the mesh shell module is interfering.
Deferring to shell module code owners, but I'll stick around in case there's something wrong in the mesh usage of shell.

@carlescufi carlescufi changed the title Logging: Fault instruction address Logging: Fault instruction address in the logging thread Jan 26, 2021
@carlescufi
Copy link
Member

/home/lingao/zephyrproject/zephyr/subsys/shell/shell_log_backend.c:190:

signal = &shell->ctx->signals[SHELL_SIGNAL_LOG_MSG];

@LingaoM is this the same line you see on your local copy?

@nordic-krch
Copy link
Contributor

@LingaoM can you attach prj.conf file that was used. It is hard to compare autoconf.

@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug Stale
Projects
None yet
Development

No branches or pull requests

6 participants