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 

Couple issues with SDBG64

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



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Sat Apr 10, 2021 9:26 pm    Post subject: Couple issues with SDBG64 Reply with quote

1) Alt+X key combination does not work in SDBG64. I have to click Exit with the menu using mouse. Was this short cut removed or i have to restart my overloaded bitten up computer ?

32 bit works OK

2) Also 64 bit debugger does not identify the error, just telling about exception and you scratch the head what the problem is. Getting word Exception scares you to hell, you always think that we got unknown internal compiler error like in earlier versions and this is the end of the life

Code:

a=3.5481e26
b=1.60218e-12
c=3.34e-24
d=sqrt(2*a*b/c)
end

or even simpler

a=2.e22
b=2.e-22
c=a/b
end


32 bit works ok

3) Typical Fortran users are super lazy kinds of animals. They always wait somebody else report the problems with the compiler or procrastinate to send any their suggestions for improvement.
They also almost never use modern ways of debug the code. As a results such excellent tools like SDBG/SDBG64 may have no new features for years, or having sometimes even minor or major bugs not fixed for a long time. If i were a FTN95 developer i'd only allow to use the compiler for one month and then allow it to use for free for personal use only for those who made at least 3 suggestions for its improvement or reported 3 bugs. Otherwise i do not see how any smaller company can survive without tight group of devoted fans who care.

This preamble was to say that i'm still kind of surprised but i can not find now how to stop the run and return to the debugger during the execution. The appropriate window existed before for that is missing, or something is wrong with my computer or eyes. Here is the simple code, please try to abort execution in the middle of the run and see what is going on in the debugger

Code:
a=1.222
  do i=1, 1000000000
    a=alog(exp(a))
  enddo
  print*, a
end


4) Horizontal scroll bar is missing. Somehow the text permanently slips to the right. I already learned that to return it back you need to use left arrow but others may spend a lot of time to find that

5) If you try to use (zeroise for example) the array which was not allocated you get crash with confusing error message "Reference through NULL Fortran POINTER" instead of just message that the array was not allocated. Adding to confusion is also the use of CaPitAl LeTTers Smile
Even being the user of this compiler for many decades i really afraid its punishing and too formal and elitist style of error messages. All error messages have to be explanatory and novices-friendly !
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 260

PostPosted: Mon Apr 12, 2021 1:06 pm    Post subject: Reply with quote

Dan,

I used ftn95 8.70.0 to compile the second program listed in 2) with command
Code:
ftn95 sample_sdbg64.for /64 /link /debug

. In my environment ALT+x worked and the exception dialog displayed the file name and the line number (which is 3). Version number of both clearwin64.dll and salflibc64.dll is 23.1.18.7 . This corresponds to the behaviour of the 32 bit version.

However, you need to enter the lower case x to exit the debugger. Typing ALT+SHIFT+x does not work (also corresponding to the 32 version).

What I wonder about is why the look and feel of the 32 bit is different to that of the 64 bit debugger: entereing ALT+x to the 32 bit version of the debugger results in a confirmation dialog for exit whereas it exits without a confirmation dialog for the 64 bit version.

Moreover entereing F6 to the debugger displays the information string "Floating point overflow" for the 32 bit version and "Error: Exception: ..." for the 64 bit version.

Regards,
Dietmar
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 260

PostPosted: Mon Apr 12, 2021 1:42 pm    Post subject: Reply with quote

Concerning 3: I could stop the debugger via ALT+x for both the 64 bit and the 32 bit version of the debugger. But I am not sure: for the 32 bit version ALT+x did not always work at the first time, I needed to press ALT+x twice in most cases. Moreover, I missed the information that the program was running after having pressed ALT+x . For the 32 bit version I could type F6 (to start the executable) and then ALT+c displayed the "Call Stack/Status" window displaying the line "Status: Programm Running." The same happened for the 64 bit version of the debugger except of the information string displayed (which was "Status: Running").

Concerning 4: yes, there is no scrollbar in the 64 bit version of the debugger.

Concerning 5: I did not find the array in your code samples (or did I miss it??)

Regards,
Dietmar
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Tue Apr 13, 2021 12:29 pm    Post subject: Reply with quote

Dietmar, Thanks for confirming these issues.

As to the last case 5 i did not supply the code. When i made a small reproducer though i got different error message "Access Violation writing address xxxxxxxx", which is also bad diagnostics, though different from what i wrote in first post. Need to find right reproducer
Code:
real*8, dimension(:), allocatable :: PeakEnergy

A=1.1
DO I=1,11
PeakEnergy(i)=ALOG(EXP(A))
print*,i
ENDDO
end
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