Segfault occurs when accessing non-allocated object in open_output_file in file_utils

Issue #8 resolved
Ryusuke Numata created an issue

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)

  1. David Dickinson

    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.

  2. Log in to comment