Open ypearson-bdai opened 2 months ago
Adding CONFIG_LOG_MODE_IMMEDIATE=y to prj.conf seems to crash the z_pub.c example
CONFIG_LOG_MODE_IMMEDIATE=y
prj.conf
z_pub.c
*** Booting Zephyr OS build zephyr-v30600 *** [00:00:00.017,000] <inf> net_config: Initializing network [00:00:00.025,000] <inf> net_config: Waiting interface 1 (0x20021d24) to be up... [00:00:00.512,000] <inf> net_config: Interface 1 (0x20021d24) coming up [00:00:00.521,000] <inf> net_config: IPv4 address: 192.168.11.2 [00:00:00.630,000] <err> os: ***** MPU FAULT ***** [00:00:00.638,000] <err> os: Stacking error (context area might be not valid) [00:00:00.648,000] <err> os: Data Access Violation [00:00:00.656,000] <err> os: MMFAR Address: 0x2002a1b8 [00:00:00.664,000] <err> os: r0/a1: 0x8dd06373 r1/a2: 0x1586e719 r2/a3: 0xb767a161 [00:00:00.675,000] <err> os: r3/a4: 0x46c0b7de r12/ip: 0xaaaaaaaa r14/lr: 0xaaaaaaaa [00:00:00.686,000] <err> os: xpsr: 0xaaaaaa00 [00:00:00.693,000] <err> os: Faulting instruction address (r15/pc): 0xaaaaaaaa [00:00:00.703,000] <err> os: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0 [00:00:00.713,000] <err> os: Current thread: 0x20022840 (net_mgmt) [00:00:00.722,000] <err> os: Halting system
picocom -b 115200 /dev/ttyUSB0
platformio.ini
[env:nucleo_f767zi] platform = ststm32 board = nucleo_f767zi framework = zephyr lib_deps = https://github.com/eclipse-zenoh/zenoh-pico#release/1.0.0.6 build_flags = -DZ_BATCH_UNICAST_SIZE=2048 -DZ_FRAG_MAX_SIZE=4096
Ubuntu 22.04.4 LTS Lenovo ThinkPad X13 Gen 4
I can't seem to reproduce on my end, could you also share your entire Zephyr config file?
Describe the bug
Adding
CONFIG_LOG_MODE_IMMEDIATE=y
toprj.conf
seems to crash thez_pub.c
exampleTo reproduce
z_pub.c
exampleCONFIG_LOG_MODE_IMMEDIATE=y
toprj.conf
picocom -b 115200 /dev/ttyUSB0
platformio.ini
System info
Ubuntu 22.04.4 LTS Lenovo ThinkPad X13 Gen 4