- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "bad mmap(2)", errno 12
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-11-2005 06:59 PM
тАО08-11-2005 06:59 PM
Please find the error message i get when the program tries to spawn another process. The process fails to fork with the following error and exits.
DM master dm_die: "bad mmap(2)", errno 12
Please could anyone throw some light on this.
Points will be aptly awarded.
Regards beyond your fathomable reach,
Senthil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 09:13 PM
тАО08-11-2005 09:13 PM
Re: "bad mmap(2)", errno 12
when you do a fork, mmap is called to make a mapping between the new process' address space and a file.
Your error seems to indicate that the value of off+len ( 2 parameters of the function mmap ) exceeds the offset maximum established in the open file description associated with "fildes"criptor.
I'm not completely sure of this, but I think that errno 12 is EOVERFLOW error of the mmap() function ( seen man page ).
Senthil, your error is the product of a self made program?
Rgds,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 09:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 10:09 PM
тАО08-11-2005 10:09 PM
Re: "bad mmap(2)", errno 12
I had a doc with worng errno sequence...
Sorry Senthil, and all respect for the Olympian ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 06:47 AM
тАО08-12-2005 06:47 AM
Re: "bad mmap(2)", errno 12
It would be unfair if i award points right away without check how accurate the hints were.
I will back in office by tuesday , will surely award accordingly. Thanx for your time spent on this.
Meanwhile waiting for few more responses for more options. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 06:57 AM
тАО08-12-2005 06:57 AM
Re: "bad mmap(2)", errno 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2005 04:07 PM
тАО08-12-2005 04:07 PM
Re: "bad mmap(2)", errno 12
btw, errno == 12, then
$ grep 12 /usr/include/sys/errno.h
ex:
grep 12 /usr/include/sys/errno.h
#define ENOMEM 12 /* Not enough core */
also, read: $ man mmap
[ENOMEM] MAP_FIXED was specified, and the range [addr,
addr+len] exceeds that allowed for the address
space of a process; or if MAP_FIXED was not
specified and there is insufficient room in the
address space to effect the mapping.
--
just maybe there is a large range and it could be swap, then again, it could be some process limitations, like max stack, max data, or max text sizes in the kernel tunes.
just my 2 cents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 07:08 AM
тАО08-15-2005 07:08 AM
Re: "bad mmap(2)", errno 12
Make sure that you have at least 2xRAM worth of device swap space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 07:19 PM
тАО08-16-2005 07:19 PM
Re: "bad mmap(2)", errno 12
I really appreciate all the efforts taken in this regard.
I should admit that everyone has indicated in the right direction for the issue concerned. Though I did not find any problems related to said Kernel parameter and swap size, atleast you guys affirmed me to check this system aspect to the error concerned.
Proving that I need to check on the app end. Now I'm working on the application perspective. Based on the developers suggestion have changed some app related parameter fields. Looks promising. But, eagerly awaiting for the results.
:)
Thanx once again.