-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seg fault in test suite on sink particle creation #94
Comments
thanks for posting this. There is a problem with the way memory is allocated in the sink particle creation routine. I think the seg fault occurs if your stack size is not big enough, so there is a workaround (and hence why it is not failing in the GitHub actions). However, the underlying issue needs fixing, namely that a large array is allocated on the stack in create_ptmass (src/main/ptmass.F90, subroutine create_ptmass): integer :: listneigh(maxneigh) this needs to be an array that is globally allocated/deallocated, rather than getting repeatedly reallocated and deallocated every time one enters or leaves this subroutine. |
the workaround is that you need: ulimit -s unlimited |
Hi! I seem to have run onto the same issue. I've just cloned the latest version of phantom in github and tried running the test suite.
The same error appears when I try to setup a polytropic star. |
Same problem for me. |
workaround on Mac OS is: ulimit -s 8192 |
I do not know if other people have the same issue, but the testsuite does not pass with the last version of gfortran 10.2.0.
I have got this error:
`--> testing sink particle creation (sin)
Program received signal SIGBUS: Access to an undefined portion of a memory object.
Backtrace for this error:
/bin/bash: line 1: 90091 Segmentation fault: 11 ../bin/phantomtest
make[1]: *** [test] Error 139
make: *** [test] Error 2`
The text was updated successfully, but these errors were encountered: