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

dbcsr_reserve_blocks dereferences dangling pointer MATRIX%COL_I #420

Open
vzecca opened this issue Jan 13, 2021 · 0 comments
Open

dbcsr_reserve_blocks dereferences dangling pointer MATRIX%COL_I #420

vzecca opened this issue Jan 13, 2021 · 0 comments
Milestone

Comments

@vzecca
Copy link

vzecca commented Jan 13, 2021

Running cp2k test cases QS/regtest-gw/evGW_OH_PBE.inp and evGW_OH_PBE_svd.inp
the dangling pointer matrix%col_i is dereferenced at dbcsr_block_access.F line 597

CALL merge_index_arrays(new_row_i, new_col_i, new_blk_p, nblks_new, &
old_row_i, matrix%col_i, matrix%blk_p, nblks_old, &

For first test case its target was DEALLOCATEd at line 406 of data/dbcsr_ptr_util.F
DEALLOCATE (mem)

For second test case (_svd) its target was DEALLOCATEd at line 460 of dbcsr_data_methods.F
DEALLOCATE (area%d)

@alazzaro alazzaro added this to the v2.2 milestone Sep 14, 2021
@hfp hfp modified the milestones: v2.2, v2.3 Dec 24, 2021
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

3 participants