You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that cam_register_open_file in src/utils/cam_abortutils.F90 linked-list with pooling logic leads to the second file dropping its %file_desc.
If a debug printout is written above the check
dowhile (associated(of_ptr))
! debug here
if(.not. associated(of_ptr%file_desc)) thenwrite(6,*) of_ptr%file_name
endif
! / debug here
if (file%fh == of_ptr%file_desc%fh) then ! <---- segfault location
call endrun(subname//': Cannot register '//trim(file_name)//', file already open as '//trim(of_ptr%file_name))
end if
of_ptr => of_ptr%next
end do
It can be seen that starting from the second file the linked list is dangling:
… with history output (#333)
Tag name (required for release branches):
Originator(s): @jimmielin
Description (include the issue title, and the keyword ['closes',
'fixes', 'resolves'] followed by the issue number):
- Fixes#332 (`max_mdims` used before defined)
- Fixes#331 (unassociated `of%file_desc` in `cam_register_open_file`
leading to crash with >2 history files)
Describe any changes made to build system: N/A
Describe any changes made to the namelist: N/A
List any changes to the defaults for the input datasets (e.g. boundary
datasets): N/A
List all files eliminated and why: N/A
List all files added and what they do: N/A
List all existing files that have been modified, and describe the
changes:
(Helpful git command: `git diff --name-status
development...<your_branch_name>`)
```
Fixes#331
M src/history/cam_hist_file.F90
Fixes#332
M src/utils/cam_abortutils.F90
```
If there are new failures (compared to the
`test/existing-test-failures.txt` file),
have them OK'd by the gatekeeper, note them here, and add them to the
file.
If there are baseline differences, include the test and the reason for
the
diff. What is the nature of the change? Roundoff?
derecho/intel/aux_sima:
derecho/gnu/aux_sima:
If this changes climate describe any run(s) done to evaluate the new
climate in enough detail that it(they) could be reproduced:
CAM-SIMA date used for the baseline comparison tests if different than
latest:
What happened?
Model crashes with error when there are more than 3 history file slices written:
What are the steps to reproduce the bug?
FKESSLER
)./xmlchange DEBUG=true
./case.setup
and buildWhat CAM-SIMA hash were you using?
f999707
What machine were you running CAM-SIMA on?
CISL machine (e.g. cheyenne)
What compiler were you using?
Intel
Path to a case directory, if applicable
No response
Will you be addressing this bug yourself?
Yes
Extra info
It appears that
cam_register_open_file
insrc/utils/cam_abortutils.F90
linked-list with pooling logic leads to the second file dropping its%file_desc
.If a debug printout is written above the check
It can be seen that starting from the second file the linked list is dangling:
There are a couple of issues with the pooling code that could be improved for robustness. A PR will follow this issue.
The text was updated successfully, but these errors were encountered: