dbcsr icon indicating copy to clipboard operation
dbcsr copied to clipboard

dbcsr_reserve_blocks dereferences dangling pointer MATRIX%COL_I

Open vzecca opened this issue 4 years ago • 0 comments

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)

vzecca avatar Jan 13 '21 07:01 vzecca