<?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: msgrcv issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615901#M675643</link>
    <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;You might look at patch PHKL_40306 or its successor PHKL_40367.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 12 Apr 2010 13:18:08 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-04-12T13:18:08Z</dc:date>
    <item>
      <title>msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615895#M675637</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've noticed following issue: having two or more processes that receive IPC messages via msgrcv() call are getting stuck when one process requesting msgtyp &amp;gt; 0 and other one(s) have msgtyp = 0.&lt;BR /&gt;&lt;BR /&gt;Have you noticed something like this?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; uname -mnrsv &lt;BR /&gt;HP-UX ktest B.11.31 U ia64&lt;BR /&gt;&amp;gt; model&lt;BR /&gt;ia64 hp server rx7640</description>
      <pubDate>Mon, 12 Apr 2010 12:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615895#M675637</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T12:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615896#M675638</link>
      <description>Attaching example: when sending message (via msg_s) on 15:54:48 and  15:55:00, messages are delivered to msg_r process on 15:55:00. So the process msg_r (with mtype=0) had been sleeping and was not woke up by OS on 15:54:48.&lt;BR /&gt;&lt;BR /&gt;# ./msg_r&lt;BR /&gt;creating msgq...&lt;BR /&gt;Mon Apr 12 15:54:40 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 999&lt;BR /&gt;&lt;BR /&gt;# ./msg_r 20971608&lt;BR /&gt;reusing msgq [20971608]&lt;BR /&gt;Mon Apr 12 15:54:45 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 0&lt;BR /&gt;Mon Apr 12 15:55:00 2010&lt;BR /&gt; received 1 [Hello]&lt;BR /&gt;Mon Apr 12 15:55:00 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 0&lt;BR /&gt;Mon Apr 12 15:55:00 2010&lt;BR /&gt; received 1 [Hello]&lt;BR /&gt;Mon Apr 12 15:55:00 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 0&lt;BR /&gt;&lt;BR /&gt;# ./msg_s 20971608 1 'Hello'&lt;BR /&gt;Mon Apr 12 15:54:48 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 1, mtext [Hello]&lt;BR /&gt;# ./msg_s 20971608 1 'Hello'&lt;BR /&gt;Mon Apr 12 15:55:00 2010&lt;BR /&gt; msgq_id = 20971608, mtype = 1, mtext [Hello]&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Apr 2010 12:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615896#M675638</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T12:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615897#M675639</link>
      <description>&amp;gt; cat msg_r.c  &lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;   long mtype;&lt;BR /&gt;   char mtext[100];&lt;BR /&gt;} msgx_ent;&lt;BR /&gt;&lt;BR /&gt;int main( int argc, char *argv[] )&lt;BR /&gt;{&lt;BR /&gt;   int msgq_id;&lt;BR /&gt;   time_t t;&lt;BR /&gt;   msgx_ent msgx_buf;&lt;BR /&gt;   int msg_len;&lt;BR /&gt;&lt;BR /&gt;   setvbuf(stdout, NULL, _IONBF, 0);&lt;BR /&gt;&lt;BR /&gt;   if ( argc &amp;gt; 1 )&lt;BR /&gt;   {&lt;BR /&gt;      printf("reusing msgq [%s]\n", argv[1]);&lt;BR /&gt;      msgq_id = atoi(argv[1]);&lt;BR /&gt;   }&lt;BR /&gt;   else&lt;BR /&gt;   {&lt;BR /&gt;      printf("creating msgq...\n");&lt;BR /&gt;      msgq_id = msgget(IPC_PRIVATE, 0664);&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;again:&lt;BR /&gt;   t = time(NULL);&lt;BR /&gt;   printf("%s\tmsgq_id = %d, mtype = %d\n",&lt;BR /&gt;          ctime(&amp;amp;t), msgq_id, argc &amp;gt; 1 ? 0 : 999);&lt;BR /&gt;&lt;BR /&gt;   msg_len = msgrcv(msgq_id, &amp;amp;msgx_buf, 100, argc &amp;gt; 1 ? 0 : 999, 0);&lt;BR /&gt;&lt;BR /&gt;   t = time(NULL);&lt;BR /&gt;   if ( msg_len &amp;lt; 0 )&lt;BR /&gt;   {&lt;BR /&gt;      printf("%s\tmsg_len = %d, errno = %d\n",&lt;BR /&gt;             ctime(&amp;amp;t), msg_len, errno);&lt;BR /&gt;   }&lt;BR /&gt;   else&lt;BR /&gt;   {&lt;BR /&gt;      printf("%s\treceived %d [%s]\n",&lt;BR /&gt;             ctime(&amp;amp;t), msgx_buf.mtype, msgx_buf.mtext);&lt;BR /&gt;   }&lt;BR /&gt;   goto again;&lt;BR /&gt;&lt;BR /&gt;   return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;&lt;/TIME.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615897#M675639</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615898#M675640</link>
      <description>&amp;gt; cat msg_s.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;   long mtype;&lt;BR /&gt;   char mtext[100];&lt;BR /&gt;} msgx_ent;&lt;BR /&gt;&lt;BR /&gt;int main( int argc, char *argv[] )&lt;BR /&gt;{&lt;BR /&gt;   int msgq_id;&lt;BR /&gt;   time_t t;&lt;BR /&gt;   msgx_ent msgx_buf;&lt;BR /&gt;   int msg_len;&lt;BR /&gt;&lt;BR /&gt;   setvbuf(stdout, NULL, _IONBF, 0);&lt;BR /&gt;&lt;BR /&gt;   msgq_id = atoi(argv[1]);&lt;BR /&gt;   msgx_buf.mtype = atoi(argv[2]);&lt;BR /&gt;   strcpy(msgx_buf.mtext, argv[3]);&lt;BR /&gt;&lt;BR /&gt;   t = time(NULL);&lt;BR /&gt;   printf("%s\tmsgq_id = %d, mtype = %ld, mtext [%s]\n",&lt;BR /&gt;          ctime(&amp;amp;t), msgq_id, msgx_buf.mtype, msgx_buf.mtext);&lt;BR /&gt;&lt;BR /&gt;   msg_len = msgsnd(msgq_id, &amp;amp;msgx_buf, strlen(msgx_buf.mtext)+1, 0);&lt;BR /&gt;&lt;BR /&gt;   if ( msg_len &amp;lt; 0 )&lt;BR /&gt;   {&lt;BR /&gt;      printf("msg_len = %d, errno = %d\n", msg_len, errno);&lt;BR /&gt;   }&lt;BR /&gt;&lt;BR /&gt;   return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;&lt;/TIME.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 12 Apr 2010 13:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615898#M675640</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T13:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615899#M675641</link>
      <description>More investigation:&lt;BR /&gt;- issue persist on ELF-64 and ELF-32 binaries&lt;BR /&gt;- issue vanish when I send message with msgtype == 999 (the one that is specified in msgrcv() call)&lt;BR /&gt;&lt;BR /&gt;Any idea what's wrong?</description>
      <pubDate>Mon, 12 Apr 2010 13:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615899#M675641</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615900#M675642</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You might use 'tusc' to see some details.  You don't offer any code, in particular the setting of 'msgflg' and any values of 'errno'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 12 Apr 2010 13:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615900#M675642</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-12T13:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615901#M675643</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;You might look at patch PHKL_40306 or its successor PHKL_40367.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 12 Apr 2010 13:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615901#M675643</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-12T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615902#M675644</link>
      <description>Thank you for your help.&lt;BR /&gt;Indeed, this patch is not applied. I've just asked admin for installation. In case it solves the issue (or not), I will update the status here.&lt;BR /&gt;&lt;BR /&gt;Thank you! Michal</description>
      <pubDate>Mon, 12 Apr 2010 13:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615902#M675644</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-12T13:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615903#M675645</link>
      <description>I can confirm that patch, you've suggested, fixed the issue we had. Thank you very much for your help. Michal</description>
      <pubDate>Tue, 13 Apr 2010 06:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615903#M675645</guid>
      <dc:creator>Michal Rokos</dc:creator>
      <dc:date>2010-04-13T06:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: msgrcv issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615904#M675646</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I can confirm that patch, you've suggested, fixed the issue we had. Thank you very much for your help. Michal&lt;BR /&gt;&lt;BR /&gt;If you are happy with the answers you received, please read this about assigning points:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Apr 2010 10:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/msgrcv-issue/m-p/4615904#M675646</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-04-13T10:53:56Z</dc:date>
    </item>
  </channel>
</rss>

