- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Attempt to access item beyond bounds of memory
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
Forums
Discussions
Discussions
Discussions
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
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-05-2007 10:12 PM
06-05-2007 10:12 PM
Attempt to access item beyond bounds of memory
Hi everybody:
I am trying to call from a cobol program the rutine signal to define a user signal to execute a procedure.
The program is simple but i do not know why is not working.
here it is:
DATA DIVISION.
WORKING-STORAGE SECTION.
01 punt-procedure usage procedure-pointer
PROCEDURE DIVISION.
set punt-procedure to entry 'recibe-senial'
call "signal" using by value 19, by value punt-procedure
display "El valor de punt-procedure es" punt-procedure
display "La llamada a senial es " return-code
perform until 1=2
display "Dentro del bucle......."
call "sleep" using by value 3
end-perform
stop run.
I compile the program with:
cob -xctvg -N hplineno prueba_signal.cbl
Could you please help me ?
Thanks in advance
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 10:44 PM
06-05-2007 10:44 PM
Re: Attempt to access item beyond bounds of memory
Sorry,
i did not include in the post, the code of the entry point:
entry "recibe-senial".
display "the signal has been caught"
exit program
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2007 10:48 PM
06-05-2007 10:48 PM
Re: Attempt to access item beyond bounds of memory
I think this is what shared memory is for.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 04:06 PM - edited 09-25-2011 08:55 PM
06-06-2007 04:06 PM - edited 09-25-2011 08:55 PM
Re: COBOL signal handler
Your subject doesn't agree with your question.
It seems you are trying to create a signal handler in COBOL for SIGPWR. (I don't think you can catch such a signal.)
The last COBOL I worked on was for the 1985 Standard. It didn't have your usage procedure-pointer.
In any case, I would NOT use ENTRY but I would create another program. And if you don't want to return, add a STOP RUN at the bottom.
>SEP: I think this is what shared memory is for.
I'm not sure I get the connection between shared memory and signals and the mismatched subject? Did you mean swap space?