- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ld with Malloc 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
02-06-2001 08:53 AM
02-06-2001 08:53 AM
I receive the following error:
Malloc is out of memory, leaks over 512k:
ld: Out of memory
Malloc: 62721632 bytes allocated by Unknown:0x61b7
Malloc: 2146304 bytes allocated by Unknown:0x30ff3
*** Error exit code 1
Stop.
Any help on Kernel Parameter which need to be tuned or is there a Patch for the linker?
Thanks,
Tony
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2001 09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2001 09:30 AM
02-06-2001 09:30 AM
Re: ld with Malloc errors
The data segment contains a process's initialized and uninitialized data structures (bss). It can grow as needed by a program's run-time logic (using sbrk(2), malloc(3C), or malloc(3X), as described in the HP-UX Reference). The total allotment for initialized data, uninitialized data and dynamically allocated memory can be changed by the configurable operating-system parameter maxdsiz.
But......I would look at more than just this parm. For example do you have pseudo swap turned on (I would)...and others. I think we'd need more details to give better suggestions.
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2001 12:34 PM
07-31-2001 12:34 PM
Re: ld with Malloc errors
Maxdsize has been set to the maximum SAM allows for our system, and we have almost a gig of free swap space available. Limits for the system show memory as 'unlimited', datasize as 2GB, and stacksize as 8MB.
I suspect that stacksize is the culpret, yet
we do not get stack errors, just the message mentioned above. We are in the same situation, creating a very large shared library from a large number of object files.
We are stuck until this problem is resolved.
Any gurus out there that know the answer?
Thanks,
--Carl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2001 05:59 AM
08-01-2001 05:59 AM
Re: ld with Malloc errors
I guess I was a bit to busy to reply to this.
By increase maxdsiz and maxssiz to 1073741824 and 65011712 respectively, I was able to create the shared library with 348 objects for a total size of 31100928. This was accomplished on two different systems. Each system had the same problem until I increased the size of maxdsiz and maxssiz. Even on 64bit HP11.0, I needed to increase these parameters for the 32bit application.
Regards,
Tony