<html><body><div style="color:#000; background-color:#fff; font-family:新宋体, nsimsun, sans-serif;font-size:14pt"><div><span>Hi zhiping,</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><span>There is another choice to deal this problem,</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><span>and it works every time for me at least.</span></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">Modify your system like this:</div><div style="color: rgb(0, 0, 0); font-size:
 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">1: vi /etc/profile</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">  add 'ulimit -s 262144' (about 256M) after the line "ulimit -S -c 0 > /dev/null</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">2: vi /etc/security/limits.conf</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family:
 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">  xxx hard stack 262144<br>  xxx soft stack 262144</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">  (xxx is your user name, change them)</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">3: limit stacksize 262144 (in .cshrc differ from .bashrc)</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family:
 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">Hope it works,</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">regards</div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">sun<br></div><div style="color: rgb(0, 0, 0); font-size: 18.6667px; font-family: 新宋体,nsimsun,sans-serif; background-color: transparent; font-style: normal;">CUHK<br></div></div></body></html>