Seg fault with 4 threads, runs with 2 threads
Created by: subhacom
Fails with seg-fault when run on laptop (4 theads). On desktop it runs (2 threads) OK for 50% of time. Null pointer errror function Element::cinfo has gets NULL this pointer.
./run_mumbl.sh d
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2.7...(no debugging symbols found)...done.
Starting program: /usr/bin/python2.7 main.py --nml ./models/neuroml/v1.8/GranuleCell/GranuleCell.net.xml --mumbl ./models/mumbl.xml --config ./models/neuroml/v1.8/GranuleCell/config.xml
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
on node 0, numNodes = 1, numCores = 2, numComputeThreads = 2
[New Thread 0xb6904b40 (LWP 16679)]
[New Thread 0xb6103b40 (LWP 16680)]
Info: Time to define moose classes:0.01
Info: Time to initialize module:0.22
[New Thread 0xb3b11b40 (LWP 16685)]
[INFO] Started parsing XML models
[INFO] Parsing ['./models/mumbl.xml']
[INFO] Parsing ['./models/neuroml/v1.8/GranuleCell/GranuleCell.net.xml']
[INFO] Parsing ['./models/neuroml/v1.8/GranuleCell/config.xml']
[INFO] Parsing of XMLs is done
[STEP] Loading neuroml file ./models/neuroml/v1.8/GranuleCell/GranuleCell.net.xml ...
[INFO] Using default temperature of % C
[STEP] Creating populations ...
[INFO] Loading population Gran
[DEBUG] Searching in subdirectories for cell types in Granule_98.xml and Granule_98.morph.xml
[INFO] /home/dilawar/Work/NCBS/moose_multiscale_git_svn/multiscale/models/neuroml/v1.8/GranuleCell/cells_channels/Granule_98.morph.xml
[STEP] Loading mechanism Gran_KDr_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism GranPassiveCond
[INFO] Soma(0) inject 1e-11 A.
[INFO] Soma(0) inject 1e-11 A.
[STEP] Loading mechanism Gran_H_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism Gran_CaHVA_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism Gran_KCa_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism Gran_KA_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism Gran_NaF_98
[INFO] Using default temp of 32.0 C
[STEP] Loading mechanism Gran_CaPool_98
[INFO] Using default temp of 32.0 C
[INFO] Loading Ca pool Gran_CaPool_98 into /neuroml/cells
Connected IkOut of /neuroml/cells/Granule_98/Soma(0)/Gran_CaHVA_98 to current of /neuroml/cells/Granule_98/Soma(0)/Gran_CaPool_98
Connected concOut of /neuroml/cells/Granule_98/Soma(0)/Gran_CaPool_98 to concen of /neuroml/cells/Granule_98/Soma(0)/Gran_KCa_98
[STEP] Creating connections ...
[STEP] Creating inputs in /neuroml/electrical ..
[DEBUG] Connecting (Single) /neuroml/electrical/pulsegen_Gran_10pA/outputOut & /neuroml/electrical/iclamp_Gran_10pA/plusIn
[DEBUG] Connecting (Single) /neuroml/electrical/iclamp_Gran_10pA/outputOut & /neuroml/cells/Granule_98/Soma(0)/injectMsg
[INFO] Loading mumble
[TODO] @...core/mumbl.py:159 Elec model is not in NML. Ignoring for now...
mumble : INFO Creating pool with path /mumbl/Chemical/Compartment(1)/Ca
mumble : INFO Creating pool with path /mumbl/Chemical/Compartment(1)/Na
mumble : INFO Creating pool with path /mumbl/Chemical/Compartment(2)/K
[STEP] Creating mapping..
[TODO] Implement out-target
[TODO] Implement out-target
mumble : INFO Adaptor: /mumbl/Chemical/Compartment(1)/Na to /neuroml/cells/Granule_98/Soma(0), Encoded /mumbl/Adaptor/adapt1
mumble : INFO Setting connection between /mumbl/Chemical/Compartment(1)/Na/conc and /neuroml/cells/Granule_98/Soma(0)/Vm
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6103b40 (LWP 16680)]
0xb76c4c46 in Element::cinfo (this=0x0) at Element.cpp:237
237 return cinfo_;
(gdb)
```~~
Reported by: dilawar