-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix fatal parameter error when deleting/terminating Thread object #5587
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
Conversation
Call to osThreadTerminate is guarded by local_id check, to avoid parameter error fault when deleting or terminating Thread object that was not started.
rtos/Thread.cpp
Outdated
ret = osThreadTerminate(local_id); | ||
// if local_id == 0 Thread was not started in first place | ||
// and does not have to be terminated | ||
if(local_id != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ()
- please leave as space there
@marogi Can you please sign https://os.mbed.com/contributor_agreement/? |
Sure - whitespace fixed. @ Contributor agreement: I have it signed on my mbed accout (devmarogi, linked to this GitHub account). Any other way I need to sign it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/morph build |
@marogi 👍 for the fix |
Build : SUCCESSBuild number : 598 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 210 |
Test : FAILUREBuild number : 411 |
Seems like device problem ,will restart once fixed, going to investigate |
/morph uvisor-test |
@0xc0170 Updated some of the CI hardware to hopefully resolve the F429ZI flash errors. I'll rekick this off ASAP. |
@marogi - can you or slashdevteam sign to travis-ci, it does not recognize you, and labels this PR as abuse. |
@0xc0170 : This fix is really not abuse :) I saw the abuse status on travis-ci, but once I logged in (via GitHub) it was gone. Is there some other way I can authenticate me/slashdev? |
/morph test |
Test : SUCCESSBuild number : 423 |
I contacted travis-ci and apparently pull requests from GitHub accounts that never logged into travis-ci will get blocked. They also recommended closing and reopening pull request. I connected my account to travis-ci, so @0xc0170 could you try to close & reopen this PR? |
Still flagged as abuse 😭 New PR might resolve it? Thanks @marogi for the logging in. |
@0xc0170 no problem. I reported this to travis-ci and will work with them on solution. |
Build : SUCCESSBuild number : 609 Triggering tests/morph test |
Test : SUCCESSBuild number : 430 |
Exporter Build : SUCCESSBuild number : 224 |
Exporter Build : FAILUREBuild number : 225 |
@marogi Have you received any response from travis-ci ? I can help to cherry-pick this change and send a new PR for now, let me know please |
I'm waiting on one more reply from travis-ci. If it doesn't come tomorrow (or does not solve the issue) I will close this PR and create new one from a different fork (my own, not under slashdevteam). |
Ok, can we make last one try? This time all settings should make travis-ci happy. |
Travis works ! |
Build : SUCCESSBuild number : 672 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 314 |
1 similar comment
Exporter Build : SUCCESSBuild number : 314 |
/morph test |
Test : SUCCESSBuild number : 496 |
Description
Call to osThreadTerminate is guarded by local_id != 0 check, to avoid parameter error fault when deleting or terminating Thread object that was not started.
Status
READY
Migrations
NO
Todos
Steps to test or reproduce
On any target (tested with FRDM-K64F):
output: