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

Log a critical instead of an assert if we cannot find the block to so… #922

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

alkino
Copy link
Member

@alkino alkino commented Sep 1, 2022

…lved

Otherwise it only segmentation fault in Release

@alkino
Copy link
Member Author

alkino commented Sep 1, 2022

I'm not sure what we should do, how can we end the program there?
Is exit(1) good?

…lved

Otherwise it only segmentation fault in Release
@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #72530 (:white_check_mark:) have been uploaded here!

Status and direct links:

@codecov-commenter
Copy link

Codecov Report

Merging #922 (b3e2f23) into master (60249f1) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #922      +/-   ##
==========================================
- Coverage   61.46%   61.46%   -0.01%     
==========================================
  Files         194      194              
  Lines       28457    28458       +1     
==========================================
  Hits        17492    17492              
- Misses      10965    10966       +1     
Impacted Files Coverage Δ
src/visitors/solve_block_visitor.cpp 97.43% <50.00%> (-2.57%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bbpbuildbot
Copy link
Collaborator

Logfiles from GitLab pipeline #72621 (:white_check_mark:) have been uploaded here!

Status and direct links:

@alkino alkino requested a review from olupton September 2, 2022 11:11
@iomaganaris
Copy link
Contributor

iomaganaris commented Sep 2, 2022

I was thinking that maybe based on Exceptions versus assertions an assertion fits here?

@useranonym
Copy link

I was thinking that maybe based on Exceptions versus assertions an assertion fits here?

that's true but assert is removed in non-debug builds and hence the problem?

@alkino
Copy link
Member Author

alkino commented Sep 2, 2022

@iomaganaris the problem of assert is that it is not executed with Release build. As this assertion is about conformance of mod files, it needs to be run all the time, as we cannot more trust the user input in Release that in Debug. I was running nmodl and i got a segfault without explanation on a buggy modfile.

@alkino alkino merged commit 4984c31 into master Sep 5, 2022
@alkino alkino deleted the critical_log branch September 5, 2022 09:07
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.

6 participants