Closed embeddedpenguin closed 6 months ago
UtAssert_VOIDCALL(ES_UT_SysLog_snprintf(SysLogBuf, sizeof(SysLogBuf), NULL));
After debugging this further, I'm not sure what this test is supposed to be doing. It says it's supposed to force a failure by supplying NULL as the fmt option, but why? Shouldn't this always segfault? Is the test trying to make sure that it segfaults?
I now understand what the test is doing, but I can't seem to catch the segfault.
Checklist (Please check before submitting)
Describe the bug Test fixture 79 segfaults, and I can't figure out if it's intended behavior. (I hope not!)
To Reproduce Steps to reproduce the behavior:
Expected behavior It looks like the specific test, found here mentions that it's forcing a vsnprintf failure, so I expect a failure that would lead to the test passing.
Actual behavior A segfault occurs, causing the test fixture to fail.
System observed on:
Additional context This might not be a bug. Is this test expected to segfault? If it is, any advice on how I should handle this in CI?
Attached is a log containing the output of the failed unit test.
cover-es-ALL-segfault.log
Also, here's the call stack leading up to the segfault: