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

Fix dangling pointer in SolverTest.SettersGettersWithSetup #2556

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Oct 19, 2024

Fixes a dangling pointer issue in SolverTest.SettersGettersWithSetup.
The SUNContext was destroyed before the associated AmiVectors which resulted in invalid reads.

@dweindl dweindl changed the base branch from master to develop October 19, 2024 20:13
@dweindl dweindl self-assigned this Oct 19, 2024
@dweindl dweindl changed the title Fix valgrind test failures Fix dangling pointer in SolverTest.SettersGettersWithSetup Oct 19, 2024
@dweindl dweindl marked this pull request as ready for review October 19, 2024 20:34
@dweindl dweindl requested a review from a team as a code owner October 19, 2024 20:34
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.75%. Comparing base (91054b3) to head (578f1d8).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2556      +/-   ##
===========================================
- Coverage    77.78%   77.75%   -0.04%     
===========================================
  Files          325      325              
  Lines        21852    21852              
  Branches      1473     1473              
===========================================
- Hits         16998    16991       -7     
- Misses        4827     4834       +7     
  Partials        27       27              
Flag Coverage Δ
cpp 73.62% <ø> (-0.04%) ⬇️
cpp_python 34.20% <ø> (ø)
petab 37.06% <ø> (ø)
python 72.39% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

@dweindl dweindl merged commit 3823880 into AMICI-dev:develop Oct 20, 2024
19 of 20 checks passed
@dweindl dweindl deleted the fix_valgrind_tests branch October 20, 2024 07:15
dweindl added a commit that referenced this pull request Oct 20, 2024
Fixes a dangling pointer issue in SolverTest.SettersGettersWithSetup.
The SUNContext was destroyed before the associated AmiVectors which resulted in invalid reads.
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.

2 participants