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

Segmentation fault with GCC 10 for element dict access #33

Open
awvwgk opened this issue Jun 17, 2024 · 2 comments
Open

Segmentation fault with GCC 10 for element dict access #33

awvwgk opened this issue Jun 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@awvwgk
Copy link
Member

awvwgk commented Jun 17, 2024

This error appears in the xtb CI when testing CPCM-X with GCC 10 and might be an issue with the implementation of the element dict access:

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

Backtrace for this error:
#0  0x7f6340e23960 in ???
#1  0x7f6340e22ac5 in ???
#2  0x7f6340a4251f in ???
#3  0x7f634108c8f5 in ???
#4  0x559e1188b264 in dict_get_elem
	at ../subprojects/cpx/src/cpcmx/ElementParameters.f90:470
#5  0x559e1188b391 in __element_dict_MOD_dict_get_key
	at ../subprojects/cpx/src/cpcmx/ElementParameters.f90:430
#6  0x559e11868e24 in __bonding_MOD_det_bonds
	at ../subprojects/cpx/src/cpcmx/bonding.f90:51
#7  0x559e11866357 in __cpxcalc_MOD_init_bonding
	at ../subprojects/cpx/src/cpcmx/cpxcalc.f90:261
#8  0x559e62e9b in __xtb_solv_cpx_MOD_calculate_cpcmx
	at ../src/solv/cpx.F90:101
#9  0x559e1132cda8 in test_cpx_solv
	at ../test/unit/test_cpx.f90:95
#10  0x559e17196 in run_unittest
	at ../test/unit/main.f90:166
#11  0x559e11207196 in run_testsuite
	at ../test/unit/main.f90:149
#12  0x559e11208545 in tester
	at ../test/unit/main.f90:103
#13  0x559e11204fe9 in main
	at ../test/unit/main.f90:20
@awvwgk awvwgk added the bug Something isn't working label Jun 17, 2024
@TyBalduf
Copy link
Contributor

I have been playing around with compiling XTB+CPCM-X with IFX and found that I couldn't get the test suite for CPCM-X to compile. I didn't save the error message, but distinctly remember __element_dict_MOD_dict_get_key not being recognized.

Compiling without the test suite seems to work just fine.

@MtoLStoN
Copy link
Member

This is interesting. Actually, I think the element dictionary is only used in a deprecated (but still existing) run mode of CPCM-X and not in the final version. As I wrote that part of the code several years ago, I would have to take a deeper look at it and possible just remove the dictionary completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants