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 mc-years bug --windows #697

Merged
merged 40 commits into from
Oct 19, 2023
Merged

fix mc-years bug --windows #697

merged 40 commits into from
Oct 19, 2023

Conversation

a-zakir
Copy link
Contributor

@a-zakir a-zakir commented Oct 10, 2023

@a-zakir a-zakir added the bug Something isn't working label Oct 10, 2023
@a-zakir a-zakir marked this pull request as ready for review October 19, 2023 07:44
@@ -21,40 +21,41 @@ SolverFactory::SolverFactory() {

SolverAbstract::Ptr SolverFactory::create_solver(
const std::string &solver_name, const SOLVER_TYPE solver_type) const {
return create_solver(solver_name, solver_type, "");
auto log_manager = SolverLogManager("");
Copy link
Contributor

Choose a reason for hiding this comment

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

J'ai l'impression qu'on a une "dangling reference" ici, ou un problème de gestion de la durée de vie des file pointers.
log_manager est créé sur la stack dans le scope de create_solver. On créé des solver qui vont pointer sur les FP de log_manager.
Quand on retourne un solver, on sort du scope, log_manager est détruit, donc on ferme le FP. Par contre les solver sont vivant et vont vouloir écrire dans les FP

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bien vu !

@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

21.9% 21.9% Coverage
0.0% 0.0% Duplication

@a-zakir a-zakir merged commit 0643037 into develop Oct 19, 2023
14 of 15 checks passed
@tbittar tbittar deleted the fix/issue-688-windows-bug branch November 16, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AntaresXpansion - number of MC years
2 participants