rv-virt/citest: Increase init task stack size to 3072#15165
Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom Dec 12, 2024
Merged
rv-virt/citest: Increase init task stack size to 3072#15165xiaoxiang781216 merged 1 commit intoapache:masterfrom
xiaoxiang781216 merged 1 commit intoapache:masterfrom
Conversation
After apache#15075, the size of the stack size has decreased 8 bytes and the init stack size for the rv-virt:citest defconfig was near its full capacity, which lead to crashing the `ps` command. The init stack size for this defconfig was increased from 2048 to 3072 to avoid stack overflow.
xiaoxiang781216
approved these changes
Dec 12, 2024
acassis
approved these changes
Dec 12, 2024
Contributor
Author
|
@lupyuen , it seems that there are other issues regarding the Let's merge this PR because it fixes a known issue (not necessarily the only one that broke our CI) and continue the investigation. |
Contributor
|
but the ci still fail. |
Contributor
Author
Yes, there are other issues (not related with the |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After #15075, the size of the stack size has decreased 8 bytes and the init stack size for the rv-virt:citest defconfig was near its full capacity, which led to crashing the
pscommand. The init stack size for this defconfig was increased from 2048 to 3072 to avoid stack overflow.Impact
Avoid
psfrom crashing after #15075Testing
Build and run the
rv-virt:citestwith the following command:Testing the commit just before #15075:
Note that the
nsh_maintask is using the full capacity of its stack, but the firmware didn't crash. Stack size is1920.Testing the commit just after #15075:
The firmware crashes and the stack size is
1912.Now, with the changes introduced by this PR: