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

Ubuntu WSL/GCC: Tests don't run in debug, segfault #19

Open
pirpyn opened this issue Nov 10, 2020 · 2 comments
Open

Ubuntu WSL/GCC: Tests don't run in debug, segfault #19

pirpyn opened this issue Nov 10, 2020 · 2 comments
Labels

Comments

@pirpyn
Copy link
Contributor

pirpyn commented Nov 10, 2020

This only happens on Ubuntu WSL

To reproduce

$ FoBiS.py build -f slsqp.fobis -mode tests-gnu-debug -t slsqp_test.f90 -force_compile  && ./bin/slsqp_test
[...]
Target src/tests/slsqp_test.f90 has been successfully built

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7fdb1d6f0d01 in ???
#1  0x7fdb1d6efed5 in ???
#2  0x7fdb1d51620f in ???
#3  0x7fffcc174fb8 in ???
Segmentation fault (core dumped)

Inspecting with GDB the problem occurs at slsqp_module.f90:398

call me%f(x,f,cvec)

Could it be a compiler bug that fails to get me%f correctly ?

@pirpyn pirpyn changed the title GCC: Tests don't run in debug, segfault Ubuntu WSL/GCC: Tests don't run in debug, segfault Nov 10, 2020
@pirpyn
Copy link
Contributor Author

pirpyn commented Nov 10, 2020

Since it only happens on WSL, this is likely a compiler error.
Nevertheless it could be useful to investigate it to produces a MCVE to report to gcc.

@jacobwilliams
Copy link
Owner

Note: I have GitHub Actions set up now for testing. Probably we could add a WSL test?

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

No branches or pull requests

2 participants