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

Segfault for large systems #23

Open
marvinfriede opened this issue Oct 17, 2023 · 0 comments
Open

Segfault for large systems #23

marvinfriede opened this issue Oct 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@marvinfriede
Copy link
Member

If one does not increase the stack size for large systems (ulimit -s unlimited), a segmentation fault occurs.

The problem seems to stem from the parallel region in get_amat_0d.

gdb log
(gdb) bt
#0  0x0000000000412d81 in get_amat_0d::L_multicharge_model_mp_get_amat_0d__135__par_loop0_2_6 ()
    at ../src/multicharge/model.F90:135
#1  0x0000000002294eb3 in __kmp_invoke_microtask ()
#2  0x000000000225750c in __kmp_fork_call ()
#3  0x0000000002226ff8 in __kmpc_fork_call ()
#4  0x000000000041298a in multicharge_model::get_amat_0d (self=..., mol=..., amat=...)
    at ../src/multicharge/model.F90:135
#5  0x000000000041e3b7 in multicharge_model::solve (self=0x7fffffffd148, mol=..., cn=..., 
    dcndr=<Fehler beim Lesen der Variable: Location address is not set.>, 
    dcndl=<Fehler beim Lesen der Variable: Location address is not set.>, energy=..., 
    gradient=<Fehler beim Lesen der Variable: Location address is not set.>, 
    sigma=<Fehler beim Lesen der Variable: Location address is not set.>, qvec=..., 
    dqdr=<Fehler beim Lesen der Variable: Location address is not set.>, 
    dqdl=<Fehler beim Lesen der Variable: Location address is not set.>)
    at ../src/multicharge/model.F90:468
#6  0x00000000004089e6 in main () at ../app/main.f90:76
#7  0x00000000004056f2 in main ()

The error vanishes upon removing the OMP directives.

The problem was first raised in dftd4/dftd4#218.

@marvinfriede marvinfriede added the bug Something isn't working label Oct 17, 2023
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

1 participant