Skip to content

ENT-12766: Fixed ODR violations in ASAN Unit Tests (3.24.x) #5785

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

Merged
merged 3 commits into from
Apr 28, 2025

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Apr 28, 2025

Ticket: ENT-12766
Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech
(cherry picked from commit 88e6052)

Back-ported from #5656

Ticket: ENT-12766
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 88e6052)
@larsewi larsewi force-pushed the violations-3.24.x branch 4 times, most recently from 9fae517 to 9b978c3 Compare April 28, 2025 14:14
Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, one comment, wondering if all these commits are cherry picks (and if so, fix that up so the references are there) and like you said, squash the last commit of 4 present right now.

@@ -188,6 +188,7 @@ if MACOSX
XFAIL_TESTS = set_domainname_test
XFAIL_TESTS += process_test
XFAIL_TESTS += mon_processes_test
XFAIL_TESTS += rlist_test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we put a reference to the ticket here? would be nice if we already did that previously so we have context on WHY these tests are allowed to fail.

larsewi added 2 commits April 28, 2025 17:05
They are not needed and they cause ODR violations to be triggered in
address sanitizer.

Ticket: ENT-12766
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
For some reason rlist_test fails in macOS unit tests. The test seems to
`abort()` while it should trigger an assert so that
`expect_assert_failure()` can catch it. For some reason this is not
happening anymore.

```
rlist.c:135: Programming Error: Internal error: Rval contains type f instead of expected scalar
```

I created a ticket (CFE-4473) to follow-up on this.

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit e8efa14)
@larsewi larsewi force-pushed the violations-3.24.x branch from 9b978c3 to 9785566 Compare April 28, 2025 15:05
@larsewi larsewi merged commit eacfa19 into cfengine:3.24.x Apr 28, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants