Skip to content
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

Some tests and examples fail with segmentation fault in serial production build, but not in debug build #160

Open
asandrock opened this issue Sep 21, 2023 · 1 comment

Comments

@asandrock
Copy link

I cloned the repository to my laptop and built with the flag -DSERIAL=1; however, several examples (including simple) failed with a segmentation fault, apparently always when calling the subroutine print_info of a new network. However, when I built with -DSERIAL=1 -DCMAKE_BUILD_TYPE=debug to investigate where it fails, the segmentation fault was gone.

System: Ubuntu 20.04.6 LTS (GNU/Linux 5.15.90.1-microsoft-standard-WSL2 x86_64)
Compiler: GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Build system: CMake 3.26.3

@milancurcic
Copy link
Member

Hi @asandrock, thank you for reporting. Are you by any chance able to try this with a later version of gfortran? On Ubuntu 22.04 and gfortran 10, 11, 12, I'm unable to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants