<?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: Create core file. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886017#M101976</link>
    <description>I think your application just catches SIGQUIT (3).&lt;BR /&gt;&lt;BR /&gt;Try SIGINT (2) and see what happens. That will *not* create a core file, but let us know if it terminates the process or not.&lt;BR /&gt;&lt;BR /&gt;And, like I wrote before, try Bill's example and report your findings.</description>
    <pubDate>Tue, 21 Jan 2003 15:47:10 GMT</pubDate>
    <dc:creator>Frank Slootweg</dc:creator>
    <dc:date>2003-01-21T15:47:10Z</dc:date>
    <item>
      <title>Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886006#M101965</link>
      <description>Team:&lt;BR /&gt;&lt;BR /&gt;I want to create a core file of an application runaway process. This is what i tried&lt;BR /&gt;kill -6 PID (it did not create a core but killed it)&lt;BR /&gt;kill -3 PID (did nothing)&lt;BR /&gt;&lt;BR /&gt;Please help me to create a core file so that we would know the root cause of the runaway problem.&lt;BR /&gt;&lt;BR /&gt;also an intresting thing is I am also able to find two immediate parent of the runaway process still there. This script is  starting with the following options..I am confused because the PPID of the runaway is not 1 but this script mentioned below.&lt;BR /&gt;&lt;BR /&gt;-ksh -c /PATH/TO/SCRIPT&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 20 Jan 2003 21:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886006#M101965</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-20T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886007#M101966</link>
      <description>Hi Brian,&lt;BR /&gt;&lt;BR /&gt;How about using tusc or trace.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x62def9beca68d511abcd0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x62def9beca68d511abcd0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Mon, 20 Jan 2003 21:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886007#M101966</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-01-20T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886008#M101967</link>
      <description>killl -3 will indeed create a core dump:&lt;BR /&gt;&lt;BR /&gt;sleep 100 &amp;amp;&lt;BR /&gt;kill -3 &lt;PID_OF_SLEEP&gt;&lt;BR /&gt;&lt;BR /&gt;The reason your runaway process did not create a core file is:&lt;BR /&gt;&lt;BR /&gt;1. It has enabled traps inside the program and is ignoring the kill -3 signal,&lt;BR /&gt;&lt;BR /&gt;2. The process is waiting on a never-to-complete I/O task, typically networking and will core dump only when the I/O completes.&lt;BR /&gt;&lt;/PID_OF_SLEEP&gt;</description>
      <pubDate>Mon, 20 Jan 2003 22:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886008#M101967</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-01-20T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886009#M101968</link>
      <description>Hi Again:&lt;BR /&gt;&lt;BR /&gt;  I know that tusc would trace the system calls but we have to go thru so escalation process to install any 3rd party s/w on the production box. As far as the signals are concerned when the user launches the application (.profile and /etc/profile the signal 3 is not ignored). Please advise.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Tue, 21 Jan 2003 13:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886009#M101968</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-21T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886010#M101969</link>
      <description>There are some other potential problems prevent a process from writing a core. The process needs write permission for its current working directory. And it must not run with RUID &amp;lt;&amp;gt; EUID. See man core(4).&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Tue, 21 Jan 2003 13:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886010#M101969</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-21T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886011#M101970</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Make sure you are on a good patch level. I think ksh had an issue with a "-c" option.&lt;BR /&gt;Do /usr/contrib/bin/show_patches |grep ksh&lt;BR /&gt;&lt;BR /&gt;It will tell you what ksh cumulative patch is applied. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Giri Sekar.</description>
      <pubDate>Tue, 21 Jan 2003 13:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886011#M101970</guid>
      <dc:creator>Giri Sekar.</dc:creator>
      <dc:date>2003-01-21T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886012#M101971</link>
      <description>Are you sure that kill -3 did nothing?  It could have created the core file in a directory that you are not expecting it to use.&lt;BR /&gt;&lt;BR /&gt;If it's a process running from a terminal session, you may be able to create a core file by using the CTRL+\ key combination.</description>
      <pubDate>Tue, 21 Jan 2003 14:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886012#M101971</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-01-21T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886013#M101972</link>
      <description>I checked up the Patch and it was PHCO_26783. I did not understand the RUID&amp;lt;&amp;gt;EUID. Can someone explain. All the apps starts in the users' home dir. so i am sure it did not produce a core file.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Tue, 21 Jan 2003 15:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886013#M101972</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-21T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886014#M101973</link>
      <description>First try Bill's simple example with the sleep(1) command, but do it as the problem user and in the problem directory.&lt;BR /&gt;&lt;BR /&gt;Re: "kill -3 PID (did nothing)": Did it *really* do nothing, or *did* it kill the process but *not* generate a core file?</description>
      <pubDate>Tue, 21 Jan 2003 15:29:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886014#M101973</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-01-21T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886015#M101974</link>
      <description>kill -3 did nothing. I just got my prompt back and the process was still 100% CPU. kill -6 also did not create a core file but killed the process.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Tue, 21 Jan 2003 15:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886015#M101974</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-21T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886016#M101975</link>
      <description>The process only writes a core if the real user ID matches the effective user ID.&lt;BR /&gt;&lt;BR /&gt;E.g. if you have an executable owned by userA with suid flag set (chmod u+s) and userB executes it, then the process has real user ID of userB, but an effective user ID of userA... and it would NOT write a core.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jan 2003 15:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886016#M101975</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-21T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886017#M101976</link>
      <description>I think your application just catches SIGQUIT (3).&lt;BR /&gt;&lt;BR /&gt;Try SIGINT (2) and see what happens. That will *not* create a core file, but let us know if it terminates the process or not.&lt;BR /&gt;&lt;BR /&gt;And, like I wrote before, try Bill's example and report your findings.</description>
      <pubDate>Tue, 21 Jan 2003 15:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886017#M101976</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-01-21T15:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886018#M101977</link>
      <description>Okay. Our process' ids are the same so we do not have that issue. As far as kill -2 is concerned we have to try it at the next oppurtinity as this is happening on the production box only. Thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Tue, 21 Jan 2003 15:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886018#M101977</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-21T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886019#M101978</link>
      <description>You won't get a core file if ulimit -c has been set to zero. Type the command: ulimit -a. If you get an error, run the /usr/bin/sh POSIX shell and type ulimit -a&lt;BR /&gt;&lt;BR /&gt;Your sysadmin may have tried to control core dumps with: ulimit -c 0 (in /etc/profile) which means no one gets a core file. Tell the sysadmin to change the ulimit command to: ulimit -Sc 0 and that way, you can change the -c value after you login.</description>
      <pubDate>Tue, 21 Jan 2003 18:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886019#M101978</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-01-21T18:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create core file.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886020#M101979</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This is what my ulimit -a reports&lt;BR /&gt;$ulimit -a&lt;BR /&gt;time(seconds)   unlimited&lt;BR /&gt;file(blocks)    unlimited&lt;BR /&gt;data(kbytes)    65536&lt;BR /&gt;stack(kbytes)   392192&lt;BR /&gt;memory(kbytes)  unlimited&lt;BR /&gt;coredump(blocks)4194303&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian</description>
      <pubDate>Wed, 22 Jan 2003 16:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-core-file/m-p/2886020#M101979</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2003-01-22T16:17:37Z</dc:date>
    </item>
  </channel>
</rss>

