Uh oh!
There was an error while loading. Please reload this page.
app: zephyr: add CONFIG_ASSERT debug overlay - #6530
Conversation
kv2019i
commented
Nov 3, 2022
teburd
commented
Nov 3, 2022
Glad its working for you! Let me know if there's any ideas for improvement around this, happy to add them. |
teburd
left a comment
There was a problem hiding this comment.
Not that my +1 counts here, but yes, this makes sense for debugging
lgirdwood
commented
Nov 3, 2022
You count :) |
There was a problem hiding this comment.
for HEAP_VALIDATE, sof does not call it directly, no sure zephyr will call it or not.
My feeling is that this does not like stack, low rate to have problems for heap.
I mean this maybe treated as option.
Stack overflow is must.
There was a problem hiding this comment.
@btian1 This has found issues in the past and it triggers an assert if corruption is hit.
lgirdwood
commented
Nov 8, 2022
@kv2019i seeing red on CI will rerun. |
lgirdwood
commented
Nov 8, 2022
SOFCI TEST |
1 similar comment
kv2019i
commented
Nov 9, 2022
SOFCI TEST |
kv2019i
commented
Nov 9, 2022
Let me try once more. I couldn't make sense out of the failure. The tests failed because non-existing FW file, suggesting a build failure, but this overlay is not supposed to be used in CI runs. @keqiaozhang@greg-intel any insights? Let's not merge until this is clarified. |
kv2019i
commented
Nov 10, 2022
Moving back to draft. Our CI uses CONFIG_DEBUG to turn on features like the IPC flood test. So we really can't put feature like these that do add overhead across the board, to the builds. |
lgirdwood
commented
Feb 21, 2023
@kv2019i some failing tests around pause resume, wonder if timing has changed here ? |
kv2019i
commented
Feb 21, 2023
@wszypelt merge/build fails to "Unhandled Exception: System.BadImageFormatException" in IPC4 smoketest. Is this a failure in test runner, or actual failing case? I can't seem to find any errors related to test execution. @aborisovich you did a recent check with asserts enabled, right? As for SOF test with Linux driver, I can't believe we hit an assert again: This is not the same as previously fixed in #6900. This has been passing many times in last few weeks, so either this is a very recent regression (in other code), or has a low occurence rate. So back to draft status :( |
Enable CONFIG_ASSERT=y in SOF debug overlay. Also add a commented out list of additional useful Zephyr debugging tools to the overlay. These incur a higher runtime cost, so are left disabled by default. These are all debug tools that have been tested to work with SOF and found useful. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
216841d to
ac7c228Compareaborisovich
commented
Feb 21, 2023
Looks like a test runner issue. |
kv2019i
commented
Feb 21, 2023
Another update:
|
kv2019i
commented
Feb 21, 2023
@aborisovich Is this ok to you, you still have "changes requested" on this PR? |
kv2019i
commented
Feb 21, 2023
After rebase, tests are now good so we are finally ready to go. |
teburd
commented
Feb 21, 2023
🥳 |
marc-hb
commented
Mar 24, 2023
After a relatively painful git bisect I found that this has the unfortunate effect of making even the stripped ELF file non-reproducible :-(
|
marc-hb
commented
Mar 24, 2023
I just remembered I fixed this with |
Good news and bad news. Good news: mystery solved. This affects only old toolchains like the 2017 and gcc v4 based xt-xcc currently used for TGL. https://reproducible-builds.org/docs/build-path/
Bad news: this will never be fixed for TGL, see issue #7114 why. |
This makes sure Zephyr's -fmacro-prefix-map is working and keeps the builds reproducible when using a recent enough toolchain. As found in the CONFIG_ASSERT PR thesofproject#6530 (comment) this is not true for old Xtensa toolchains. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This makes sure Zephyr's -fmacro-prefix-map is working and keeps the builds reproducible when using a recent enough toolchain. As found in the CONFIG_ASSERT PR #6530 (comment) this is not true for old Xtensa toolchains. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Enable CONFIG_ASSERT=y in SOF debug overlay.
Also add a commented out list of additional useful Zephyr debugging
tools to the overlay. These incur a higher runtime cost, so are left
disabled by default. These are all debug tools that have been tested to
work with SOF and found useful.
Dependencies for merging (SOF):
Dependencies for merging (Zephyr):