The following code is giving me a Segmentation violation. It doesn't occur inmediately, but after some simulation time. It can be 50000, 1e5, 2e5 ms and as you can see I'm trying to do a 5e5 ms run.
Before anybody asks, there are so many synaptic inputs because they will have different weights. I just trimmed the code to the minimal and still gives the fault. It happens in two 64bit Linux machines (Ubuntu 12.04 and Debian; in the first it was compiled and in the second it was installed from the .deb file). I haven't tried in a Windows machine yet.
Code: Select all
N_ex=800 //Excitatory inputs
N_in=200 //Inhibitory inputs
create soma
access soma
soma {L=20 diam=20}
insert hh
tstop = 500000
v_init= -65
objref AMPAinp[N_ex], AMPApre[N_ex], AMPAconn[N_ex]
objref GABAinp[N_in], GABApre[N_in], GABAconn[N_in]
for ii= 0,N_ex-1 {
AMPAinp[ii] = new ExpSyn(0.5)
AMPAinp[ii].tau = 1
AMPApre[ii] = new NetStim(0.5)
AMPApre[ii].interval = 1000 //interval 1 sec => rate 1Hz
AMPApre[ii].start = 0
AMPApre[ii].number = 1e6
AMPApre[ii].noise = 1 //totally random (Poisson)
AMPAconn[ii] = new NetCon(AMPApre[ii],AMPAinp[ii])
AMPAconn[ii].weight = 0.0004
}
for ii= 0,N_in-1 {
GABAinp[ii] = new Exp2Syn(0.5)
GABAinp[ii].tau1 = 1
GABAinp[ii].tau2 = 10
GABAinp[ii].e = -70
GABApre[ii] = new NetStim(0.5)
GABApre[ii].interval = 1000 //interval 1 sec => rate 1Hz
GABApre[ii].start = 0
GABApre[ii].number = 1e6
GABApre[ii].noise = 1 //totally random (Poisson)
GABAconn[ii] = new NetCon(GABApre[ii],GABAinp[ii])
GABAconn[ii].weight = 0.0005
}
Code: Select all
oc>/usr/local/nrn/x86_64/bin/nrniv: Segmentation violation
near line 10
{run()}
^
doNotify()
screen_update()
continuerun(500000)
run()
Segmentation fault