<?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 core dump on getenv in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-on-getenv/m-p/3332756#M712352</link>
    <description>We are getting a core dump on the getenv call of an older application we are porting to 11.0 64 bit. THis was a c application. We are compiling with -Ae and -DA2.0W. Can't find any patches for libc that mention this behavior - any clues?</description>
    <pubDate>Thu, 15 Jul 2004 12:56:19 GMT</pubDate>
    <dc:creator>Michael Murphy_2</dc:creator>
    <dc:date>2004-07-15T12:56:19Z</dc:date>
    <item>
      <title>core dump on getenv</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-on-getenv/m-p/3332756#M712352</link>
      <description>We are getting a core dump on the getenv call of an older application we are porting to 11.0 64 bit. THis was a c application. We are compiling with -Ae and -DA2.0W. Can't find any patches for libc that mention this behavior - any clues?</description>
      <pubDate>Thu, 15 Jul 2004 12:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-on-getenv/m-p/3332756#M712352</guid>
      <dc:creator>Michael Murphy_2</dc:creator>
      <dc:date>2004-07-15T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: core dump on getenv</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-on-getenv/m-p/3332757#M712353</link>
      <description>Your code might have a 64-bit porting issue.  Perhaps you passed in a bad pointer or assigned the result of getenv to a bad address for a pointer.  You could see that by running the gdb debugger on the program and core file and using the 'disas' and 'info reg' commands to see where the crash happened and what data it was working on.&lt;BR /&gt;Another surprisingly common way to crash in getenv is to use putenv with a string constant that is defined in a shared library, then unload that shared library.  The string address is unmapped, so the next getenv call gets a segmentation fault.</description>
      <pubDate>Thu, 15 Jul 2004 15:08:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-dump-on-getenv/m-p/3332757#M712353</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-07-15T15:08:53Z</dc:date>
    </item>
  </channel>
</rss>

