<?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 STL string is causing problem in destructor in 64 bit itanium platform in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334805#M683610</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We are migrating from 32 bit version of the code to 64 bit version. The platform we use for 64 bit is Itanium hp-ux. Getting a strange error in basic_string class. &lt;BR /&gt;&lt;BR /&gt;string httpBuffer;&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;//a sample block inside main&lt;BR /&gt;{&lt;BR /&gt;  string sHeaders;&lt;BR /&gt;  &lt;BR /&gt;  sHeaders=httpBuffer.substr(....);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When the flow is coming out of the block we are getting segmentation fault in basic_string destructor. Please help on this also let me know if you require more information.</description>
    <pubDate>Fri, 09 Jan 2009 15:51:14 GMT</pubDate>
    <dc:creator>Vincent Paul S</dc:creator>
    <dc:date>2009-01-09T15:51:14Z</dc:date>
    <item>
      <title>STL string is causing problem in destructor in 64 bit itanium platform</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334805#M683610</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We are migrating from 32 bit version of the code to 64 bit version. The platform we use for 64 bit is Itanium hp-ux. Getting a strange error in basic_string class. &lt;BR /&gt;&lt;BR /&gt;string httpBuffer;&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;//a sample block inside main&lt;BR /&gt;{&lt;BR /&gt;  string sHeaders;&lt;BR /&gt;  &lt;BR /&gt;  sHeaders=httpBuffer.substr(....);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When the flow is coming out of the block we are getting segmentation fault in basic_string destructor. Please help on this also let me know if you require more information.</description>
      <pubDate>Fri, 09 Jan 2009 15:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334805#M683610</guid>
      <dc:creator>Vincent Paul S</dc:creator>
      <dc:date>2009-01-09T15:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: STL string is causing problem in destructor in 64 bit itanium platform</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334806#M683611</link>
      <description>This question is better suited to the&lt;BR /&gt;"HP-UX" &amp;gt; "languages and scripting" forum.&lt;BR /&gt;&lt;BR /&gt;My first suspicion when a simple destructor segfaults is that some other code has corrupted the malloc information.  That could happen because of overwritting a buffer or accessing freed memory.  You could try compiling with aCC's +check option to see if it catches a problem.</description>
      <pubDate>Fri, 09 Jan 2009 16:49:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334806#M683611</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2009-01-09T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: STL string is causing problem in destructor in 64 bit itanium platform</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334807#M683612</link>
      <description>can you please clarify how to use the option. I checked in this link: &lt;A href="http://docs.hp.com/en/8/options.htm#option-index" target="_blank"&gt;http://docs.hp.com/en/8/options.htm#option-index&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I couldn't find the +check option. Please help.</description>
      <pubDate>Fri, 09 Jan 2009 17:22:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334807#M683612</guid>
      <dc:creator>Vincent Paul S</dc:creator>
      <dc:date>2009-01-09T17:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: STL string is causing problem in destructor in 64 bit itanium platform</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334808#M683613</link>
      <description>&amp;gt;When the flow is coming out of the block we are getting segmentation fault in basic_string destructor.&lt;BR /&gt;&lt;BR /&gt;I need a stack trace.  It might help if you recompile with +d first.&lt;BR /&gt;Is this application threaded?&lt;BR /&gt;What version of aCC6 are you using?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I couldn't find the +check= option.&lt;BR /&gt;&lt;BR /&gt;You need to use a later version of aC++:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/14487/index.htm" target="_blank"&gt;http://docs.hp.com/en/14487/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Mike: My first suspicion when a simple destructor segfaults is that some other code has corrupted the malloc information. &lt;BR /&gt;&lt;BR /&gt;Right.&lt;BR /&gt;(I've asked the moderators to move this to the correct forum.)</description>
      <pubDate>Sat, 10 Jan 2009 04:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334808#M683613</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-10T04:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: STL string is causing problem in destructor in 64 bit itanium platform</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334809#M683614</link>
      <description>We got the solution now. The problem is only with the flags.&lt;BR /&gt;&lt;BR /&gt;Using -mt option in aCC compiler is working. The problem happened because the string libraries were not used in thread safe mode !!</description>
      <pubDate>Tue, 13 Jan 2009 16:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stl-string-is-causing-problem-in-destructor-in-64-bit-itanium/m-p/4334809#M683614</guid>
      <dc:creator>Vincent Paul S</dc:creator>
      <dc:date>2009-01-13T16:34:47Z</dc:date>
    </item>
  </channel>
</rss>

