<?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 HpUX - Python -  fork &amp;amp; exec in Threads hang - intermittently in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266030#M888754</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I am facing the following problem on HP &amp;amp; python. &lt;BR /&gt;&lt;BR /&gt;Background: &lt;BR /&gt;&lt;BR /&gt;I have a GUI (QT package) and I am running tasks in Threads. These threads spawn a process and read the output of the process and then display the O/P on the GUI.&lt;BR /&gt;&lt;BR /&gt;Now I can get a new process spawned by using a menu option. &lt;BR /&gt;&lt;BR /&gt;Now every alternate time the process hangs (spawned from the same gui): &lt;BR /&gt;&lt;BR /&gt;I.e. First process hangs.  &lt;BR /&gt;    Second goes through fine. &lt;BR /&gt;    Third goes fine &lt;BR /&gt;    Fourth hangs. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;More on the problem: &lt;BR /&gt;&lt;BR /&gt;This is what happens, when I call &lt;BR /&gt;&lt;BR /&gt;os.fork() &lt;BR /&gt;&lt;BR /&gt;In the parent process I get the Pid of the child and the parent is fine. &lt;BR /&gt;But in the child process (even before calling exec) my print statements work but anything os.XXX function call fails. I did a very simple stuff: before calling exec:&lt;BR /&gt;&lt;BR /&gt;Os.system("touch /tmp/m1") and this system call fails (for situations where the process hangs). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: The hp system is: &lt;BR /&gt;&lt;BR /&gt;HP-UX 11.11 &lt;BR /&gt;It has MSCS cluster installed on it. &lt;BR /&gt;&lt;BR /&gt;Python: 2.2.3 &lt;BR /&gt;&lt;BR /&gt;Has any body seen such a hanging of processes. &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;-Ajay B &lt;BR /&gt;</description>
    <pubDate>Mon, 03 May 2004 14:09:52 GMT</pubDate>
    <dc:creator>Ajay Bakhshi</dc:creator>
    <dc:date>2004-05-03T14:09:52Z</dc:date>
    <item>
      <title>HpUX - Python -  fork &amp; exec in Threads hang - intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266030#M888754</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I am facing the following problem on HP &amp;amp; python. &lt;BR /&gt;&lt;BR /&gt;Background: &lt;BR /&gt;&lt;BR /&gt;I have a GUI (QT package) and I am running tasks in Threads. These threads spawn a process and read the output of the process and then display the O/P on the GUI.&lt;BR /&gt;&lt;BR /&gt;Now I can get a new process spawned by using a menu option. &lt;BR /&gt;&lt;BR /&gt;Now every alternate time the process hangs (spawned from the same gui): &lt;BR /&gt;&lt;BR /&gt;I.e. First process hangs.  &lt;BR /&gt;    Second goes through fine. &lt;BR /&gt;    Third goes fine &lt;BR /&gt;    Fourth hangs. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;More on the problem: &lt;BR /&gt;&lt;BR /&gt;This is what happens, when I call &lt;BR /&gt;&lt;BR /&gt;os.fork() &lt;BR /&gt;&lt;BR /&gt;In the parent process I get the Pid of the child and the parent is fine. &lt;BR /&gt;But in the child process (even before calling exec) my print statements work but anything os.XXX function call fails. I did a very simple stuff: before calling exec:&lt;BR /&gt;&lt;BR /&gt;Os.system("touch /tmp/m1") and this system call fails (for situations where the process hangs). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: The hp system is: &lt;BR /&gt;&lt;BR /&gt;HP-UX 11.11 &lt;BR /&gt;It has MSCS cluster installed on it. &lt;BR /&gt;&lt;BR /&gt;Python: 2.2.3 &lt;BR /&gt;&lt;BR /&gt;Has any body seen such a hanging of processes. &lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;-Ajay B &lt;BR /&gt;</description>
      <pubDate>Mon, 03 May 2004 14:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266030#M888754</guid>
      <dc:creator>Ajay Bakhshi</dc:creator>
      <dc:date>2004-05-03T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: HpUX - Python -  fork &amp; exec in Threads hang - intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266031#M888755</link>
      <description>Could be a lot of things:&lt;BR /&gt;&lt;BR /&gt;Corrupt process table.&lt;BR /&gt;Too many processes.&lt;BR /&gt;SG getting hung up. You said SG is installed, is the box part of a cluster? Are their monitor scriptts?&lt;BR /&gt;&lt;BR /&gt;Some performance data collection might help. See attachement&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 03 May 2004 14:18:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266031#M888755</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-03T14:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: HpUX - Python -  fork &amp; exec in Threads hang - intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266032#M888756</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;The problem had gone after we rebooted the machine. (But thats not exceptable in a customer environment).&lt;BR /&gt;&lt;BR /&gt;The system load at that point was very light.&lt;BR /&gt;I do not expect any kind of resource problem.&lt;BR /&gt;&lt;BR /&gt;Also using this in python programatically I do not too much say in memory management and hence memory corruption is also a remote possibility. Also the same program never gave any problem on Non-cluster hosts. Though this obsevation may be misleading.&lt;BR /&gt;&lt;BR /&gt;The box is a part of two node cluster (MC / ServiceGuard)&lt;BR /&gt;&lt;BR /&gt;The ran the script you provide. It is tared.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 03 May 2004 18:01:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-python-fork-amp-exec-in-threads-hang-intermittently/m-p/3266032#M888756</guid>
      <dc:creator>Ajay Bakhshi</dc:creator>
      <dc:date>2004-05-03T18:01:35Z</dc:date>
    </item>
  </channel>
</rss>

