#66912 closed defect (fixed)

ncl builds on arm64 but does not run correctly

Reported by: MicroTed (Ted Mansell) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc:
Port: ncarg

Description

The ncarg port built successfully on my M1 macbook pro (Monterey, 12.6.3). The ncl application yields a segmentation fault when it tries to run a built-in example, however. I have done some work already to build from source on M1, but there is a problem with the C to Fortran interfacing.

For example, see https://github.com/NCAR/ncl/issues/187 and https://github.com/NCAR/ncl/pull/191

In brief, the seg fault is caused by the fortran subroutine having a bad length for a passed string, so it writes out of bounds on the string.

I don't know if anybody can help with this, but if anybody know how to fix calls to Fortran from C, it would be much appreciated!

Change History (3)

comment:1 Changed 15 months ago by jmroot (Joshua Root)

Keywords: arm64 added; seg fault removed
Owner: set to tenomoto
Status: newassigned

comment:2 Changed 14 months ago by tenomoto (Takeshi Enomoto)

Thanks for reporting. I commented in https://github.com/NCAR/ncl/issues/187

comment:3 Changed 14 months ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.