-
Notifications
You must be signed in to change notification settings - Fork 318
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
[BUG] Uninitialized variable caused the CMCocka test to fail. #8988
Comments
Please report which specific test fails and in which configuration. |
Here you go: I'm adding the compilation error log that reflects the auditory file.
|
I don't see this warning with |
I am using /tools/xcc/install/tools/ |
at least in the current "main" the |
Yup. I am OK with your proposal for the implementation https://github.com/thesofproject/sof/pull/8999. The rationale behind the default value Thank you |
#8999 was merged, @ShriramShastry close? BTW I noticed your links often don't work. For instance this one does not:
|
Thanks for addressing bug. I am closing issue. |
Describe the bug
A clear and concise description of what the bug is.
What have you tried to diagnose or workaround this issue?
Please also read https://thesofproject.github.io/latest/contribute/process/bug-tracking.html for further information on submitting bugs.
error: ‘scale_inv’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
To Reproduce
Steps to reproduce the behavior: (e.g. list commands or actions used to reproduce the bug)
Run
./test/test-all-defconfigs.sh
Reproduction Rate
How often does the issue happen ? i.e. 1/10 (once in ten attempts), 1/1000 or all the time.
Does the reproduction rate vary with any other configuration or user action, if so please describe and show the new reproduction rate.
Always
Expected behavior
A clear and concise description of what you expected to happen.
All cmocka test's
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)
Cmocka cannot be tested for every configuration.
Environment
Screenshots or console output
If applicable, add a screenshot (drag-and-drop an image), or console logs
(cut-and-paste text and put a code fence (```) before and after, to help
explain the issue.
Please also include the relevant sections from the firmware log and kernel log in the report (and attach the full logs for complete reference). Kernel log is taken from dmesg and firmware log from sof-logger. See https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html
only assignment to
scale_inv
is conditionally done inside an if blockwe 've ensure that
scale_inv
has a deterministic initial valueThe text was updated successfully, but these errors were encountered: