-
Notifications
You must be signed in to change notification settings - Fork 2k
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
xtimer: valgrind complains about uninitialized variables for jumps #4372
Comments
I thought I fixed that in #3902 |
I'll check again, if I maybe have used an old version of master. |
I also haven't looked if I missed something in #3902, so it might be that it still may be uninitialized. |
nope, still an issue in current master. |
(562218d) |
Mh, may it be that #4272 reverted that for xtimer_msg_receive_timeout()? |
Ah, the problem is not |
That uninitialized check might cause an iteration through active timers, but an't lad to corruption or a crash. Therefore I'd like to postpone it for after the release. |
Maybe the fix isn't so much a code, but a documentation problem ;-). If you use |
@kaspar030, @authmillenon: should we postpone this again? |
Provided fix in #5216 |
Running
tests/xtimer_msg_receive_timeout
in valgrind yields the following result:This is due to
target
and/orlong_target
being checked early on anxtimer_remove()
inxtimer_set()
and thextimer
not being used yet. It works for now because the timer is set in the BSS section, which results in the timer always being 0 in the beginning, but it might lead to unwanted behavior.The text was updated successfully, but these errors were encountered: