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 crashes when errors occur at output timepoints #2555

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Oct 19, 2024

Fixes a bug that lead to program termination if a root-after-reinitialization error (potentially also others) occurred at an output timepoint, because an non-existing/invalid SimulationState for that timepoint was accessed. See #2491 for further details.

Fixes #2491.

Also avoid some unnecessary copying (during which previously the segfault occurred if this bug triggered in non-debug builds).

Fixes a bug that lead to program termination if a root-after-reinitialization error (potentially also others)
occurred at an output timepoint, because an non-existing/invalid SimulationState for that timepoint was accessed.
See AMICI-dev#2491 for further details.

Fixes AMICI-dev#2491.
@dweindl dweindl requested a review from a team as a code owner October 19, 2024 20:00
@dweindl dweindl self-assigned this Oct 19, 2024
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.74%. Comparing base (fbe3840) to head (1618466).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2555      +/-   ##
===========================================
- Coverage    77.75%   77.74%   -0.01%     
===========================================
  Files          325      325              
  Lines        21852    21858       +6     
  Branches      1473     1473              
===========================================
+ Hits         16991    16994       +3     
- Misses        4834     4837       +3     
  Partials        27       27              
Flag Coverage Δ
cpp 73.61% <100.00%> (-0.01%) ⬇️
cpp_python 34.20% <41.66%> (-0.01%) ⬇️
petab 37.07% <55.55%> (+0.01%) ⬆️
python 72.40% <81.81%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
include/amici/forwardproblem.h 100.00% <100.00%> (ø)
src/rdata.cpp 95.51% <100.00%> (-0.01%) ⬇️

... and 3 files with indirect coverage changes

@dweindl dweindl merged commit 9f56266 into AMICI-dev:develop Oct 20, 2024
20 checks passed
@dweindl dweindl deleted the fix_2491 branch October 20, 2024 08:08
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