Skip to content

mpp_error outputs bad ascii values with GNU 15 #1858

Description

@rem1776

Describe the bug
mpp_error seems to output only random ascii values when compiled with gcc 15. This happens in a lot of the test scripts but since it only affects the output they still pass.

To Reproduce

program mpp_error_test
  use fms
  implicit none
  call fms_init()
  call fms_mpp_error( NOTE, 'this wont be output because it is broken')
  call fms_end()
end program

results in:

       ????????????????����������������                �����0����Q0f7@��j0@@!&70@�t~�6@ �j0@�? �j0@��j0@@470@} re�T\�DB@>�␦70@���������Dw�U��@0�Dw�U���0����Q�0����.@��Q
����������������                ��������������\�NONE            ��\NONE            ��\warning:
 MPP_DOMAINS_STACK high water mark=           0

Tabulating mpp_clock statistics across      1 PEs...

                                      hits          tmin          tmax          tavg          tstd  tfrac grain pemin pemax
Total runtime                            1      0.001140      0.001140      0.001140      0.000000  1.000     0     0     0
 MPP_STACK high water mark=           0

built with gcc 15 + debug flags on the amd box.

This also happens on the CI image.

Expected behavior
Output should work as expected.

System Environment
amd box and CI image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions