Segfault occurs when accessing non-allocated object in open_output_file in file_utils
Issue #8
resolved
This problem occurs on NIFS Plasma Simulator using Fujitsu compiler. It seems a bug though most of the system does not care about it.
The variable formtxt in open_output_file has an allocatable attribute, and is also given a fixed length. It is accessed without allocate statement.
Just removing the allocatable attribute works fine. I don't know why it is allocatable.
Comments (3)
-
-
Sorry, that keyword shouldn't be there. Patched in PR #8.
-
- changed status to resolved
- Log in to comment
This looks a bit like a bad merge at some point, @josephparker was the one to introduce that change -- he may be able to advise what the intended behaviour was.