Hello,

When running more than 3 analyses in parallel in FreeSurfer 5.3, I am getting matlab crashes. Mathworks has politely declined to provide support unless I can replicate outside FsFAST.

The errors are variants of

"""

OMP: Error #34: System unable to allocate necessary resources for OMP thread:
OMP: System error #11: Resource temporarily unavailable
 [...]
MATLAB is exiting because of fatal error
Killed
------------------------------------------
ERROR: fast_selxavg3() failed\n


"""

thread_monitor Resource temporarily unavailable in pthread_create
*** glibc detected *** /usr/local/MATLAB/R2015b/bin/glnxa64/MATLAB: double free or corruption (!prev): 0x00007f585308c390 ***
Segmentation fault (core dumped)

"""

I have copied Matlab version info below. Any tips on how to troubleshoot?

----------------------------------------------------------------------------------------------------
MATLAB Version: 8.6.0.267246 (R2015b)
MATLAB License Number: 1098672
Operating System: Linux 2.6.32-573.18.1.el6.x86_64 #1 SMP Wed Jan 6 11:20:49 EST 2016 x86_64
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB                                                Version 8.6         (R2015b)
Computer Vision System Toolbox                        Version 7.0         (R2015b)
Image Processing Toolbox                              Version 9.3         (R2015b)
Optimization Toolbox                                  Version 7.3         (R2015b)
Signal Processing Toolbox                             Version 7.1         (R2015b)
Statistics and Machine Learning Toolbox               Version 10.1        (R2015b)





stephen v. shepherd   phd
The Rockefeller University / 1230 York Avenue / New York NY 10065-6307 USA // 212.327.7699