View previous topic :: View next topic |
Author |
Message |
KL
Joined: 16 Nov 2009 Posts: 152
|
Posted: Mon Nov 18, 2024 4:35 pm Post subject: |
|
|
PS. I forgot to describe what happens when the problem occurs. Exactly nothing. There is no information and I can stop the run only via "Stop Debugging", independently whether I have selected checkmate or release. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Tue Nov 19, 2024 9:02 am Post subject: |
|
|
Klaus
Another user has reported exactly the same issue. I will try to install 24 H2 on one of my machines and investigate further.
At the moment it seems that the new version of Windows is causing the default exception handler for Win32 fp underflow to fail.
In theory you can provide your own exception handler via TRAP_EXCEPTION@ and FLT_UNDERFLOW but I will investigate first.
The code for the default exception handler is located in salflibc.dll so a previous version of this DLL might provide a temporary fix but better to wait. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2893 Location: South Pole, Antarctica
|
Posted: Tue Nov 19, 2024 10:41 am Post subject: Re: |
|
|
PaulLaidler wrote: | Silverfrost does not currently provide support for FTN95/ClearWin+/etc. under Linux. |
FTN95 under all numerous virtualization incarnations and all possible distributions of Linux is also working under same ol Windows. And doing everything it do under standard Windows. You also can chose any previous version of Windows you want, including those which have no exceptions problems As it works same way all do last 30 years it does not need any special support. Best Windows-like look and feel is with Linux Mint. Worst Ubuntu desktop (server is ok)
Last edited by DanRRight on Fri Nov 22, 2024 10:52 am; edited 2 times in total |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Tue Nov 19, 2024 4:03 pm Post subject: |
|
|
Dan
That is good news but the fact remains. At the moment we are not offering to fix any Linux issues.
Klaus
I am now able to reproduce the failure under 24 H2.
There is currently no known work-around.
The default exception handler (for fp underflow) has not changed for many years so I don't understand how it can work for any version (of salflbc.dll).
Please confirm that it works for you under 24 H2 and versions of FTN95 etc before v9.0. |
|
Back to top |
|
|
KL
Joined: 16 Nov 2009 Posts: 152
|
Posted: Wed Nov 20, 2024 6:24 pm Post subject: |
|
|
I have sent the details per personal email.
Klaus |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Wed Nov 20, 2024 6:56 pm Post subject: |
|
|
Thank you for the information.
We are continuing to work on this issue.
The 24 H2 upgrade for Windows 11 is not yet in general release (at least not in the UK where you have to download a preview version).
Users who require Win32 options should avoid the 24 H2 download for now. Otherwise the only known work-around at the moment is to switch to x64. |
|
Back to top |
|
|
Kenneth_Smith
Joined: 18 May 2012 Posts: 754 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Thu Nov 21, 2024 12:25 pm Post subject: |
|
|
I think this means that under "Windows Update", the "Get the latest updates as soon as they're available", toggle should be set to "Off" in the mean time.
I have just changed this on my machine. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Thu Nov 21, 2024 1:35 pm Post subject: |
|
|
Ken
I am not sure about that. If you want the 24 H2 upgrade then (in the UK at least) you have to do a manual download from a Microsoft website. The automatic updates are still based on 23 H2. |
|
Back to top |
|
|
Kenneth_Smith
Joined: 18 May 2012 Posts: 754 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Thu Nov 21, 2024 2:30 pm Post subject: |
|
|
Paul,
My fear is that the 24 H2 upgrade could be rolled out to the UK at any time at Microsoft's discretion. We don't have any control over that, so we may want to do something to prevent it being applied to our computers. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Fri Nov 22, 2024 9:13 am Post subject: |
|
|
Thanks Ken. That is a good point.
Whilst we continue to work on a fix, a temporary work-around is to mask all underflows for Win32.
When underflows are masked, an exception is not raised when an underflow occurs. The current issue arises when the system does not recover after an underflow exception is triggered. Hence the work-around.
There are two ways to mask underflows:
1) CALL MASK_UNDERFLOWS@() before doing any fp arithmetic.
2) Set the environment variable:
SET SALFENVAR=mask_underflow
The round-off error for an underflow will change. For example, the following code gives 1.741119E-39 rather than zero. This value is below the threshold for 32 bit real numbers.
Code: | program test
real*4 a, b, d
real*8 c
call MASK_UNDERFLOWS@()
a = 2.89e-3
b = 8.30544
c = 95.0428
d = a * b**5.5 * exp(-c)
write(*,*) d
end program test
|
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8089 Location: Salford, UK
|
Posted: Tue Jan 21, 2025 12:51 pm Post subject: |
|
|
We are still working on this issue which concerns a change in the WOW Windows 11 operating system at version 24H2. (For me in the UK, automatic Windows updates for 23H2 do not currently use 24H2.)
The failure occurs for the Win32 platform when an underflow occurs. Today's interim release avoids the failure by a change in salflibc.dll that causes 24H2 WOW underflows to be masked by default. This means that (for this release of salflibc.dll) Win32 24H2 underflows are gradual rather than abrupt.
Win32 users with Windows 11 24H2 can use existing versions of salflibc.dll (versions before today's release) by either a) calling mask_underflows@ at the start of the program or b) setting the environment variable SALFENVAR=mask_underflows. Method (b) avoids the need to recompile the code. |
|
Back to top |
|
|
|