[Bug 37248] New: Floating point stack fault in a program compiled with Silverfrost FTN95

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 10 07:17:29 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=37248

            Bug ID: 37248
           Summary: Floating point stack fault in a program compiled with
                    Silverfrost FTN95
           Product: Wine
           Version: 1.7.25
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: pepalogik at seznam.cz

I use Silverfrost FTN95 compiler
<http://www.silverfrost.com/11/ftn95/ftn95_fortran_95_for_windows.aspx> for
debugging a Fortran 77 code. This compiler has quite a unique CHECKMATE feature
which performs various run-time checks, but this compiler is Windows-only.
First it seemed to work fine in Wine but then, when I used a larger code, the
program execution resulted in a floating point stack fault. Note that the
compiler itself works correctly in Wine, but the resulting CHECKMATE-enabled
executable fails (while the very same executable runs well on Windows).

I was happy when I found a workaround: to compile the program with /F_STDCALL.
Unfortunately, this turned out to be insufficient for an even larger code (it
is actually the same program with just larger parameter values and thus larger
arrays and more iterations in various cycles). For this code, /F_STDCALL only
causes the floating point stack fault to occur later.

I cannot 100% guarantee that the code is correct - a floating point stack fault
can be caused e.g. by calling a function with an incorrectly specified return
type. However, I think this is unlikely for the following reasons:
1. It does work on MS Windows,
2. It has been checked with two different compilers (FTN95 and gfortran).
3. It has been checked with Silverfrost's CHECKMATE run-time checking (as it
runs on Windows without failure).
4. It has been checked by me.
Hence I guess it is a bug in Wine.

What files do you need to tackle this problem? As the executable needs a
Silverfrost's runtime library, you will have to install FTN95 in any case. I
suggest that I will upload these files and information:
* program source,
* compiling instructions,
* input files (which are required by the program).

I will now wait for either your response or the appearance of Wine 1.7.26 in
the PPA (it seems to be to complicated for me to build it from the source). If
the latter happens earlier, I will check if the bug persists and upload the
files I have suggested.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list