<?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 malloc problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980666#M754071</link>
    <description>I have a program with a promblem in malloc &lt;BR /&gt;My program generate core file&lt;BR /&gt;My system is &lt;BR /&gt;uname -a&lt;BR /&gt;HP-UX devscp1 B.10.20 U 9000/800 1815659472 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Gdb say&lt;BR /&gt;&lt;BR /&gt;ore was generated by `INAPB.exe'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;&lt;BR /&gt;warning: The shared libraries were not privately mapped; setting a&lt;BR /&gt;breakpoint in a shared library will not work until you rerun the program.&lt;BR /&gt;&lt;BR /&gt;#0  0xc009e28c in malloc () from /usr/lib/libc.1&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0xc009e28c in malloc () from /usr/lib/libc.1&lt;BR /&gt;#1  0x10d344 in libSockAllocWrQ (wrQLen=10000) at Sock_socket.c:969&lt;BR /&gt;..........&lt;BR /&gt;&lt;BR /&gt;Sock_socket.c:969 like this&lt;BR /&gt;&lt;BR /&gt;    964 static SOCK_WrQType *libSockAllocWrQ(int wrQLen)&lt;BR /&gt;    965 {&lt;BR /&gt;    966     SOCK_WrQType    *wrQPtr;&lt;BR /&gt;    967     char            **wrPool;&lt;BR /&gt;    968&lt;BR /&gt;    969     if(!(wrPool = (char **)malloc((wrQLen + 1) * sizeof(char *))))&lt;BR /&gt;    970         return(NULL);&lt;BR /&gt;&lt;BR /&gt;(gdb) print wrQLen&lt;BR /&gt;$1 = 10000&lt;BR /&gt;&lt;BR /&gt;Do I need some patch with libc.1 ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Apr 2007 03:44:55 GMT</pubDate>
    <dc:creator>???_408</dc:creator>
    <dc:date>2007-04-13T03:44:55Z</dc:date>
    <item>
      <title>malloc problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980666#M754071</link>
      <description>I have a program with a promblem in malloc &lt;BR /&gt;My program generate core file&lt;BR /&gt;My system is &lt;BR /&gt;uname -a&lt;BR /&gt;HP-UX devscp1 B.10.20 U 9000/800 1815659472 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Gdb say&lt;BR /&gt;&lt;BR /&gt;ore was generated by `INAPB.exe'.&lt;BR /&gt;Program terminated with signal 11, Segmentation fault.&lt;BR /&gt;&lt;BR /&gt;warning: The shared libraries were not privately mapped; setting a&lt;BR /&gt;breakpoint in a shared library will not work until you rerun the program.&lt;BR /&gt;&lt;BR /&gt;#0  0xc009e28c in malloc () from /usr/lib/libc.1&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0  0xc009e28c in malloc () from /usr/lib/libc.1&lt;BR /&gt;#1  0x10d344 in libSockAllocWrQ (wrQLen=10000) at Sock_socket.c:969&lt;BR /&gt;..........&lt;BR /&gt;&lt;BR /&gt;Sock_socket.c:969 like this&lt;BR /&gt;&lt;BR /&gt;    964 static SOCK_WrQType *libSockAllocWrQ(int wrQLen)&lt;BR /&gt;    965 {&lt;BR /&gt;    966     SOCK_WrQType    *wrQPtr;&lt;BR /&gt;    967     char            **wrPool;&lt;BR /&gt;    968&lt;BR /&gt;    969     if(!(wrPool = (char **)malloc((wrQLen + 1) * sizeof(char *))))&lt;BR /&gt;    970         return(NULL);&lt;BR /&gt;&lt;BR /&gt;(gdb) print wrQLen&lt;BR /&gt;$1 = 10000&lt;BR /&gt;&lt;BR /&gt;Do I need some patch with libc.1 ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Apr 2007 03:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980666#M754071</guid>
      <dc:creator>???_408</dc:creator>
      <dc:date>2007-04-13T03:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: malloc problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980667#M754072</link>
      <description>Hi &lt;BR /&gt;This is typically a corruption caused by your code. Usually a buffer overflow.</description>
      <pubDate>Fri, 13 Apr 2007 04:16:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980667#M754072</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2007-04-13T04:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: malloc problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980668#M754073</link>
      <description>&amp;gt;Laurent: This is typically a corruption caused by your code.&lt;BR /&gt;&lt;BR /&gt;Exactly.&lt;BR /&gt;&lt;BR /&gt;If this could be run on 11.1, you could try gdb's heap checking commands.</description>
      <pubDate>Fri, 13 Apr 2007 13:49:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-problem/m-p/3980668#M754073</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-13T13:49:44Z</dc:date>
    </item>
  </channel>
</rss>

