Skip to content

[pull] master from RT-Thread:master#808

Merged
pull[bot] merged 5 commits into
meng-plus:masterfrom
RT-Thread:master
Mar 12, 2026
Merged

[pull] master from RT-Thread:master#808
pull[bot] merged 5 commits into
meng-plus:masterfrom
RT-Thread:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Mar 12, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

KennethLiu61 and others added 5 commits March 12, 2026 13:59
…_shared_object

[Problem Description]
In the dlmodule_load_shared_object function,
if a module loading fails once due to an unresolved symbol,
all subsequent attempts to load any module will fail.
The system becomes unable to load modules correctly until a reboot.

[Problem Analysis]
The root cause is that the variable unsolved is defined as static.
Static variables retain their value between function calls.
If a relocation error occurs, unsolved is set to RT_TRUE.
However, when the function returns with an error, the value of unsolved is not reset.
Consequently, on the next function call, unsolved remains RT_TRUE from the previous execution.
This causes the check if (unsolved) to trigger immediately (or after the loop),
forcing the function to return an error regardless of whether the current module is valid or not.

[Solution]
Reset the unsolved variable to RT_FALSE before returning the error code -RT_ERROR.
This ensures the variable is in a clean state for the next function call, preventing state leakage between invocations.

Signed-off-by: Liu Gui <kenneth.liu@sophgo.com>
* [bsp][gd32]:gd32vw553h-eval add wdt support

* [bsp][gd32]:gd32vw553h-eval refine wdt and modify ai review

* [bsp][gd32]:gd32vw553h-eval update code format

---------

Co-authored-by: Rbb666 <64397326+Rbb666@users.noreply.github.com>
Split the merged #define macros on line 13 into separate lines to comply with coding standards and avoid potential preprocessor issues.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants