HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ld reports "Malloc is out of memory"
Operating System - HP-UX
1832510
Members
4970
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-02-2003 08:50 AM
06-02-2003 08:50 AM
We are getting this error when trying to statically link a (very) large executable. I am pretty certain that this is because ld is trying to malloc more memory than will fit in the data segment.
The kernel parameter MAXDSIZ is set to 1GB.
I also notice that the ld executable is marked as SHARE_MAGIC which limits the data segment to ~1GB anyway.
I'm also pretty sure that there isn't a stray 'ulimit -d' anywhere.
Do I have any options here (aside from not building static executables)?
HPUX 11i with Dec. 2002 Support Plus patches installed.
Thanks.
The kernel parameter MAXDSIZ is set to 1GB.
I also notice that the ld executable is marked as SHARE_MAGIC which limits the data segment to ~1GB anyway.
I'm also pretty sure that there isn't a stray 'ulimit -d' anywhere.
Do I have any options here (aside from not building static executables)?
HPUX 11i with Dec. 2002 Support Plus patches installed.
Thanks.
The nice thing about computers is that they do exactly what you tell them. The problem with computers is that they do EXACTLY what you tell them.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 09:07 AM
06-02-2003 09:07 AM
Re: ld reports "Malloc is out of memory"
Check this thread out. This may help you.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc305595fae8bd711abdc0090277a778c,00.html
HTH
Umapathy
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc305595fae8bd711abdc0090277a778c,00.html
HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 10:29 AM
06-02-2003 10:29 AM
Re: ld reports "Malloc is out of memory"
That thread talks about EXEC_MAGIC which will give you up to 1.9~ gigabytes.
Have you looked into SHMEM_MAGIC which can give you up to 2.75~ gigabytes heap?
If you have an EXEC_MAGIC executable, you can then use chatr to modify it into a SHMEM_MAGIC executable.
Of course, you can always go to 64-bit applications which would expand that limit quite a bit (as you can see from the maximum value for maxdsiz_64bit (4,396,972,769,279).
Have you looked into SHMEM_MAGIC which can give you up to 2.75~ gigabytes heap?
If you have an EXEC_MAGIC executable, you can then use chatr to modify it into a SHMEM_MAGIC executable.
Of course, you can always go to 64-bit applications which would expand that limit quite a bit (as you can see from the maximum value for maxdsiz_64bit (4,396,972,769,279).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 03:32 PM
06-03-2003 03:32 PM
Solution
The "chatr +q3p enable" can be done to /usr/ccs/bin/ld32 if you have write permission on the file. You would need to increase maxdsiz as well.
Since you can't relink the linker, EXEC_MAGIC is not an option.
The SHMEM_MAGIC mode does not increase available heap. It steals heap addresses to allow another 1GB of shared memory addresses.
Since you can't relink the linker, EXEC_MAGIC is not an option.
The SHMEM_MAGIC mode does not increase available heap. It steals heap addresses to allow another 1GB of shared memory addresses.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP