- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Exit status code 0377 (255 or -1)
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
тАО02-28-2007 12:30 AM
тАО02-28-2007 12:30 AM
code 0377
Somebody knows the reason of this problem?
Thanks in advance!
- Tags:
- exit status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 12:44 AM
тАО02-28-2007 12:44 AM
Re: code 0377
this could be down to unhandled error condition. 0377oct is 255dec, which could be interpreted as -1.
If this is a C program add an atexit function, which is defined in stdlib.h.
Then debug you program, and watch for return codes from called functions.
Please keep us updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 02:21 AM
тАО02-28-2007 02:21 AM
Re: code 0377
In your particular case, it appears that an error condition was detected and exit was called with a value of 0377 octal so that if you did an "echo ${?}" immediately after the program terminated, you would see 255. Man 2 exit for details.
This problem should not be considered a program crash since it appears that the program itself detected an abnormal condition and terminated. You really have to inspect the source code to find what would cause an exit with a status of 0377. 0377 only has meaning to those who wrote the program. It's a little surprising that the program was smart enough to detect this condition but sloppy enough not to report some sort of error message on stderr -- or did you leave that part out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2007 03:05 PM - edited тАО09-28-2013 02:55 PM
тАО02-28-2007 03:05 PM - edited тАО09-28-2013 02:55 PM
Re: Exit status code 0377 (255 or -1)
>Clay: in that case, the value returned to the system is undefined
For C99 and C++ the Standards says it returns 0. HP's C compiler should now do that by default.
But unless you know you are using C99, you should do an explict return of 0 for C.