forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug in G format conversion

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Wed Jul 13, 2016 4:57 pm    Post subject: Bug in G format conversion Reply with quote

The 64-bit runtime has a bug in output format conversion of numbers between 0.9 and 1.0 with Gn.1 format, e.g., G8.1.
Code:

program chk
implicit none
double precision x
x = 0.96d0
write(*,'(g8.1)')x
end program

The error pop-up that I first see when running the program is:
https://www.dropbox.com/s/uip2iewyb0h9lkq/s1.png
Only upon pressing the CONTINUE button do I see the traceback:
https://www.dropbox.com/s/5z0csuea2qpa41m/s2.png
There is no such problem with the 32-bit compiler.

NOTE: Someone, please provide instructions on attaching images in-line in this forum. I tried selecting the URL and pressing the Img button, but that did not work. Under forum Options I see "HTML is OFF". Is that the cause of the problem?
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2551
Location: Sydney

PostPosted: Thu Jul 14, 2016 12:55 am    Post subject: Reply with quote

mecej4,

I ran your example with the latest update to ftn95 Ver 8.05.0. I do not need CONTINUE as I go straight to your second traceback report. I do reproduce the bug.
I used : ftn95 tst /64 /debug /link
I also do not know the instructions for attaching an image !

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7914
Location: Salford, UK

PostPosted: Thu Jul 14, 2016 7:13 am    Post subject: Reply with quote

Thanks for the feedback. This bug has now been fixed.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7914
Location: Salford, UK

PostPosted: Sat Jul 16, 2016 7:34 am    Post subject: Reply with quote

Here is a link to download a new set of DLLs for testing.
Please remember to save backup copies before replacing the DLLs.

https://www.dropbox.com/s/iuq2riwhfzahbl7/newDLLs1.zip?dl=0
Back to top
View user's profile Send private message AIM Address
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Sat Jul 16, 2016 12:20 pm    Post subject: Reply with quote

Thanks. I ran the full program (from which the short bug reproducer was extracted) with the new DLLs, and it ran correctly.
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Mon Sep 05, 2016 2:53 am    Post subject: Reply with quote

The replacement DLLs mentioned in the post of Sat Jul 16, 2016 have the following problem: when a program containing the DEALLOCATE statement is compiled and linked in 64-bit mode, the following linker error occurs:

Code:
The following symbols were not defined:

DEALLOCATE@
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7914
Location: Salford, UK

PostPosted: Mon Sep 05, 2016 8:19 am    Post subject: Reply with quote

Thanks for the feedback. I have added the missing function to clearwin64.dll and here is a new link for downloading. Please let me know if this fixes the problem.

https://www.dropbox.com/s/kty2x6bl8ipn080/newDLLs2.zip?dl=0
Back to top
View user's profile Send private message AIM Address
mecej4



Joined: 31 Oct 2006
Posts: 1884

PostPosted: Mon Sep 05, 2016 10:39 am    Post subject: Reply with quote

Thanks, Paul. Installing the new DLLs fixed the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group