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

Segmentation Fault: 11 - simulation unable to initialize and run #3336

Open
EthanIrby8 opened this issue Feb 18, 2025 · 1 comment
Open

Segmentation Fault: 11 - simulation unable to initialize and run #3336

EthanIrby8 opened this issue Feb 18, 2025 · 1 comment
Labels

Comments

@EthanIrby8
Copy link

Context

I have a NEURON-based python program that uses various compiled .mod files to build a network.
The program is unable to run once it hits these code lines at the end of the program:
h.finitialize(-65)
h.continuerun(100)

At the first run of the program, the result of the execution is a segmentation fault error: Segmentation Fault: 11.
The second run of the program does not give a segmentation fault error and instead does not print anything and continues to run indefinitely until VSCode stops the program.

I have tried using the nrniv -debug command to check for any version incompatibilities or under-the-hood runtime errors. The command shows that the .mod files were compiled though an error with importing a method from multiprocessing appears.
I have attached the stacktrace below. Let me know if you would like to see the mod files or any additional code/information.

Image

NEURON setup

  • Version: NEURON==8.2.6
  • Installation method: pip
  • macOS
  • mod files compiled using the command: nrnivmodl
@EthanIrby8 EthanIrby8 added the bug label Feb 18, 2025
@nrnhines
Copy link
Member

As far as I know, -debug is not a valid argument to nrniv. It is being treated as a HOC file and hence can't open -debug.
I'm guessing that test_nigo_pathway.py contains python code that make use of multiprocessing support. If that is the case, it is probably best to launch python test_nigo_pathway.py as it seems more likely that python multiprocessing support will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants