HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Difference in Itanium and Alpha Basic error handli...
Operating System - OpenVMS
1827822
Members
2551
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 10:18 AM
04-17-2007 10:18 AM
Difference in Itanium and Alpha Basic error handling
! This program fails (signals an error) on Itanium
! and exits cleanly on Alpha
! Both OPenVMS 8.3, Basic v1.6
call inner
end
function long inner
option handle=severe
%include "$SSDEF" %from %library "SYS$SHARE:BASIC$STARLET"
when error in
call lib$signal( SS$_ABORT by value )
exit function 1
use
exit handler unless vmsstatus = SS$_ABORT
print "Caught abort: "; vmsstatus
end when
end function 0
! and exits cleanly on Alpha
! Both OPenVMS 8.3, Basic v1.6
call inner
end
function long inner
option handle=severe
%include "$SSDEF" %from %library "SYS$SHARE:BASIC$STARLET"
when error in
call lib$signal( SS$_ABORT by value )
exit function 1
use
exit handler unless vmsstatus = SS$_ABORT
print "Caught abort: "; vmsstatus
end when
end function 0
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2007 11:49 AM
04-17-2007 11:49 AM
Re: Difference in Itanium and Alpha Basic error handling
Nice concise reproducer. Thanks.
Looks like a bug. Report to HP.
The program may be right, but it feels wrong to me. It declares a function 'inner' and then calls it as a function, with no return value. That may be legit but I don't like it myself, and the compiler agrees...
If you change the code to i%=inner it works on both platforms.
Then again... if you change the code to 'sub inner'... 'exit sub' and 'return sub' the problem stays. So something is wrong and worth reporting officially.
fwiw,
Hein.
Looks like a bug. Report to HP.
The program may be right, but it feels wrong to me. It declares a function 'inner' and then calls it as a function, with no return value. That may be legit but I don't like it myself, and the compiler agrees...
If you change the code to i%=inner it works on both platforms.
Then again... if you change the code to 'sub inner'... 'exit sub' and 'return sub' the problem stays. So something is wrong and worth reporting officially.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2007 08:22 AM
04-18-2007 08:22 AM
Re: Difference in Itanium and Alpha Basic error handling
Interesting. I was going to claim that the bug had occured with a function call (like sts = inner ) since we "deprecate" the use of call, but went back to the code before I distilled it down, and the original usage was a "call" generated by an automated test-wrapper.
I expect there's a lot of code out there that "call"s functions.
I expect there's a lot of code out there that "call"s functions.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP