in my bash script I got the following command
ulimit -s unlimited
However, when I launch my job by sbatch job.sh and then ssh to on
sbatch job.sh