- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- trap errors
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
03-20-2004 11:08 PM
03-20-2004 11:08 PM
I have checked the syslog and the "file system full" message was reported there. I have provided that message to him but he still says that it is an operating system problem. I belive his program is not being written to trap such errors and now he does not want accept that.
Could some one explain to me how programs generally trap such errors. Does anything need to be done on the os side for this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2004 11:43 PM
03-20-2004 11:43 PM
Re: trap errors
since you already checked on the syslog, you can be sure, that this error was reported to the programme. A system call like writing to disk returns the number of written bytes and also you can check on error. The programme of course can ignore it. What kind of software is that? Your vendor will have to prove that he checks for os errors in his coding. The os does not kill a programme for that kind of errors. That's the programmers responsibility to check on that.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 04:03 AM
03-21-2004 04:03 AM
Re: trap errors
use tusc the suspected PID and send all the messages your program send and receives to a log file.
tusc will show ALL his program errors and what he accepts and not accept.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 06:48 AM
03-21-2004 06:48 AM
SolutionThis same logic applies to whatever function that wrote to a file was used because ultimately it made a system call to write() either directly or indirectly.
I can assure you that a software vendor would have only tried this lame excuse on me once.
Having said this, you as a sysadmin should have had watchdog daemons in place sending you alerts that critical resources were running low --- but that does not in any way excuse the programmer.
The really bad news is that this is a very clear indication that other kinds of errors are also not being checked for. Real programmers either check the result of each function/system call or use the throw/catch exception model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 09:17 AM
03-21-2004 09:17 AM
Re: trap errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 12:13 PM
03-21-2004 12:13 PM
Re: trap errors
The only way that a "file system full" condition would affect the vendor's code is when the code makes a system call to write more data. The call will return immediately with an error status ERRNO=2 (also known as ENOSPC, see man errno). It is guarenteed that HP-UX returned this error to the program but the result code was ignored. ERRNO processing is absolutely basic programming for Unix systems and errno codes are pervasize throughout all flavors of Unix.
Perhaps it is my process control background with the HP 1000 (a true real time computer system) that makes me assume that EVERY system call (read, write, get memory, even date/time) has FAILED until proven otherwise. When your computer is controlling 100 tons of mechanical presses, mistakes like this are NOT an option.
Bill Hassell, sysadmin