<?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: Core file creation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624916#M236502</link>
    <description>Actually I did intend kill -6 (SIGABRT) so that the abort signal would be sent emulating&lt;BR /&gt;as closely as possible the abort() function. However, since the default action of both SIGABRT (-6) and SIGQUIT (-3) is to generate a core file, either should work although it is far more common for SIGQUIT to be caught (or ignored) than SIGABRT.</description>
    <pubDate>Tue, 13 Sep 2005 13:57:37 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-09-13T13:57:37Z</dc:date>
    <item>
      <title>Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624910#M236496</link>
      <description>Does a user have the ability to create a core file or is it just from system calls and application.  If the user can do this, is there a command to identify the user?</description>
      <pubDate>Tue, 13 Sep 2005 10:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624910#M236496</guid>
      <dc:creator>William R Bowen</dc:creator>
      <dc:date>2005-09-13T10:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624911#M236497</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;No normaly not. But I've seen susers using the name core for files.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 13 Sep 2005 10:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624911#M236497</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-09-13T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624912#M236498</link>
      <description>If a running process doesn't have certain signals trapped, and a user can send one of those signals to the process, and the default action for the signal is a core dump, then a user can indeed create a core file.&lt;BR /&gt;&lt;BR /&gt;See man 5 signal for details of signals that by default can generate a core file.&lt;BR /&gt;&lt;BR /&gt;e.g. SIGABRT, SIGQUIT, SIGSEGV&lt;BR /&gt;&lt;BR /&gt;kill -SEGV pid</description>
      <pubDate>Tue, 13 Sep 2005 10:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624912#M236498</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-09-13T10:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624913#M236499</link>
      <description>A core file can't be generated by a user directly . In fact , the core file contains the core image of the terminated process. Now a process always runs under what we call as real user ID , which say whomsover user ID is running that process. Thereafter if a process terminates, the system creates a core file depending on bus errors , memory violations or user generated signals.&lt;BR /&gt;So if some user signals are defined in the executables , which make a way to creat core file depending on error encountered.&lt;BR /&gt;&lt;BR /&gt;You can check which process the core file belongs using # file &lt;CORE-FILE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CORE-FILE&gt;</description>
      <pubDate>Tue, 13 Sep 2005 10:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624913#M236499</guid>
      <dc:creator>Sameer_Nirmal</dc:creator>
      <dc:date>2005-09-13T10:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624914#M236500</link>
      <description>The most common means (and indeed what the abort() function does) is to send a SIGABRT to a process. The default action for SIGABRT is to generate a core file.&lt;BR /&gt;&lt;BR /&gt;Generally all that is necessary is to send a kill -6 PID to a process although the signal may be caught and not necessarily generate a core file. Man 5 signal for a good explanation of signal handling.</description>
      <pubDate>Tue, 13 Sep 2005 11:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624914#M236500</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-13T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624915#M236501</link>
      <description>I think Clay might have meant kill -3 rather than -6. Here's an example for any user to generate a core file:&lt;BR /&gt; &lt;BR /&gt;sleep 500 &amp;amp;&lt;BR /&gt; &lt;BR /&gt;(make note of the PID - we'll assume it is 4321)&lt;BR /&gt; &lt;BR /&gt;kill -3 4321&lt;BR /&gt;ll core&lt;BR /&gt;file core&lt;BR /&gt; &lt;BR /&gt;and now you have a core file. Any program can generate a core file so if a user is logged in, there is the possibility for generating a core file. Technically, HP-UX generates the file in response (mostly) to bad programming, so if you're wondering why users have core files in their directories, the answer is found by using the file commmand. file will decode the code file as to it's name and reason for the core dump.&lt;BR /&gt; &lt;BR /&gt;NOTE: If you don't get a core file, use ulimit -a to see if your sysadmin has removed the ability using ulimit -c 0.</description>
      <pubDate>Tue, 13 Sep 2005 12:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624915#M236501</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-13T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624916#M236502</link>
      <description>Actually I did intend kill -6 (SIGABRT) so that the abort signal would be sent emulating&lt;BR /&gt;as closely as possible the abort() function. However, since the default action of both SIGABRT (-6) and SIGQUIT (-3) is to generate a core file, either should work although it is far more common for SIGQUIT to be caught (or ignored) than SIGABRT.</description>
      <pubDate>Tue, 13 Sep 2005 13:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624916#M236502</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-13T13:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624917#M236503</link>
      <description>If relavent, you can prevent core dumps with the following line in /etc/profile or user profile.&lt;BR /&gt;&lt;BR /&gt;ulimit -Sc 0&lt;BR /&gt;&lt;BR /&gt;Interesting discussion.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 13 Sep 2005 14:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624917#M236503</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-13T14:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Core file creation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624918#M236504</link>
      <description>Based on KILL Signals applications are getting signal and creating core files. Core file creation is done based on the user limit setting of -c option as,&lt;BR /&gt;&lt;BR /&gt; # ulimit -c&lt;BR /&gt; # ulimit -Hc (hard limit)&lt;BR /&gt; # ulimit -Hc (soft limit)&lt;BR /&gt;&lt;BR /&gt;To set it unlimited then,&lt;BR /&gt;&lt;BR /&gt; # ulimit -HSc unlimited&lt;BR /&gt;&lt;BR /&gt;Following sigals will create core files based on ulimit -c option as,&lt;BR /&gt;&lt;BR /&gt;                       Default&lt;BR /&gt;           Signal      Action    Description&lt;BR /&gt;&lt;BR /&gt;           SIGABRT     ii        Process abort signal.&lt;BR /&gt;           SIGFPE      ii        Erroneous arithmetic operation.&lt;BR /&gt;           SIGILL      ii        Illegal instruction.&lt;BR /&gt;           SIGQUIT     ii        Terminal quit signal.&lt;BR /&gt;           SIGSEGV     ii        Invalid memory reference.&lt;BR /&gt;           SIGBUS      ii        Bus error.&lt;BR /&gt;           SIGSYS      ii        Bad system call.&lt;BR /&gt;           SIGTRAP     ii        Trace/breakpoint trap.&lt;BR /&gt;           SIGXCPU     ii        CPU time limit exceeded.&lt;BR /&gt;           SIGXFSZ     ii        File size limit exceeded.&lt;BR /&gt;&lt;BR /&gt;You can analyze core file as,&lt;BR /&gt;&lt;BR /&gt; # file core&lt;BR /&gt; # what core&lt;BR /&gt; # gdb core &lt;APPLICATION-BINARY&gt;&lt;BR /&gt;    gdb) bt&lt;BR /&gt; # adb core &lt;APPLICATION-BINARY&gt;&lt;BR /&gt;    adb) $c&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/APPLICATION-BINARY&gt;&lt;/APPLICATION-BINARY&gt;</description>
      <pubDate>Wed, 14 Sep 2005 01:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/core-file-creation/m-p/3624918#M236504</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-14T01:52:32Z</dc:date>
    </item>
  </channel>
</rss>

