Skip to content

nocmodl bug fix with unused state compartment variable#2210

Merged
pramodk merged 1 commit into
masterfrom
pramodk/nmodl-2206
Feb 7, 2023
Merged

nocmodl bug fix with unused state compartment variable#2210
pramodk merged 1 commit into
masterfrom
pramodk/nmodl-2206

Conversation

@pramodk

@pramodk pramodk commented Feb 6, 2023

Copy link
Copy Markdown
Member
  • when STATE + COMPARTMENT variable is not used in KINETIC block then we were updating invalid memory location (capacity[-1]) and it was corrupting/updating some other memory location
  • like all other usages, make sure symbol/state variable is used before using it to update the list

fixes #2206

* when STATE + COMPARTMENT variable is not used in KINETIC
  block then we were updating invalid memory location (capacity[-1])
  and it was corrupting/updating some other memory location
* like all other usages, make sure symbol/state variable is used
  before using it to update the list

fixes #2206
@pramodk pramodk requested a review from nrnhines February 6, 2023 19:10
@codecov

codecov Bot commented Feb 6, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2210 (b7abefb) into master (7ca3f54) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #2210      +/-   ##
==========================================
- Coverage   56.25%   56.25%   -0.01%     
==========================================
  Files         617      617              
  Lines      124104   124106       +2     
==========================================
  Hits        69812    69812              
- Misses      54292    54294       +2     
Impacted Files Coverage Δ
src/nmodl/kinetic.cpp 84.99% <50.00%> (-0.09%) ⬇️
share/lib/python/neuron/rxd/species.py 72.60% <0.00%> (-0.08%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@azure-pipelines

Copy link
Copy Markdown

✔️ b7abefb -> Azure artifacts URL

Comment thread src/nmodl/kinetic.cpp
@pramodk pramodk merged commit c89d377 into master Feb 7, 2023
@pramodk pramodk deleted the pramodk/nmodl-2206 branch February 7, 2023 13:28
nrnhines pushed a commit that referenced this pull request Sep 6, 2023
…lock (#2210)

* when STATE + COMPARTMENT variable is not used in KINETIC
  block then we were updating invalid memory location (capacity[-1])
  and it was corrupting/updating some other memory location
* like all other usages, make sure symbol/state variable is used
  before using it to update the list

fixes #2206
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.

nocmodl segfaults when translating cal4.mod from ModelDB entry 267140

4 participants