Skip to content

Added AddressSanitizer [ASan] CI pipeline#297

Open
varun-jaiswal17 wants to merge 16 commits into
opencv:mainfrom
varun-jaiswal17:asan_pipeline
Open

Added AddressSanitizer [ASan] CI pipeline#297
varun-jaiswal17 wants to merge 16 commits into
opencv:mainfrom
varun-jaiswal17:asan_pipeline

Conversation

@varun-jaiswal17
Copy link
Copy Markdown
Contributor

Added a CI pipeline for checking any potential memory leak, with help of AddressSanitizer (ASAN).

- Set detect_leaks=1 in ASAN_OPTIONS for Ubuntu jobs

- Added exitcode=1 to ensure CI fails on memory leaks
asmorkalov pushed a commit to opencv/opencv that referenced this pull request Mar 27, 2026
3d: fix depth precision inconsistency under ASan/RelWithDebInfo builds #28687

Resolves FMA inconsistency between build types by using std::fma(a, b, c) to get the same precision everywhere ASan, Release, Debug.
 
Change optimisation :
Without FMA : 96.54 ms
FMA      : 32.33 ms

Merged with : opencv/ci-gha-workflow/pull/297

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
YangGuanyuhan pushed a commit to YangGuanyuhan/opencv that referenced this pull request Mar 29, 2026
3d: fix depth precision inconsistency under ASan/RelWithDebInfo builds opencv#28687

Resolves FMA inconsistency between build types by using std::fma(a, b, c) to get the same precision everywhere ASan, Release, Debug.

Change optimisation :
Without FMA : 96.54 ms
FMA      : 32.33 ms

Merged with : opencv/ci-gha-workflow/pull/297

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
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

Successfully merging this pull request may close these issues.

1 participant