Skip to content

Iterating through a segment with no mechanisms segfaults #3793

Description

@ramcdougal

This works:

>>> from neuron import n
>>> soma = n.Section("soma")
>>> soma.insert(n.hh)
soma
>>> for mech in soma(0.5): break
... 
>>> mech
k_ion

But this segfaults:

>>> from neuron import n
>>> soma = n.Section("soma")
>>> for mech in soma(0.5): break
... 
zsh: segmentation fault  python

I'm running on an M2 mac, but I'm pretty sure this would also segfault on Linux based on #3792.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions