- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Crash using smg$scroll_display_area
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО06-23-2010 06:37 AM
тАО06-23-2010 06:37 AM
Crash using smg$scroll_display_area
Are we using it the wrong way, or is it a (known) bug?
OS: HP OpenVMS Industry Standard 64 Operating System, Version V8.3-1H1
Patches: NO
HW: Integrity
[INHERIT('SYS$LIBRARY:STARLET.PEN',
'SYS$LIBRARY:PASCAL$SMG_ROUTINES.PEN')] PROGRAM TEST(INPUT,OUTPUT);
VAR
disp: UNSIGNED;
pasteboard: UNSIGNED;
I: INTEGER;
rows,cols:INTEGER;
testlen:INTEGER;
doScroll:BOOLEAN;
BEGIN
testlen:=19;
doScroll:=TRUE;
smg$create_pasteboard(pasteboard,,rows,cols);
smg$create_virtual_display(testlen,60,disp,smg$m_border);
smg$paste_virtual_display(disp,pasteboard,2,5);
FOR I := 2 TO (testlen-1) DO
smg$put_chars(disp,DEC(I,2,1),I,1);
IF doScroll THEN
smg$scroll_display_area(disp,,,,,,testlen-1);
END.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2010 07:34 AM
тАО06-23-2010 07:34 AM
Re: Crash using smg$scroll_display_area
Some info on "smg$scroll_display_area", in case you have not already referred -
http://www.itec.suny.edu/scsys/vms/OVMSDOC0731/731final/5841/5841pro_058.html
http://pupgg.princeton.edu/HELP/RTL_ROUTINES/SMG_/SMG_SCROLL_DISPLAY_AREA
Regards,
Murali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2010 09:11 AM
тАО06-23-2010 09:11 AM
Re: Crash using smg$scroll_display_area
If that's the case, then you might want to revisit that and implement some error handling.
The SMG manual looks to be somewhat spotty here in this regard (as various Pascal examples lack any error handling), though I do see error handling in a Pascal example for the SMG$SELECT_FROM_MENU call, located on page SMG-344 in the SMG manual at:
http://h71000.www7.hp.com/doc/73final/documentation/pdf/ovms_73_rtl_smg.pdf
Failure to have error handling means errors can cascade, of course, and can make an entire application harder to support and harder to maintain.
The other programming document to read through here (if you've not already done so) is the OpenVMS Programming Concepts Manual, which describes the format and structure and usage of condition handling; of errors and returns and related handling. That's the generic model used underneath all OpenVMS languages.
The Pascal and OpenVMS manuals are available via:
http://www.hp.com/openvms/doc
You might also want to apply the current mandatory ECOs, but that's secondary to the problems in the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2010 05:06 PM
тАО06-23-2010 05:06 PM
Re: Crash using smg$scroll_display_area
I think you've found a bug. Your code, run on OpenVMS/IA64 V8.3-1H1, gets an ACCVIO in OTS$MOVE called from SMG$FLUSH_BUFFER.
The same code run on OpenVMS/Alpha V8.3 is successful (or, at least, doesn't result in an ACCVIO).
> I don't see any error-handling in the posted code.
Error handling might be appropriate when calling routines that are documented to signal expected errors, but in this case, no RTL routine passed with correct arguments should ever signal an ACCVIO.
Your arguments are valid. My experiments show the ACCVIO occurs if the count is 18 or higher, but only on Itanium. I believe it's a bug.
My version of your program is in MACRO32, so it's not a Pascal issue. Most likely something in SMGRTL. Please raise a case with HP customer support.
(and, BTW, it's very nice to see such a succinct reproducer!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2010 08:39 PM
тАО06-23-2010 08:39 PM
Re: Crash using smg$scroll_display_area
This problem has been fixed. Latest kit of SMGRTL will have this fixed image included. We verified this problem on V8.3-1H1 system with the latest image.
$ test_program_given
├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в
$ ├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в
├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в
This test program with new SMGSHR image succesfully creates a rectangular box.
Regards
Ranjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2010 09:05 PM
тАО06-23-2010 09:05 PM
Re: Crash using smg$scroll_display_area
It looks to me like (from your update) the kit is not yet out for the customers. An idea about the kit name/number and probable release date for the kit?
Regards,
Ketan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2010 12:11 AM
тАО06-24-2010 12:11 AM
Re: Crash using smg$scroll_display_area
VMS831H1I_SMGRTL-V0200 kit will have the fix for OpenVMS IA64 V8.3-1H1 version. Usually it takes 8-9 weeks of time to make it available for customers.
- ranjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 02:51 AM
тАО09-14-2010 02:51 AM
Re: Crash using smg$scroll_display_area
On 23-jun-2010 I received your message:
" VMS831H1I_SMGRTL-V0200 kit will have the fix for OpenVMS IA64 V8.3-1H1 version. Usually it takes 8-9 weeks of time to make it available for customers.
- ranjan "
Do you know the status of this kit. I can't find this kit.
Regards,
Maarten Seinhorst