On OSX (fresh installation of NEURON 7.5 but similar results with 7.4), but not on Linux, I observe the following problem with a python file LEMS_2007One_nrn.py (source here
https://gist.github.com/rgerkin/e4867fb ... e9e2f88d2e)
Code: Select all
import LEMS_2007One_nrn # runs fine
however...
Code: Select all
def foo():
import LEMS_2007One_nrn
foo() # produces a segmentation fault.
I imagine it has something to do with the function exiting and not cleaning up memory allocated by the import, which was properly cleaned up when the import was done outside a function. I don't have this problem in Linux, only in OSX. However, it is preventing me from doing NEURON-related development on my Mac. The LEMS_2007One_nrn.py file was auto-generated from a LEMS file by jNeuroML using the NEURON export feature.