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

f-sanitizer report runtime error in coverage-cf-cf_cmd-testrunner #454

Open
2 tasks done
avan989 opened this issue Jun 11, 2024 · 0 comments
Open
2 tasks done

f-sanitizer report runtime error in coverage-cf-cf_cmd-testrunner #454

avan989 opened this issue Jun 11, 2024 · 0 comments

Comments

@avan989
Copy link

avan989 commented Jun 11, 2024

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
A clear and concise description of what the bug is.
f-sanitizer report run time error:

[BEGIN] 64 Test_CF_CmdWriteQueue_When_chan_Greater
/home/vboxuser/Desktop/cFS/apps/cf/fsw/src/cf_cmd.c:817:56: runtime error: index 3 out of bounds for type 'CF_Channel_t [2]'
[ PASS] 64.001 cf_cmd_tests.c:2318 - CallCount: CFE_EVS_SendEvent() (1) == 1 (1)
[ PASS] 64.002 cf_test_utils.c:94 - Generated event: CF_EID_ERR_CMD_WQ_CHAN (137)
[ PASS] 64.003 cf_cmd_tests.c:2322 - CF_AppData.hk.Payload.counters.err (49979) == (initial_hk_err_counter + 1) & 0xFFFF (49979)
[ INFO]                        ABORT::0     WARN::0     FLOW::0     DEBUG::0     N/A::0   
[  END] 64 Test_CF_CmdWriteQueue_When_chan_Greater TOTAL::3     PASS::3     FAIL::0     MIR::0     TSF::0     TTF::0   

To Reproduce
Steps to reproduce the behavior:
Add the following option:
add_compile_options(
-fsanitize=address
-fsanitize=undefined
-fsanitize-recover=all
-g
)
add_link_options(
-fsanitize=address
-fsanitize=undefined
-fsanitize-recover=all
)

Make SIMULATION=native ENABLE_UNIT_TESTS=true prep

make install

Run Test

Expected behavior
A clear and concise description of what you expected to happen.

Code snips
If applicable, add references to the software.

System observed on:

  • Hardware
  • OS: [e.g. Linux 4.4]
  • Versions [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps]

Additional context
Add any other context about the problem here.

Reporter Info
Full name and company/organization if applicable

Anh Van, GSFC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant