Segmentation fault on AMD
Posted: Mon Oct 25, 2010 11:12 am
Hi everybody,
I have a strange architecture-specific problem with NetCons connecting cells inside objects.
Consider the following code:
The problem is not that I can't run it, but that when I run it on an AMD Opteron processor (64bit) the interpreter doesn't exit cleanly and gives me a segmentation fault (but I've tested it on 32- and 64-bit Intels and they do just fine). In other words, if during an interactive session I type the above commands I don't get any error until I type Ctrl-D to exit. Then I get
Obviously, this happens also if I use this kind of code inside a function: I get a segfault on function exit.
NEURON mercurial revision number is 475.
Any ideas? Thank you for your help!
I have a strange architecture-specific problem with NetCons connecting cells inside objects.
Consider the following code:
Code: Select all
from neuron import h
class Dummy(object):
pass
a = Dummy()
a.source = h.NetStim(0.5)
a.target = h.NetStim(0.5)
a.nc = h.NetCon(a.source, a.target)
h.load_file("stdrun.hoc")
h.run()Code: Select all
python
Python 2.6.5 (r265:79063, May 28 2010, 10:39:40)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from neuron import h
MPI_Initialized==false, disabling MPI functionality.
NEURON -- VERSION 7.2 (?:?) 1999-12-31
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
>>>
>>> class Dummy(object):
... pass
...
>>> a = Dummy()
>>>
>>> a.source = h.NetStim(0.5)
>>> a.target = h.NetStim(0.5)
>>>
>>> a.nc = h.NetCon(a.source, a.target)
>>>
>>> h.load_file("stdrun.hoc")
1.0
>>> h.run()
0.0
>>> exit()
Segmentation fault
NEURON mercurial revision number is 475.
Any ideas? Thank you for your help!