-
Notifications
You must be signed in to change notification settings - Fork 52
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
Erasing data logging storage in a fiber while plotting a bar graph in the display crashes programme #362
Comments
Looks like this is replicable with gcc v10.3, but not with gcc v12. |
With the merge of PR 165 in codal-core we can now build without spurious compiler warnings on gcc 12 so the recommendation here is to move to this compiler, as the bug looks to be caused by incorect generation of the copy-on-return constructor when returning a ManagedBuffer under very specific circumstances (these, in fact!), and is rather beyond the remit of CODAL to fix. I'm going to close this for now, but feel free to re-open if this needs to be discussed further. |
If that's the case, can't we code the move constructor and workaround the gcc issue? |
Could be related: |
This programme erases the DAPLink storage in a separate fiber, while the main one updates the display with a bar graph using random numbers.
MICROBIT.hex.zip
Update: Replicable only when when adding "DMESG_ENABLE": 1 to codal.json, and with gcc v10.3 (gcc v12 works).
#362 (comment)
The text was updated successfully, but these errors were encountered: