<?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: corefiles in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831369#M938342</link>
    <description>Core file generation is good that it points out that the application has some problems.&lt;BR /&gt;There are lot of patches for application and OS for to eliminate the core files.&lt;BR /&gt;&lt;BR /&gt;If this is a program built in by the user then the user has to examine the code.&lt;BR /&gt;Probably you can start with debugging the core files for the source of origin.&lt;BR /&gt;&lt;BR /&gt;HPux has a lot of debuggers like gdb,wgb to trace the core dumps and to debug them.&lt;BR /&gt;&lt;BR /&gt;If you really want to stop them then probably you can do a &lt;BR /&gt;ulimit -c 0&lt;BR /&gt;which sets the value of core files size to 0 and will stop generating files.&lt;BR /&gt;&lt;BR /&gt;The best way would be to find out the source,patch things properly and eliminate them.&lt;BR /&gt;Try using the debuggers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 23 Oct 2002 06:36:15 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2002-10-23T06:36:15Z</dc:date>
    <item>
      <title>corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831367#M938340</link>
      <description>Hi Out there,&lt;BR /&gt;&lt;BR /&gt;How can under HP-UX 11i  the generation of core files, i.e. when a process dumps core, be controlled ?&lt;BR /&gt;( core file name as well as file location)&lt;BR /&gt;BRGDS&lt;BR /&gt;and thanks in advance&lt;BR /&gt;&lt;BR /&gt;Andi</description>
      <pubDate>Wed, 23 Oct 2002 06:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831367#M938340</guid>
      <dc:creator>Andi Rigauer</dc:creator>
      <dc:date>2002-10-23T06:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831368#M938341</link>
      <description>Hi Andi&lt;BR /&gt;&lt;BR /&gt;The process that dumps a core files does so in the directory that it is currently working in and will by default dump it as "core".&lt;BR /&gt;&lt;BR /&gt;As you are aware these files can be analysed to identify how they were caused.&lt;BR /&gt;&lt;BR /&gt;Core file are more often that not results of incorrect code in programs and as such should be looked at and the results passed either to your development team or software supplier.&lt;BR /&gt;&lt;BR /&gt;A way to prevent core file generation in certain directories is to mkdir "core" in that dir.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2002 06:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831368#M938341</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-10-23T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831369#M938342</link>
      <description>Core file generation is good that it points out that the application has some problems.&lt;BR /&gt;There are lot of patches for application and OS for to eliminate the core files.&lt;BR /&gt;&lt;BR /&gt;If this is a program built in by the user then the user has to examine the code.&lt;BR /&gt;Probably you can start with debugging the core files for the source of origin.&lt;BR /&gt;&lt;BR /&gt;HPux has a lot of debuggers like gdb,wgb to trace the core dumps and to debug them.&lt;BR /&gt;&lt;BR /&gt;If you really want to stop them then probably you can do a &lt;BR /&gt;ulimit -c 0&lt;BR /&gt;which sets the value of core files size to 0 and will stop generating files.&lt;BR /&gt;&lt;BR /&gt;The best way would be to find out the source,patch things properly and eliminate them.&lt;BR /&gt;Try using the debuggers.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 23 Oct 2002 06:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831369#M938342</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-23T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831370#M938343</link>
      <description>Also check this debugger link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://devresource.hp.com/devresource/Tools/wdb/doc/guide/index.html" target="_blank"&gt;http://devresource.hp.com/devresource/Tools/wdb/doc/guide/index.html&lt;/A&gt;</description>
      <pubDate>Wed, 23 Oct 2002 06:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831370#M938343</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-23T06:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831371#M938344</link>
      <description>Andi,&lt;BR /&gt;&lt;BR /&gt;Rather than prevent their creation, we choose to remove them after a suitable "debugging period" has passed with a simple find command that runs nightly via cron:&lt;BR /&gt;&lt;BR /&gt;00 02 * * * /usr/bin/find /  -name "core" -mtime +2 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 23 Oct 2002 09:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831371#M938344</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-10-23T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831372#M938345</link>
      <description>To eliminate core files as a default setting, you can modify /etc/profile (and /etc/csh.login, et al for non-standard shells) by setting the ulimit value. NOTE: ksh does not support options for ulimit!&lt;BR /&gt;&lt;BR /&gt;Put this in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;ulimit -Sc 0&lt;BR /&gt;&lt;BR /&gt;Now every user will no longer have any core files created (assumes that the default POSIX shell is the user's login shell). However, someone who needs core files (a programmer for instance) can turn them on again by typing:&lt;BR /&gt;&lt;BR /&gt;ulimit -c 123456&lt;BR /&gt;&lt;BR /&gt;or whatever limit to the maximum size is needed. Note also that this applies only to users that login, not cron or daemons, etc. &lt;BR /&gt;&lt;BR /&gt;It's probably a good idea to identify the source of the core file as it indicates there is a big problem with the program. Use the command:&lt;BR /&gt;&lt;BR /&gt;file core&lt;BR /&gt;&lt;BR /&gt;to decode the core file.</description>
      <pubDate>Wed, 23 Oct 2002 11:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831372#M938345</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-10-23T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831373#M938346</link>
      <description>Since all processes dump to a file named 'core', this can pose a problem in debugging if you have a chain of processes that all dump core after the first one does.   You wanted the first core, but you got the last one. &lt;BR /&gt;&lt;BR /&gt;On 11.x, there is a kernel param, core_addpid, which will change the name of the core file to core.pid, where pid is the pid of the process that created the core. &lt;BR /&gt;&lt;BR /&gt;To enable this dynamically: &lt;BR /&gt;&lt;BR /&gt;echo "cored_addpid/w 1" | adb -w /stand/vmunix /dev/kmem&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Oct 2002 11:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831373#M938346</guid>
      <dc:creator>Rick Beldin</dc:creator>
      <dc:date>2002-10-24T11:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: corefiles</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831374#M938347</link>
      <description>If you're running posix shell (/usr/bin/sh), put this in your .profile if you want to eliminate core dumps altogether:&lt;BR /&gt;&lt;BR /&gt;ulimit -c 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Oct 2002 11:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/corefiles/m-p/2831374#M938347</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-10-24T11:59:22Z</dc:date>
    </item>
  </channel>
</rss>

