<?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 Re: C++ application aborts abnormally, /usr/lib/dld.sl: Call to mmap() failed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001738#M749862</link>
    <description>Thanks Dennis, for the reply.&lt;BR /&gt;&lt;BR /&gt;I actually tried running ipcs -am and ipcs -b just before and after i run my executable. I couldn't find any difference.&lt;BR /&gt;&lt;BR /&gt;Can you advice me in detail how to go about this?</description>
    <pubDate>Fri, 18 May 2007 06:28:28 GMT</pubDate>
    <dc:creator>Asim M Akath</dc:creator>
    <dc:date>2007-05-18T06:28:28Z</dc:date>
    <item>
      <title>C++ application aborts abnormally, /usr/lib/dld.sl: Call to mmap() failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001736#M749860</link>
      <description>&lt;!--!*#--&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have gone through the thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=389887&amp;amp;admit=-682735245+1179312176153+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=389887&amp;amp;admit=-682735245+1179312176153+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to run a C++ application on my HP UX 11.0 which #includes a proprietory library, in the header file say "myapp.h" it aborts abnormally with the following message:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl: Not enough space&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;So, I tried writing a simple C++ hello world program, but which #include "myapp.h"&lt;BR /&gt;&lt;BR /&gt;//File: a.C&lt;BR /&gt;#include "myapp.h"&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;int main (int argc,char* argv[])&lt;BR /&gt;{&lt;BR /&gt;        cout &amp;lt;&amp;lt; "Hello" &amp;lt;&amp;lt; endl;&lt;BR /&gt;        return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I compiled with this command:&lt;BR /&gt;$  aCC -AA -I. +abi_3_33_compat --g0 a.C&lt;BR /&gt;&lt;BR /&gt;[Note that I need to use +abi_3_33_compat to avoid this warning:&lt;BR /&gt;Warning 1039: "/opt/cvs/orbacus/OOC/include/JTC/ThreadGroup.h", line 20 # Type class JTCThreadGroup has a configuration of non-virtual and virtual bases that generate a vtable layout that is binary incompatible with releases A.03.33 to A.03.50. To generate a compatible layout for these releases use +abi_3_33_compat.]&lt;BR /&gt;&lt;BR /&gt;When I try to run with:&lt;BR /&gt;$ ./a.out&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/dld.sl&lt;BR /&gt;/usr/lib/dld.sl: Not enough space&lt;BR /&gt;Abort(coredump)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- I get the same error message.&lt;BR /&gt;&lt;BR /&gt;Can anybody help in this regard?&lt;BR /&gt;&lt;BR /&gt;I am sure that the library code do not have any memory leakage.&lt;BR /&gt;&lt;BR /&gt;But I am surprised with my GDB output:&lt;BR /&gt;$ gdb a.out&lt;BR /&gt;HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;(gdb) run&lt;BR /&gt;Starting program: /usr/local/bcp/conversion/asim/try/a.out&lt;BR /&gt;Hello&lt;BR /&gt;&lt;BR /&gt;Program exited normally.&lt;BR /&gt;(gdb)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now why did the program exit abnormally, core dumping, and when i do a gdb, I get program exited normally?&lt;BR /&gt;&lt;BR /&gt;I am confused.&lt;/IOSTREAM&gt;</description>
      <pubDate>Thu, 17 May 2007 04:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001736#M749860</guid>
      <dc:creator>Asim M Akath</dc:creator>
      <dc:date>2007-05-17T04:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: C++ application aborts abnormally, /usr/lib/dld.sl: Call to mmap() failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001737#M749861</link>
      <description>dld.sl: Call to mmap() failed - TEXT /usr/lib/dld.sl&lt;BR /&gt;&lt;BR /&gt;This means you are out of shared memory.  James was pointing to that in your thread link.&lt;BR /&gt;Try listing them with "ipcs -am".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[Note that I need to use +abi_3_33_compat to avoid this warning:&lt;BR /&gt;&lt;BR /&gt;Do NOT use +abi_3_33_compat unless you need to work with existing proprietory library code compiled with the broken compiler.  Instead use +W1039 to suppress the warning.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;when i do a gdb, I get program exited normally?&lt;BR /&gt;&lt;BR /&gt;When you use gdb, it maps the shlib text as private and so you don't run into the out of shared memory error.</description>
      <pubDate>Thu, 17 May 2007 04:47:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001737#M749861</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-17T04:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: C++ application aborts abnormally, /usr/lib/dld.sl: Call to mmap() failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001738#M749862</link>
      <description>Thanks Dennis, for the reply.&lt;BR /&gt;&lt;BR /&gt;I actually tried running ipcs -am and ipcs -b just before and after i run my executable. I couldn't find any difference.&lt;BR /&gt;&lt;BR /&gt;Can you advice me in detail how to go about this?</description>
      <pubDate>Fri, 18 May 2007 06:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001738#M749862</guid>
      <dc:creator>Asim M Akath</dc:creator>
      <dc:date>2007-05-18T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: C++ application aborts abnormally, /usr/lib/dld.sl: Call to mmap() failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001739#M749863</link>
      <description>&amp;gt;I actually tried running ipcs -am and ipcs -b just before and after i run my executable. I couldn't find any difference.&lt;BR /&gt;&lt;BR /&gt;It may have nothing to do with your application.  The problem is in the pigs that have used up (or fragmented) all of shared memory.  You need to sum up the SEGSZ fields.</description>
      <pubDate>Fri, 18 May 2007 15:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-application-aborts-abnormally-usr-lib-dld-sl-call-to-mmap/m-p/4001739#M749863</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-18T15:57:40Z</dc:date>
    </item>
  </channel>
</rss>

