- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: read() fails with "Not enough space"
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
тАО08-14-2006 02:08 AM
тАО08-14-2006 02:08 AM
My C program got quit after a read() on a file. The read() failed and the strerror(errno) reported тАЬNot enough spaceтАЭ (ENOMEM).
From the man documentation it seems the read() api cannot return with an ENOMEM error code.
Should I check system resources (swap space, memory) or most likely is this error related to code error and/or file corruption?
Thanks,
Fabio
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 02:16 AM
тАО08-14-2006 02:16 AM
Re: read() fails with "Not enough space"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 02:16 AM
тАО08-14-2006 02:16 AM
Re: read() fails with "Not enough space"
Run bdf /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 02:26 AM
тАО08-14-2006 02:26 AM
Re: read() fails with "Not enough space"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 03:09 AM
тАО08-14-2006 03:09 AM
Re: read() fails with "Not enough space"
Thank you for your answer├в ┬ж the /tmp is empty.
Clay,
I├в m trying to understand the issue with my C program reading few logs and source code.
From the code I see, the program that:
- Starts a child process. From log I can see the child starts successfully.
- Blocks signals and locks a region of the file (lseek() + fnctl())
- lseek() and read() the first record (head of the file) successfully
- and then
- lseek() return a value different from -1 (so I guess it goes success)
- and read() fails
It is a logical fail.. I mean I expect it read 4 bytes├в ┬ж and if read() < 4 I report an error up├в ┬ж
I have a doubt ├в ┬жis it possible that I├в m passing to the lseek(*,*,SEEK_SET) a value greater then the actual file size and it is not returning ├в 1 ?
Thanks
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 03:17 AM
тАО08-14-2006 03:17 AM
Solutionsystem call. You are letting a failed system call go ignored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2006 05:44 AM
тАО08-14-2006 05:44 AM
Re: read() fails with "Not enough space"
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 02:56 AM
тАО08-17-2006 02:56 AM
Re: read() fails with "Not enough space"
However, from your answers I understood I have to look for the problem in a different place in the code.
Thanks to all.
Fabio