<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ld with Malloc errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490296#M725028</link>
    <description>Attempting to create a shared-library using the ld command.  "ld -b -/t07/m201/lib/librc.sl followed by long list of object files.  407 objects.&lt;BR /&gt;&lt;BR /&gt;I receive the following error:&lt;BR /&gt;Malloc is out of memory, leaks over 512k:&lt;BR /&gt;ld: Out of memory&lt;BR /&gt;Malloc: 62721632 bytes allocated by Unknown:0x61b7&lt;BR /&gt;Malloc: 2146304 bytes allocated by Unknown:0x30ff3&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;Any help on Kernel Parameter which need to be tuned or is there a Patch for the linker?&lt;BR /&gt;Thanks,&lt;BR /&gt;Tony</description>
    <pubDate>Tue, 06 Feb 2001 16:53:52 GMT</pubDate>
    <dc:creator>Tony Bentley_1</dc:creator>
    <dc:date>2001-02-06T16:53:52Z</dc:date>
    <item>
      <title>ld with Malloc errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490296#M725028</link>
      <description>Attempting to create a shared-library using the ld command.  "ld -b -/t07/m201/lib/librc.sl followed by long list of object files.  407 objects.&lt;BR /&gt;&lt;BR /&gt;I receive the following error:&lt;BR /&gt;Malloc is out of memory, leaks over 512k:&lt;BR /&gt;ld: Out of memory&lt;BR /&gt;Malloc: 62721632 bytes allocated by Unknown:0x61b7&lt;BR /&gt;Malloc: 2146304 bytes allocated by Unknown:0x30ff3&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;&lt;BR /&gt;Any help on Kernel Parameter which need to be tuned or is there a Patch for the linker?&lt;BR /&gt;Thanks,&lt;BR /&gt;Tony</description>
      <pubDate>Tue, 06 Feb 2001 16:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490296#M725028</guid>
      <dc:creator>Tony Bentley_1</dc:creator>
      <dc:date>2001-02-06T16:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: ld with Malloc errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490297#M725029</link>
      <description>Increase 'maxdsiz'. Given the numbers in the error, I would guess you still have the default 64Mb value for this and ld probably just ran out of temporary space.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2001 17:27:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490297#M725029</guid>
      <dc:creator>Andy Bennett</dc:creator>
      <dc:date>2001-02-06T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: ld with Malloc errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490298#M725030</link>
      <description>This is from the Memory Management White Paper:&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Tue, 06 Feb 2001 17:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490298#M725030</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-02-06T17:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: ld with Malloc errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490299#M725031</link>
      <description>I'd be interested in any follow ups on this, as I have the exact same problem. &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;I suspect that stacksize is the culpret, yet&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;We are stuck until this problem is resolved. &lt;BR /&gt;Any gurus out there that know the answer?&lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;--Carl&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Jul 2001 19:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490299#M725031</guid>
      <dc:creator>Carl Erhorn</dc:creator>
      <dc:date>2001-07-31T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: ld with Malloc errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490300#M725032</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I guess I was a bit to busy to reply to this.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tony</description>
      <pubDate>Wed, 01 Aug 2001 12:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ld-with-malloc-errors/m-p/2490300#M725032</guid>
      <dc:creator>Tony Bentley_1</dc:creator>
      <dc:date>2001-08-01T12:59:51Z</dc:date>
    </item>
  </channel>
</rss>

