Skip to content
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

Fix #2301, adjust UT pool buffer size for platform config #2328

Merged
merged 1 commit into from
May 12, 2023

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented May 5, 2023

Checklist (Please check before submitting)

Describe the contribution
If the CFE_PLATFORM_ES_MAX_BLOCK_SIZE is increased, then increase the UT pool buffer accordingly. This had been hardcoded to 128k.

Also consider pool exhaustion to be a fatal error, as continuing the test will certainly segfault and this makes the original error harder to spot.

Fixes #2301

Testing performed
Build and run TBL test with configuration specified in issue.

Expected behavior changes
TBL tests pass with larger sizes.

System(s) tested on
Debian

Additional context
Pool buffer being too small will also now stop/abort the test, as this is a bug that will certainly segfault later, better to stop and report the error more obviously.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

If the CFE_PLATFORM_ES_MAX_BLOCK_SIZE is increased, then increase the UT
pool buffer accordingly.  This had been hardcoded to 128k.

Also consider pool exhaustion to be a fatal error, as continuing the
test will certainly segfault and this makes the original error harder to
spot.
@havencarlson havencarlson added the CCB:Approved Indicates code review and approval by community CCB label May 11, 2023
dzbaker added a commit to nasa/cFS that referenced this pull request May 12, 2023
*Combines:*

cFE v7.0.0-rc4+dev312

**Includes:**

*cFE*
- nasa/cFE#2328
- nasa/cFE#2331

Co-authored by: Jose Martinez <pepepr08@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
@dzbaker dzbaker merged commit 36473a3 into nasa:main May 12, 2023
dzbaker added a commit to nasa/cFS that referenced this pull request May 12, 2023
*Combines:*

cFE v7.0.0-rc4+dev312

**Includes:**

*cFE*
- nasa/cFE#2328
- nasa/cFE#2331

Co-authored by: Jose Martinez <pepepr08@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
dzbaker added a commit to nasa/cFS that referenced this pull request May 12, 2023
*Combines:*

cFE v7.0.0-rc4+dev312

**Includes:**

*cFE*
- nasa/cFE#2328
- nasa/cFE#2331

Co-authored by: Jose Martinez <pepepr08@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
@dmknutsen dmknutsen added this to the Equuleus milestone May 26, 2023
@jphickey jphickey deleted the fix-2301-tbl-ut branch May 31, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB Equuleus-rc1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TBL UT failure when max table size is increased
4 participants