<?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: execve failure in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683902#M612042</link>
    <description>&amp;gt;I cannot modify the source code for debugging.&lt;BR /&gt;&lt;BR /&gt;Then you have to do assembly debugging.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I see both the argv and env values.&lt;BR /&gt;&lt;BR /&gt;It helps if we see them too, the exact output of "tusc -fp -ea".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does it mean that there is some issue with FDs shared between the parent process and execed process.&lt;BR /&gt;&lt;BR /&gt;Possibly.  But it seems the tusc output is bogus.  I.e. why say "implicit (execve failure)".  Why not show execve(2) returning a bad errno value that we can trust?</description>
    <pubDate>Mon, 20 Sep 2010 09:56:55 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-09-20T09:56:55Z</dc:date>
    <item>
      <title>execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683894#M612034</link>
      <description>When I executed the application with tusc, the application is failing with the following error:&lt;BR /&gt;&lt;BR /&gt;exit(9) [implicit (execve failure)]......................WIFEXITED(9).&lt;BR /&gt;&lt;BR /&gt;What does this indicate?</description>
      <pubDate>Tue, 07 Sep 2010 06:25:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683894#M612034</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-07T06:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683895#M612035</link>
      <description>All you did was just use tusc and normally it works?  What exact tusc command did you use?</description>
      <pubDate>Tue, 07 Sep 2010 07:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683895#M612035</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-07T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683896#M612036</link>
      <description>Hi Dannis,&lt;BR /&gt;&lt;BR /&gt;The application internally does fork and calls execve to run another program. But it is failing. &lt;BR /&gt;I am trying to find out why the execve is failing. I observed the above message in tusc output. So, I am trying to understand the meaning of the same.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Tue, 07 Sep 2010 08:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683896#M612036</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-07T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683897#M612037</link>
      <description>It would help if we saw more of the tusc system calls.  Use -fp and -ea options.</description>
      <pubDate>Tue, 07 Sep 2010 09:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683897#M612037</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-07T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683898#M612038</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Here is the tusc output for that process&lt;BR /&gt;&lt;BR /&gt;[16952] fork() .......................................................................................................... (returning as child ...) ......... = 16951&lt;BR /&gt;[16952] getpid() ........................................................................................................................................... = 16952 (16951)&lt;BR /&gt;[16952] _lwp_self() ........................................................................................................................................ = 6994636&lt;BR /&gt;[16952] set_userthreadid(1) ................................................................................................................................ = 1&lt;BR /&gt;[16952] sysconf(_SC_CCNUMA_PM) ............................................................................................................................. = 1&lt;BR /&gt;[16952] mpctl(MPC_GETLWP_BINDVALUE, 0, -4) ................................................................................................................. = 104&lt;BR /&gt;[16952] mpctl(MPC_SETLWP, -7, -4) .......................................................................................................................... = -6&lt;BR /&gt;[16952] _lwp_self() ........................................................................................................................................ = 6994636&lt;BR /&gt;[16952] _lwp_getscheduler(LWP_SCHED_SPECIFIC, 6994636, 0x9fffffffbf50d288, 0x9fffffffbf50d28c) ............................................................. = 0&lt;BR /&gt;[16952] chdir("/") ......................................................................................................................................... = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigprocmask(SIG_SETMASK, 0x9ffffffffffed010, 0x9ffffffffffed030) ................................................................................... = 0&lt;BR /&gt;[16952] sigprocmask(SIG_SETMASK, 0x9ffffffffffed030, 0x9ffffffffffed010) ................................................................................... = 0&lt;BR /&gt;[16952] sigsetreturn(NULL, 0x6212003, 48640) ............................................................................................................... = 0&lt;BR /&gt;[16952] sigprocmask(SIG_SETMASK, 0x9ffffffffffed010, 0x9ffffffffffed030) ................................................................................... = 0&lt;BR /&gt;[16952] sigprocmask(SIG_SETMASK, 0x9ffffffffffed030, 0x9ffffffffffed010) ................................................................................... = 0&lt;BR /&gt;[16952] sigvec(SIGHUP, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGINT, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGQUIT, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGILL, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGTRAP, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGABRT, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGEMT, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGFPE, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGBUS, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGSEGV, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGSYS, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGPIPE, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGALRM, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGTERM, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGUSR1, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGUSR2, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGCLD, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGTSTP, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGCONT, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGTTIN, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGTTOU, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGURG, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGLOST, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRESERVE, 0x9ffffffffffed050, 0x9ffffffffffed060) ......................................................................................... ERR#22 EINVAL&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGDIL, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. ERR#22 EINVAL&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGXCPU, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGXFSZ, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................ = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGCANCEL, 0x9ffffffffffed050, 0x9ffffffffffed060) .......................................................................................... = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGGFAULT, 0x9ffffffffffed050, 0x9ffffffffffed060) .......................................................................................... ERR#22 EINVAL&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT1, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT2, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT3, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT4, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT5, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT6, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT7, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] sigvec(SIGRT8, 0x9ffffffffffed050, 0x9ffffffffffed060) ............................................................................................. = 0&lt;BR /&gt;[16952] sysconf(_SC_SIGRTMAX) .............................................................................................................................. = 44&lt;BR /&gt;[16952] write(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0".., 216) ................................................................................................ = 216&lt;BR /&gt;[16952] open("/dev/null", O_RDWR|0x800, 0330) .............................................................................................................. = 3&lt;BR /&gt;[16952] dup2(3, 0) ......................................................................................................................................... = 0&lt;BR /&gt;[16952] dup2(3, 1) ......................................................................................................................................... = 1&lt;BR /&gt;[16952] dup2(3, 2) ......................................................................................................................................... = 2&lt;BR /&gt;[16952] getpid() ........................................................................................................................................... = 16952 (1)&lt;BR /&gt;[16952] pstat(PSTAT_PROC, 0x9ffffffffffecbb0, 1216, 0, 16952) .............................................................................................. = 1&lt;BR /&gt;[16952] close(3) ........................................................................................................................................... = 0&lt;BR /&gt;[16952] close(4) ........................................................................................................................................... = 0&lt;BR /&gt;[16952] close(5) ........................................................................................................................................... = 0&lt;BR /&gt;[16952] execve(0x9fffffffffffe130, 0x600000000001d130, 0x9ffffffffffff928) ................................................................................. [entry]&lt;BR /&gt;[16952] execve(0x9fffffffffffe130, 0x600000000001d130, 0x9ffffffffffff928) ................................................................................. [entry]&lt;BR /&gt;[16952] exit(9) [implicit (execve failure)] ................................................................................................................ WIFEXITED(9)&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2010 11:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683898#M612038</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-07T11:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683899#M612039</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;I saw the following messages on terminal&lt;BR /&gt;&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 23045, 0, 9ffffffffffff9d0, 4, 9ffffffffffff170): Bad address&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 23045, 0, 9ffffffffffff9e0, 4, 9ffffffffffff170): Bad address&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2010 05:41:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683899#M612039</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-08T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683900#M612040</link>
      <description>&amp;gt;[16952] open("/dev/null", O_RDWR|0x800, 0330) = 3&lt;BR /&gt;[16952] dup2(3, 0) = 0&lt;BR /&gt;[16952] dup2(3, 1) = 1&lt;BR /&gt;[16952] dup2(3, 2) = 2&lt;BR /&gt;&lt;BR /&gt;Are you creating a demon here by using /dev/null?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[16952] execve(0x9fffffffffffe130, 0x600000000001d130, 0x9ffffffffffff928) [entry]&lt;BR /&gt;&lt;BR /&gt;You should immediately see the argv and env values here.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[16952] exit(9) [implicit (execve failure)] . WIFEXITED(9)&lt;BR /&gt;&lt;BR /&gt;I'm not sure what this means.  exec(2) doesn't return errno 9, EBADF.&lt;BR /&gt;&lt;BR /&gt;You'll need to put some printfs in your code to see how you handle a bad status from exec(2).  Also print the name, arguments and errno.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I saw the following messages on terminal&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 23045, 0, 9ffffffffffff9d0, 4, 9ffffffffffff170): Bad address&lt;BR /&gt;&lt;BR /&gt;These are tusc errors, you can ignore them.</description>
      <pubDate>Wed, 08 Sep 2010 07:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683900#M612040</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-08T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683901#M612041</link>
      <description>It is third party application. So I cannot modify the source code for debugging.&lt;BR /&gt;Please see my answers inline starting with Mangesh&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[16952] open("/dev/null", O_RDWR|0x800, 0330) = 3&lt;BR /&gt;[16952] dup2(3, 0) = 0&lt;BR /&gt;[16952] dup2(3, 1) = 1&lt;BR /&gt;[16952] dup2(3, 2) = 2&lt;BR /&gt;&lt;BR /&gt;Are you creating a demon here by using /dev/null?&lt;BR /&gt;&lt;BR /&gt;Mangesh&amp;gt; That's correct.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[16952] execve(0x9fffffffffffe130, 0x600000000001d130, 0x9ffffffffffff928) [entry]&lt;BR /&gt;&lt;BR /&gt;You should immediately see the argv and env values here.&lt;BR /&gt;&lt;BR /&gt;Mangesh&amp;gt; I see both the argv and env values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;[16952] exit(9) [implicit (execve failure)] . WIFEXITED(9)&lt;BR /&gt;&lt;BR /&gt;I'm not sure what this means. exec(2) doesn't return errno 9, EBADF.&lt;BR /&gt;&lt;BR /&gt;You'll need to put some printfs in your code to see how you handle a bad status from exec(2). Also print the name, arguments and errno.&lt;BR /&gt;&lt;BR /&gt;Mangesh&amp;gt; Does it mean that there is some issue with file descriptors shared between the parent process and execed process.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I saw the following messages on terminal&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 23045, 0, 9ffffffffffff9d0, 4, 9ffffffffffff170): Bad address&lt;BR /&gt;&lt;BR /&gt;These are tusc errors, you can ignore them.</description>
      <pubDate>Mon, 20 Sep 2010 07:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683901#M612041</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-20T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683902#M612042</link>
      <description>&amp;gt;I cannot modify the source code for debugging.&lt;BR /&gt;&lt;BR /&gt;Then you have to do assembly debugging.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I see both the argv and env values.&lt;BR /&gt;&lt;BR /&gt;It helps if we see them too, the exact output of "tusc -fp -ea".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does it mean that there is some issue with FDs shared between the parent process and execed process.&lt;BR /&gt;&lt;BR /&gt;Possibly.  But it seems the tusc output is bogus.  I.e. why say "implicit (execve failure)".  Why not show execve(2) returning a bad errno value that we can trust?</description>
      <pubDate>Mon, 20 Sep 2010 09:56:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683902#M612042</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-20T09:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683903#M612043</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;The tusc output starting from fork is called.&lt;BR /&gt;&lt;BR /&gt;[5509] fork() .............................................................(returning as child ...) ......... = 5508&lt;BR /&gt;[5508] fork() ............................................................................................... = 5509&lt;BR /&gt;[5509] getpid() ............................................................................................. = 5509 (5508)&lt;BR /&gt;[5509] lwp_self() ........................................................................................... = 4821488&lt;BR /&gt;[5508] exit(0) .............................................................................................. WIFEXITED(0)&lt;BR /&gt;[5509] set_userthreadid(1) .................................................................................. = 1&lt;BR /&gt;[5509] sysconf(_SC_CCNUMA_PM) ............................................................................... = 1&lt;BR /&gt;[5509] mpctl(MPC_GETLWP_BINDVALUE, 0, -4) ................................................................... = 104&lt;BR /&gt;[5509] mpctl(MPC_SETLWP, -7, -4) ............................................................................ = -6&lt;BR /&gt;[5509] lwp_self() ........................................................................................... = 4821488&lt;BR /&gt;[5509] lwp_getscheduler(LWP_SCHED_SPECIFIC, 4821488, 0x9fffffffbf50d288, 0x9fffffffbf50d28c) ................ = 0&lt;BR /&gt;[5509] chdir("/") ........................................................................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigprocmask(SIG_SETMASK, 0x9ffffffffffec8e0, 0x9ffffffffffec900) ..................................... = 0&lt;BR /&gt;[5509] sigprocmask(SIG_SETMASK, 0x9ffffffffffec900, 0x9ffffffffffec8e0) ..................................... = 0&lt;BR /&gt;[5509] sigsetreturn(NULL, 0x6212003, 48640) ................................................................. = 0&lt;BR /&gt;[5509] sigprocmask(SIG_SETMASK, 0x9ffffffffffec8e0, 0x9ffffffffffec900) ..................................... = 0&lt;BR /&gt;[5509] sigprocmask(SIG_SETMASK, 0x9ffffffffffec900, 0x9ffffffffffec8e0) ..................................... = 0&lt;BR /&gt;[5509] sigvector(SIGHUP, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGINT, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGQUIT, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGILL, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGTRAP, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGABRT, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGEMT, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGFPE, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5434] waitpid(5508, WIFEXITED(0), 0) ....................................................................... = 5508&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5434] close(5) ............................................................................................. = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGBUS, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGSEGV, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGSYS, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGPIPE, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGALRM, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGTERM, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGUSR1, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;5509] sigvector(SIGUSR2, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGCLD, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGPWR, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGVTALRM, 0x9ffffffffffec920, 0x9ffffffffffec930) ......................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGPROF, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGIO, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................. = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGWINCH, 0x9ffffffffffec920, 0x9ffffffffffec930) .......................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGTSTP, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGCONT, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGTTIN, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGTTOU, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGURG, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGLOST, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGRESERVE, 0x9ffffffffffec920, 0x9ffffffffffec930) ....................................... ERR#22 EINVAL&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGDIL, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................... ERR#22 EINVAL&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGXCPU, 0x9ffffffffffec920, 0x9ffffffffffec930) .......................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGXFSZ, 0x9ffffffffffec920, 0x9ffffffffffec930) .......................................... = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGCANCEL, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(_SIGGFAULT, 0x9ffffffffffec920, 0x9ffffffffffec930) ........................................ ERR#22 EINVAL&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT1, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT2, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT3, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT4, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT5, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT6, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT7, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] sigvector(SIGRT8, 0x9ffffffffffec920, 0x9ffffffffffec930) ............................................ = 0&lt;BR /&gt;[5509] sysconf(_SC_SIGRTMAX) ................................................................................ = 44&lt;BR /&gt;[5509] write(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0".., 216) .................................................. = 216&lt;BR /&gt;[5434] read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0".., 216) ................................................... = 216&lt;BR /&gt;[5509] open("/dev/null", O_RDWR|0x800, 0330) ................................................................ = 3&lt;BR /&gt;[5434] close(3) ............................................................................................. = 0&lt;BR /&gt;[5509] dup2(3, 0) ........................................................................................... = 0&lt;BR /&gt;[5509] dup2(3, 1) ........................................................................................... = 1&lt;BR /&gt;[5509] dup2(3, 2) ........................................................................................... = 2&lt;BR /&gt;[5509] getpid() ............................................................................................. = 5509 (1)&lt;BR /&gt;[5509] pstat(PSTAT_PROC, 0x9ffffffffffec480, 1216, 0, 5509) ................................................. = 1&lt;BR /&gt;[5509] close(3) ............................................................................................. = 0&lt;BR /&gt;[5509] close(4) ............................................................................................. = 0&lt;BR /&gt;[5509] close(5) ............................................................................................. = 0&lt;BR /&gt;[5509] execve(0x9fffffffffffda00, 0x600000000001cfb0, 0x9ffffffffffff1f0) ................................... [entry]&lt;BR /&gt;                              argv[0] @ 0x600000000001d040: "/crsvol/bin/ohasd"&lt;BR /&gt;                              argv[1] @ 0x6000000000034390: "reboot"&lt;BR /&gt;                               env[0] @ 0x9ffffffffffff391: "_=/crsvol/bin/crsctl.bin"&lt;BR /&gt;                               env[1] @ 0x9ffffffffffff3aa: "MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/cont&lt;BR /&gt;rib/man:/usr/local/man/%L:/usr/local/man:/opt/VRTS/vxfs5.0/man:/opt/ldapux/share/man/%L:/opt/ldapux/share/man:/opt/ipf/man:/opt/lda&lt;BR /&gt;pux/ypldapd/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/samba/cfsm_man:/opt/cifsclient/share/man:/opt/openssl/man:/op&lt;BR /&gt;t/openssl/prngd/man:/opt/wbem/share/man:/opt/graphics/common/man:/opt/amgr/man/%L:/opt/amgr/man:/opt/sec_mgmt/share/man:/opt/calipe&lt;BR /&gt;r/man/%L:/opt/caliper/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/op&lt;BR /&gt;t/gnome/man:/opt/perf/man/%L:/opt/perf/man:/opt/propplus/share/man:/usr/contrib/kwdb/share/man:/opt/perl_32/man:/opt/perl_64/man:/o&lt;BR /&gt;pt/prm/man/%L:/opt/prm/man:/opt/psb/healthtest/share/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/swa/share&lt;BR /&gt;/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/sha&lt;BR /&gt;re/man:/opt/wlm/share/man/%L:/opt/wlm"&lt;BR /&gt;                               env[2] @ 0x9ffffffffffff868: "LANG=C"&lt;BR /&gt;                               env[3] @ 0x9ffffffffffff86f: "VCS_LOG_RESOURCE_NAME=cssd"&lt;BR /&gt;                               env[4] @ 0x9ffffffffffff88a: "VCS_AGFW=1"&lt;BR /&gt;                               env[5] @ 0x9ffffffffffff895: "SHLIB_PATH=/crsvol/lib32:/opt/nmapi/nmapi2/lib/hpux32:"&lt;BR /&gt;                               env[6] @ 0x9ffffffffffff8cc: "VCSAG_REG_VERSION=4"&lt;BR /&gt;                               env[7] @ 0x9ffffffffffff8e0: "__ARIES_PA_AOUT_MAXSSIZ=8388608"&lt;BR /&gt;                               env[8] @ 0x9ffffffffffff900: "PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/&lt;BR /&gt;sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/ipf/bin:/opt/gvsd/bin:/opt/nettladm/bin:/opt/fcm&lt;BR /&gt;s/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_m&lt;BR /&gt;gmt/bastille/bin:/opt/resmon/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/gnome/bin:/opt/perf/bin:/opt/propplus/bin:/usr/cont&lt;BR /&gt;rib/kwdb/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/langtools/b&lt;BR /&gt;in:/opt/wlm/bin:/opt/gwlm/bin:/opt/VRTS/bin:/opt/VRTSvcs/sbin:/opt/VRTSvcs/sbin:/opt/VRTSvxvm/bin:/opt/VRTSvcs/vxfen/bin:/etc/vx/bi&lt;BR /&gt;n:/usr/lib/vxvm/bin:/opt/VRTSvxfs/cfs/bin:/opt/caliper/bin:/opt/firefox:/opt/perl_32/bin:/opt/perl_64/bin:/opt/thunderbird:/opt/sen&lt;BR /&gt;tinel/bin:/sbin:/home/root"&lt;BR /&gt;                               env[9] @ 0x9ffffffffffffc73: "COLUMNS=158"&lt;BR /&gt;                               env[10] @ 0x9ffffffffffffc7f: "VCS_LOG_SCRIPT_NAME=online"&lt;BR /&gt;                               env[11] @ 0x9ffffffffffffc9a: "EDITOR=vi"&lt;BR /&gt;                               env[12] @ 0x9ffffffffffffca4: "PTHREAD_COMPAT_MODE=0"&lt;BR /&gt;                               env[13] @ 0x9ffffffffffffcba: "LOGNAME=root"&lt;BR /&gt;                               env[14] @ 0x9ffffffffffffcc7: "HOSTNAME=sliam31"&lt;BR /&gt;                               env[15] @ 0x9ffffffffffffcd8: "ERASE=^H"&lt;BR /&gt;                               env[16] @ 0x9ffffffffffffce1: "VCSONE_LOG_AGENT_NAME=Application"&lt;BR /&gt;                               env[17] @ 0x9ffffffffffffd03: "VCSONE_LOG_SCRIPT_NAME=online"&lt;BR /&gt;                               env[18] @ 0x9ffffffffffffd21: "VCSONE_LOG_RESOURCE_NAME=cssd"&lt;BR /&gt;                               env[19] @ 0x9ffffffffffffd3f: "VCS_HOME=/opt/VRTSvcs"&lt;BR /&gt;                               env[20] @ 0x9ffffffffffffd55: "__ARIES_PA_STACK_SIZE_max=8388608"&lt;BR /&gt;                               env[21] @ 0x9ffffffffffffd77: "SHLVL=2"&lt;BR /&gt;                               env[22] @ 0x9ffffffffffffd7f: "VCSONE_LOG_CATEGORY=10021"&lt;BR /&gt;                               env[23] @ 0x9ffffffffffffd99: "EAT_HOME_DIR=/opt/VRTSvcs"&lt;BR /&gt;                               env[24] @ 0x9ffffffffffffdb3: "SHELL=/sbin/sh"&lt;BR /&gt;                               env[25] @ 0x9ffffffffffffdc2: "HOSTTYPE=hppa2.0"&lt;BR /&gt;                               env[26] @ 0x9ffffffffffffdd3: "ORASYM=/crsvol/bin/crsctl.bin"&lt;BR /&gt;                               env[27] @ 0x9ffffffffffffdf1: "VCS_CONF=/etc/VRTSvcs"&lt;BR /&gt;                               env[28] @ 0x9ffffffffffffe07: "OSTYPE=hpux11.00"&lt;BR /&gt;                               env[29] @ 0x9ffffffffffffe18: "ORA_CRS_HOME=/crsvol"&lt;BR /&gt;                               env[30] @ 0x9ffffffffffffe2d: "EAT_CATALOG_DIR=/opt/VRTSvcs"&lt;BR /&gt;                               env[31] @ 0x9ffffffffffffe4a: "HOME=/"&lt;BR /&gt;                               env[32] @ 0x9ffffffffffffe51: "CLUSTER_DIAG=/var/VRTSvcs/diag//agents/Application"&lt;BR /&gt;                               env[33] @ 0x9ffffffffffffe84: "VCS_DIAG=/var/VRTSvcs"&lt;BR /&gt;                               env[34] @ 0x9ffffffffffffe9a: "LD_LIBRARY_PATH=/crsvol/lib:/opt/nmapi/nmapi2/lib/hpux64:/usr/lib:/op&lt;BR /&gt;t/VRTSvcs/lib:"&lt;BR /&gt;                               env[35] @ 0x9ffffffffffffeee: "TERM=xterm"&lt;BR /&gt;                               env[36] @ 0x9ffffffffffffef9: "ORACLE_HOME=/crsvol"&lt;BR /&gt;                               env[37] @ 0x9fffffffffffff0d: "VCS_LOG_AGENT_NAME=Application"&lt;BR /&gt;                               env[38] @ 0x9fffffffffffff2c: "__ARIES_PA_STACK_SIZE_cur=8388608"&lt;BR /&gt;                               env[39] @ 0x9fffffffffffff4e: "PWD=/opt/VRTSvcs/bin/Application"&lt;BR /&gt;                               env[40] @ 0x9fffffffffffff6f: "MACHTYPE=hppa2.0-hp-hpux11.00"&lt;BR /&gt;                               env[41] @ 0x9fffffffffffff8d:&lt;BR /&gt;                               env[42] @ 0x9fffffffffffff99:&lt;BR /&gt;                               env[43] @ 0x9fffffffffffffb0:&lt;BR /&gt;                               env[44] @ 0x9fffffffffffffc0:&lt;BR /&gt;                               env[45] @ 0x9fffffffffffffda:&lt;BR /&gt;                               env[46] @ 0x9fffffffffffffe3:&lt;BR /&gt;[5434] socket(AF_INET6, SOCK_DGRAM, 0) ...................................................................... = 3&lt;BR /&gt;[5434] setsockopt(3, SOL_SOCKET, SO_REUSEADDR, 0x9fffffffffffd1b8, 4) ....................................... = 0&lt;BR /&gt;[5434] bind(3, 0x6000000000771070, 28) ...................................................................... = 0&lt;BR /&gt;[5434] getsockname(3, 0x9fffffffffffd2f0, 0x9fffffffffffd1b0) ............................................... = 0&lt;BR /&gt;[5434] getpeername(3, 0x9fffffffffffd2f0, 0x9fffffffffffd1b0) ............................................... ERR#235 ENOTCONN&lt;BR /&gt;[5434] getsockopt(3, SOL_SOCKET, SO_SNDBUF, 0x9fffffffffffd444, 0x9fffffffffffd440) ......................... = 0&lt;BR /&gt;[5434] getsockopt(3, SOL_SOCKET, SO_RCVBUF, 0x9fffffffffffd444, 0x9fffffffffffd440) ......................... = 0&lt;BR /&gt;[5434] fcntl(3, F_SETFD, 1) ................................................................................. = 0&lt;BR /&gt;[5434] ioctl(3, FIONBIO, 0x9fffffffffffd52c) ................................................................ = 0&lt;BR /&gt;[5434] gettimeofday(0x9fffffffffffc520, NULL) ............................................................... = 0&lt;BR /&gt;[5434] socket(AF_UNIX, SOCK_STREAM, 0) ...................................................................... = 5&lt;BR /&gt;[5434] access("/tmp/.oracle/sOHASD_UI_SOCKET", F_OK) ........................................................ = 0&lt;BR /&gt;[5434] connect(5, 0x9fffffffffffbb60, 94) ................................................................... ERR#239 ECONNREFUSED&lt;BR /&gt;[5434] access("/tmp/.oracle/sOHASD_UI_SOCKET", F_OK) ........................................................ = 0&lt;BR /&gt;[5509] execve(0x9fffffffffffda00, 0x600000000001cfb0, 0x9ffffffffffff1f0) ................................... [entry]&lt;BR /&gt;[5509] exit(9) [implicit (execve failure)] .................................................................. WIFEXITED(9)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Does it mean that there is some issue with FDs shared between the parent process and execed process.&lt;BR /&gt;&lt;BR /&gt;Possibly. But it seems the tusc output is bogus. I.e. why say "implicit (execve failure)". Why not show execve(2) returning a bad errno value that we can trust? &lt;BR /&gt;&lt;BR /&gt;Mangesh&amp;gt; The error displayed by tusc on terminal refers to the arguments of execve.&lt;BR /&gt;&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 5509, 0, 600000000001cfb0, 4, 9fffffffffffecb0): Bad addression") [32-bit] )&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 5509, 0, 9ffffffffffff1f0, 4, 9fffffffffffecb0): Bad address&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mangesh</description>
      <pubDate>Mon, 20 Sep 2010 14:31:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683903#M612043</guid>
      <dc:creator>VCS Engineering</dc:creator>
      <dc:date>2010-09-20T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683904#M612044</link>
      <description>&amp;gt;[5509] exit(9) [implicit (execve failure)] . WIFEXITED(9)&lt;BR /&gt;&lt;BR /&gt;I don't get this for a bad executable, I get errno 2.&lt;BR /&gt;What HP-UX version do you have?  What tusc version?&lt;BR /&gt;Are you in a 32 bit process?  Are you using Aries?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The error displayed by tusc on terminal refers to the arguments of execve.&lt;BR /&gt;tusc: ttrace(TT_PROC_RDDATA, 5509, 0, 600000000001cfb0, 4, 9fffffffffffecb0): Bad address&lt;BR /&gt;&lt;BR /&gt;Hmm, they didn't match the first time.  But it appears tusc can display the parms.</description>
      <pubDate>Tue, 21 Sep 2010 06:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683904#M612044</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-21T06:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683905#M612045</link>
      <description>Tusc reports an "implicit" exit when it gets an EXIT event but the syscall that resulted in the exit is not an exit syscall. If the TTS_INSYSCALL bit is set in the event flags, tusc reports which syscall caused the exit.&lt;BR /&gt;&lt;BR /&gt;Another example is doing a 'tusc sleep 100' and killing the sleep command with a SIGHUP. Tusc will report:&lt;BR /&gt;&lt;BR /&gt;exit(1) [implicit (sigtimedwait failure)]................ WIFSIGNALED(SIGHUP)&lt;BR /&gt;&lt;BR /&gt;-- &lt;BR /&gt;Regards, Chris (Chris Bertin, chris.bertin@hp.com)&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Sep 2010 16:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683905#M612045</guid>
      <dc:creator>Chris Bertin</dc:creator>
      <dc:date>2010-09-21T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683906#M612046</link>
      <description>Looking back at this and reading more of the thread, I should have also said, to follow up on the "bogus and why not show ..." comment, that errno not necessarily == exit value. If the process exits with an unexpected EXIT event, it's not a syscall event, i.e. there are no arguments to report, no errno. Just an exit value (which is interpreted using the encoding described in wait.h. Hence, exit(9), which doesn't necessarily have anything to do with errno 9.&lt;BR /&gt;&lt;BR /&gt;Also, wrt the fact that tusc reports a ttrace error when reading some syscall arguments, it would indicate to me that the  arguments are invalid. Which would somehow correlate to an exec failure in this case, IMHO.&lt;BR /&gt;&lt;BR /&gt;So, either the program is passing bogus pointers to exec or the memory these pointers point to is being stepped on before the syscall.</description>
      <pubDate>Tue, 21 Sep 2010 18:06:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683906#M612046</guid>
      <dc:creator>Chris Bertin</dc:creator>
      <dc:date>2010-09-21T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683907#M612047</link>
      <description>&amp;gt;What does this indicate?&lt;BR /&gt;&lt;BR /&gt;From what Chris said and the source, the problem is that execvp(2) has problems with the executable or getting memory for the process so it calls exit(SIGKILL).&lt;BR /&gt;&lt;BR /&gt;Can you do this from the shell: /crsvol/bin/ohasd reboot&lt;BR /&gt;&lt;BR /&gt;If you hadn't redirected stderr, you may have seen these message:&lt;BR /&gt;exec(2): insufficient swap or memory available.&lt;BR /&gt;exec(2): could not load a.out&lt;BR /&gt;exec(2): Could not load a.out due to swap reservation failure or due to insufficient user stack size&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2010 02:20:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683907#M612047</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-09-22T02:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: execve failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683908#M612048</link>
      <description>The message is a 'uprintf' and will go to the terminal, if there is one, regardless of stdout/err. 'uprintf' messages from the kernel cannot be redirected. The characters get pushed directly onto the tty queue.&lt;BR /&gt;&lt;BR /&gt;The kernel message is also misleading. It will happen any time a 'copyout' fails (copyout copies data from kernel space to user space). Considering the fact that tusc can't read the exec arguments, I'd say that the issue is corruption of the binary, not lack of space.</description>
      <pubDate>Wed, 22 Sep 2010 13:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execve-failure/m-p/4683908#M612048</guid>
      <dc:creator>Chris Bertin</dc:creator>
      <dc:date>2010-09-22T13:01:18Z</dc:date>
    </item>
  </channel>
</rss>

