-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
subsys/hawkBit: Debug log error in hawkbit example "CONFIG_LOG_STRDUP_MAX_STRING" #46072
subsys/hawkBit: Debug log error in hawkbit example "CONFIG_LOG_STRDUP_MAX_STRING" #46072
Comments
@jeronimoagullo I have tested and confirm it is crashing. However, the root cause seems to be a NULL pointer at https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/mgmt/hawkbit/hawkbit.c#L575. |
The @sylvioalves I don't really have anything to test now, didn't encounter this issue the last time I tested it. From the log, it seems to be able to print the sleep string:
My understanding is that the @jeronimoagullo are you able to reproduce this error? If you could maybe you can breakpoint at here to check if there are indeed NULL pointers? |
hi @sylvioalves and @ycsin Currently I don't have a jtag for debugging. I will receive a FT2232HL board with which I will be able to debug and add the brakpoint. The only feedback that I can share currently is that the error arises in the function "hawkbit_dump_base" when the debug level of hawkbit module is debug. Once I can check if the struct has a null pointer I will text again. |
that's because the function is ran only when the level is set to debug Let say the level is not debug, would the hawkbit be able to proceed and do the upgrade? |
hi @ycsin yes, if the level is not debug (for example information), everything runs smothly. Thus, I think that it is just a matter of the debug messages. Thank you very much |
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. |
@jeronimoagullo would it be possible for you to test #49232 and approve if it fixes the issue? |
Describe the bug
I am bulding the hawkbit example from
zephyr\samples\subsys\mgmt\hawkbit-esp32
.A fatal error arises when the log level is set as DEBUG
CONFIG_HAWKBIT_LOG_LEVEL_DBG=y
. The error is caused due to thelog_strdup
functions. If I build with info log levelCONFIG_HAWKBIT_LOG_LEVEL_INF
, it works.To Reproduce
Steps to reproduce the behavior:
prj.conf
file for esp32:output
Additional context
The error arises in the function
hawkbit_dump_base
inzephyr/blob/main/subsys/mgmt/hawkbit/hawkbit.c
. I guess that it occurs due to thelog_strdup
function.I tried to add
CONFIG_LOG1_DEFERRED=y
into the config file, however it is not possible since this variable cannot be set manually. Furthermore, I saw in the guiconfig that theLOG1_DEFERRED
is deprecated and I couldn't set.How can I set the debug log level in hawkbit?
The text was updated successfully, but these errors were encountered: