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

[202205][Cherry-pick][asan] suppress the static variable leaks #1159

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

Yakiv-Huryk
Copy link
Contributor

cherry-pick from #1085

This is to suppress ASAN false positives for static variables. For example, the ServiceMethodTable::m_slots is sometimes reported as leaked.

  • [asan] suppress the static variable leaks
  • [asan] add missing SWSS_LOG_ENTER()

@Yakiv-Huryk
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 1159 in repo sonic-net/sonic-sairedis

@Yakiv-Huryk
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

* [asan] suppress the static variable leaks

This is to suppress ASAN false positives for static variables.
For example, the ServiceMethodTable::m_slots is sometimes reported as
leaked.

Signed-off-by: Yakiv Huryk <[email protected]>

* [asan] add missing SWSS_LOG_ENTER()

Signed-off-by: Yakiv Huryk <[email protected]>
@Yakiv-Huryk
Copy link
Contributor Author

Pending #1170 to pass LGTM check

@yxieca
Copy link
Contributor

yxieca commented Dec 15, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca
Copy link
Contributor

yxieca commented Dec 15, 2022

@Yakiv-Huryk please address the build failure.

@Yakiv-Huryk
Copy link
Contributor Author

@Yakiv-Huryk please address the build failure.

The build is failing due to the "Install gcovr 5.0 with recursive fix" CI step failure.

@Yakiv-Huryk
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@Yakiv-Huryk can you pls summarize what are the failures observed? looks to me the tests are not stable as your change should not affect that.

@bingwang-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bingwang-ms bingwang-ms merged commit 0994449 into sonic-net:202205 Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants