Assert on enabling Socket CAN #37132
Labels
area: CAN
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Assert while running socket can application seen during interface initialization.
ASSERTION FAIL [net_if_get_link_addr(iface)->addr != ((void *)0)] @ WEST_TOPDIR/zephyr/subsys/net/ip/net_if.c:3993
Flags added in prj.conf of socket can application, CONFIG_ASSERT=y
Expected behavior
Socket CAN does not require interface link address to be assigned, above check is not applicable for socket can interfaces.
As this address is NULL for socket CAN interface it results in assertion.
Logs and console output
ASSERTION FAIL [net_if_get_link_addr(iface)->addr != ((void *)0)] @ WEST_TOPDIR/zephyr/subsys/net/ip/net_if.c:3993
[00:00:00.138,092] os: Faulting instruction address (r15/pc): 0x6000f8bc
[00:00:00.146,820] os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:00.155,334] os: Current thread: 0x60081160 (unknown)
[00:00:00.162,841] os: Halting system
Note:
This check was introduced part of commit id "1e4f268ea94066cfc60c80019cf515b2baafc167".
The text was updated successfully, but these errors were encountered: