<?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: ProC programs crash on 11.23 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043811#M94229</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The program crashed again today. The memory usage got as high as 18892 in 1K blocks. After restart, it's growing again. Is there a kernel variable I can tune, or is this strictly a code issue?  The memory leak doesn't seem to be fixed.&lt;BR /&gt;&lt;BR /&gt;Why do you believe that you have a memory leak?  Usually, you would see the memory utiliztion for the processs grow until your program fails calling 'malloc' with an error of ENOMEM.  With such a failure, the call will also return a NULL pointer.&lt;BR /&gt;&lt;BR /&gt;In all your posts, I don't see evidence of continued memory growth nor any 'errno'.  As already noted by others, you need to capture and test for non-zero 'errno' after every system call.&lt;BR /&gt;&lt;BR /&gt;For the heap (data) (governed by 'malloc'), the kernel parameter 'maxdsiz' and 'madsiz_64bit' are the fences for the maximum data size of 32-bit and of 64-bit processes respectively.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Jul 2007 11:13:55 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-07-30T11:13:55Z</dc:date>
    <item>
      <title>ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043789#M94207</link>
      <description>It's hp-ux version 11.23 on Itenium 2620.&lt;BR /&gt;&lt;BR /&gt;ProC programs randomly crash on the OpenDir call. Any idea why that is? Is there a patch for this? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 08:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043789#M94207</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-25T08:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043790#M94208</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;One would have to see the core dumps (perhaps take a look at them), and perhaps the code to get an idea.&lt;BR /&gt;&lt;BR /&gt;Perhaps use a debugger such as gdb to get some idea whats wrong with the programs.&lt;BR /&gt;&lt;BR /&gt;I will venture to guess, wildly that there is likely a problem with the code. recompile or code changes need to be made.&lt;BR /&gt;&lt;BR /&gt;To hope to get lucky with a patch, search the ITRC patch database for some form of the call (opendir).&lt;BR /&gt;&lt;BR /&gt;I can't see how anyone will be able to recommend a specific patch unless they had the same symptoms and fixed them with a patch.&lt;BR /&gt;&lt;BR /&gt;hint: More information required to help with this.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 Jul 2007 08:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043790#M94208</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-07-25T08:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043791#M94209</link>
      <description>More info:&lt;BR /&gt;&lt;BR /&gt;Pro*C/C++: Release 9.2.0.2.0&lt;BR /&gt;HP-UX 11.23&lt;BR /&gt;Itanium rx2620</description>
      <pubDate>Wed, 25 Jul 2007 09:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043791#M94209</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-25T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043792#M94210</link>
      <description>Is OpenDir() actually the standard function opendir() or is it something else? This is rather standard debugging so add the -g flag (which I assume is passed from the ProC pre-compiler to the C/C++ compiler) and execute your program and allow it to die. Then do a stack trace and you should see the culprit. &lt;BR /&gt;&lt;BR /&gt;Since you seem to be asking for psychic help, given the wealth of data that you have supplied, Miss Cleo says that what a pointer once pointed to as valid data no longer is. Perhaps a local string variable that should be declared static --- but contrary to her vast audience, I find that Miss Cleo is often wrong.</description>
      <pubDate>Wed, 25 Jul 2007 09:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043792#M94210</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-25T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043793#M94211</link>
      <description>opendir it is.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 09:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043793#M94211</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-25T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043794#M94212</link>
      <description>----Quote----&lt;BR /&gt;&lt;BR /&gt;No, there is no core dump because it does not "crash". Instead it exits "gracefully". The program calls opendir() which would normally return a pointer to the directory structure and all the files in that directory. The program loops (sleeping for 5 seconds each time) looking in the directory for a file. Most of the time, the opendir() call is successful, but every once in a while it will return NULL and the program exits "gracefully" when that happens i.e. it just stops running.&lt;BR /&gt;&lt;BR /&gt;    Today we made a change to the program to re-try access to this directory if it fails, for up to 5 times. That band-aid may or may not be a work around to the problem, as GAR mentioned this morning it may be related to a memory leak, in which case the program will likely still quit running.&lt;BR /&gt;&lt;BR /&gt;----end quote----&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 13:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043794#M94212</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-25T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043795#M94213</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Just out of curiosity, what is the latest standard patch bundle that you have applied?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Jul 2007 13:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043795#M94213</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-25T13:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043796#M94214</link>
      <description>Oh, that's a horse of a different color. A NULL pointer returned by opendir() is not entirely unexpected and when that happens, you then need to check the value of the extern variable errno which should indicate the reason. A common problem might be that your process has reached maxdsiz and thus malloc() failed. Note: when you use the word "crash" in describing program behavior that does not normally mean that a function returned a result I was not expecting (but should have been or at least had meaningful error messages output before exiting).&lt;BR /&gt;&lt;BR /&gt;PHKL_31500 does have a fix for a problem with opendir() but I don't think it fits your problem and you should read the installation instructions carefully before installing --- although I suspect it is already installed on your system.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 13:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043796#M94214</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-25T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043797#M94215</link>
      <description>&lt;!--!*#--&gt;To reiterate what Clay has said a simple and probably generic fix would be to add exception handling to your Pro*C program. It can be like the one below:&lt;BR /&gt;&lt;BR /&gt;if (!opendir("Some_Dir_Name"))&lt;BR /&gt;     perror("Error");</description>
      <pubDate>Wed, 25 Jul 2007 14:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043797#M94215</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-25T14:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043798#M94216</link>
      <description>J. Ferguson,&lt;BR /&gt;&lt;BR /&gt;The system was installed in the fall of 2006. I ran a custom patch install with swainv. &lt;BR /&gt;&lt;BR /&gt;C.Stephenson,&lt;BR /&gt;&lt;BR /&gt;Yes, I have PHKL_31500.&lt;BR /&gt;&lt;BR /&gt;Sandman!,&lt;BR /&gt;&lt;BR /&gt;Good idea.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 15:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043798#M94216</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-25T15:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043799#M94217</link>
      <description>&lt;!--!*#--&gt;I was almost certain that your did have that patch as it is quite old and doesn't really fit your symptoms because your symptoms almost certainly are not a bug. There are a number of reasons opendir() can fail and putting a loop in to retry the call is not likely to fix anything. You need to resolve the base cause of the problem and that is where errno comes into the picture. Something like this should be rather close:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;ERRNO.H&gt;&lt;BR /&gt;#include &lt;DIRENT.H&gt;&lt;BR /&gt;#define assign_errno(x) ((errno != 0) ? errno : (x))&lt;BR /&gt;&lt;BR /&gt;int process_dir(char *dirname)&lt;BR /&gt;{&lt;BR /&gt;  int cc = 0;&lt;BR /&gt;  DIR *dp = NULL;&lt;BR /&gt;&lt;BR /&gt;  dp = opendir(dirname);&lt;BR /&gt;  if (dp != NULL)&lt;BR /&gt;    {&lt;BR /&gt;      /* normal processing goes here */&lt;BR /&gt;      closedir(dp); /* If you miss this step you have an instant memory leak */&lt;BR /&gt;    }&lt;BR /&gt;  else&lt;BR /&gt;    {&lt;BR /&gt;      cc = assign_errno(255);&lt;BR /&gt;      (void) fprintf(stderr,"Can't open directory \"%s\"; status %d.\n",dirname,cc);&lt;BR /&gt;      (void) fflush(stderr);&lt;BR /&gt;    }&lt;BR /&gt;  return(cc);&lt;BR /&gt;} /* process_dir */&lt;BR /&gt;&lt;BR /&gt;    &lt;BR /&gt;------------------------------------------&lt;BR /&gt;You now will have an integer exit code that means something and an error message on stderr that means something.&lt;/DIRENT.H&gt;&lt;/ERRNO.H&gt;&lt;/STDIO.H&gt;&lt;/UNISTD.H&gt;&lt;/STDLIB.H&gt;</description>
      <pubDate>Wed, 25 Jul 2007 15:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043799#M94217</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-25T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043800#M94218</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;I haven't yet tried the above code to get the error code, but I will.&lt;BR /&gt;&lt;BR /&gt;Here is the output from the log file.  A couple of scenarios were looked at:&lt;BR /&gt;&lt;BR /&gt;(1) The directory was renamed to another name, and &lt;BR /&gt;(2) the permissions of the directory were set to 000&lt;BR /&gt;&lt;BR /&gt;The corresponding messages given in the log file on dev were:&lt;BR /&gt;****** Start of qms1108a Report ******&lt;BR /&gt;     Start time: 14:27:1  7/18/2007&lt;BR /&gt;&lt;BR /&gt;Error Opening the /apps/qms/data/hnstest directory&lt;BR /&gt;stat() error on /apps/qms/data/hnstest: No such file or directory&lt;BR /&gt;&lt;BR /&gt;qms1108a STOPPED&lt;BR /&gt;&lt;BR /&gt;     End time: 14:28:6  7/18/2007&lt;BR /&gt;****** End of qms1108a Report ******&lt;BR /&gt;****** Start of qms1108a Report ******&lt;BR /&gt;     Start time: 14:34:32  7/18/2007&lt;BR /&gt;&lt;BR /&gt;Error Opening the /apps/qms/data/hnstest directory&lt;BR /&gt;stat() error on /apps/qms/data/hnstest: Permission denied&lt;BR /&gt;&lt;BR /&gt;qms1108a STOPPED&lt;BR /&gt;&lt;BR /&gt;     End time: 14:34:32  7/18/2007&lt;BR /&gt;****** End of qms1108a Report ******&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, when the actual crash happened, no data was logged.&lt;BR /&gt;&lt;BR /&gt;****** Start of qms1108a Report ******&lt;BR /&gt;     Start time: 11:31:19  7/23/2007&lt;BR /&gt;&lt;BR /&gt;Error opening the /apps/qms/data/hnstest directory&lt;BR /&gt;&lt;BR /&gt;qms1108a STOPPED&lt;BR /&gt;&lt;BR /&gt;     End time: 11:31:19  7/23/2007&lt;BR /&gt;****** End of qms1108a Report ******&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 10:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043800#M94218</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-26T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043801#M94219</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;==============================================================&lt;BR /&gt;Here is the actual code with opendir() and closedir(). Are they properly matched? &lt;BR /&gt;==============================================================&lt;BR /&gt;&lt;BR /&gt; if ((dirp = opendir(path)) == NULL)&lt;BR /&gt;  {&lt;BR /&gt;    while (dirp == NULL &amp;amp;&amp;amp; sleep_count &amp;lt; 5)&lt;BR /&gt;    {&lt;BR /&gt;       fprintf(log_file,"OPENDIR error:%s, sleep count %d, sleep interval %d\n", strerror(errno), sleep_count, sleep_seconds);&lt;BR /&gt;       fflush(log_file);&lt;BR /&gt;       sleep(sleep_seconds);&lt;BR /&gt;       dirp = opendir(path);&lt;BR /&gt;       sleep_count++;&lt;BR /&gt;       if (sleep_seconds &amp;lt; 5)&lt;BR /&gt;       {&lt;BR /&gt;          sleep_seconds++;&lt;BR /&gt;       }&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    if (dirp == NULL)&lt;BR /&gt;    {&lt;BR /&gt;       fprintf(log_file,"Error opening the %s directory\n", path);&lt;BR /&gt;       fprintf(log_file, "stat() error on %s: %s\n", path,&lt;BR /&gt;           strerror(errno));&lt;BR /&gt;       fflush(log_file);&lt;BR /&gt;       return(-1);&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;  while ((dp = readdir(dirp)) != NULL)&lt;BR /&gt;  {&lt;BR /&gt;    if (dp-&amp;gt;d_name[0] != '.')&lt;BR /&gt;    {&lt;BR /&gt;      sprintf(infile, "%s/%s", path, dp-&amp;gt;d_name);&lt;BR /&gt;      ret_stat = stat(infile, &amp;amp;filstat_ret);&lt;BR /&gt;      if (ret_stat &amp;gt;= 0) &lt;BR /&gt;      {&lt;BR /&gt;        strcpy(filstat_buf[file_count].filename,dp-&amp;gt;d_name);&lt;BR /&gt;        filstat_buf[file_count].lmodt = filstat_ret.st_mtime;&lt;BR /&gt;        file_count++;&lt;BR /&gt;      }&lt;BR /&gt;      else&lt;BR /&gt;        return(-1);&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;&lt;BR /&gt;  filstat_buf[file_count].filename[0] = '\0';&lt;BR /&gt;  j = file_count;&lt;BR /&gt;&lt;BR /&gt;  for (i=0; i &amp;lt; j; i++)&lt;BR /&gt;  {&lt;BR /&gt;    for (k=0; k &amp;lt; j-i-1; k++)&lt;BR /&gt;    {&lt;BR /&gt;      if (filstat_buf[k].lmodt &amp;gt; filstat_buf[k+1].lmodt)&lt;BR /&gt;      {&lt;BR /&gt;        strcpy(filstat_tmp.filename,filstat_buf[k].filename);&lt;BR /&gt;        filstat_tmp.lmodt = filstat_buf[k].lmodt;&lt;BR /&gt;        strcpy(filstat_buf[k].filename,filstat_buf[k+1].filename);&lt;BR /&gt;        filstat_buf[k].lmodt = filstat_buf[k+1].lmodt;&lt;BR /&gt;        strcpy(filstat_buf[k+1].filename,filstat_tmp.filename);&lt;BR /&gt;        filstat_buf[k+1].lmodt = filstat_tmp.lmodt;&lt;BR /&gt;      }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;  closedir(dirp);&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 10:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043801#M94219</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-26T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043802#M94220</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;In reflection of the additional information, I  would take the following steps:&lt;BR /&gt;&lt;BR /&gt;1) Test the code on another system, see if the results are consistent.&lt;BR /&gt;2) Take a look at the general patch level of the system and consider bringing it up to July 2007 or the previous QPK.&lt;BR /&gt;&lt;BR /&gt;Is it possible to see a snip of the debug information to be sure its really an opendir  call its crashing on.&lt;BR /&gt;&lt;BR /&gt;Sorry there was no core dump, that would have made it easy. Are you sure core dumps are enabled on core dumps on the system in question?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 26 Jul 2007 11:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043802#M94220</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-07-26T11:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043803#M94221</link>
      <description>There's a lot I don't like about this coding style but I'm all but positive this is not a patching issue. It is vitally important that you capture errno immediately after a function/system call error because the next function/system call could also fail and by the time you actually output errno, it's actually an artifact of the wrong function.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 11:52:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043803#M94221</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-26T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043804#M94222</link>
      <description>&lt;!--!*#--&gt;Actually you would need two closedir() calls. One just before the return (-1) call and one right at the end (which exists). Else the current dir stream stays open and its malloc'ed memory remains in use and is not freed-up or returned. &lt;BR /&gt;&lt;BR /&gt;while ((dp = readdir(dirp)) != NULL)&lt;BR /&gt;{&lt;BR /&gt;    if (dp-&amp;gt;d_name[0] != '.')&lt;BR /&gt;    {&lt;BR /&gt;       .&lt;BR /&gt;       .&lt;BR /&gt;       .       &lt;BR /&gt;    } &lt;BR /&gt;    else&lt;BR /&gt;    {&lt;BR /&gt;       closedir(dirp);     /* need to add this one */&lt;BR /&gt;       return(-1);&lt;BR /&gt;    }&lt;BR /&gt;}</description>
      <pubDate>Thu, 26 Jul 2007 14:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043804#M94222</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-26T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043805#M94223</link>
      <description>The change was incorporated but the problem still persists. &lt;BR /&gt;&lt;BR /&gt;There are a few places in the script where this was necessary, I need to confirm that they all were addressed.&lt;BR /&gt;&lt;BR /&gt;Still unable to capture the error code.&lt;BR /&gt;&lt;BR /&gt;Need to monitor memory usage for specific processes without glance.</description>
      <pubDate>Fri, 27 Jul 2007 13:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043805#M94223</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-27T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043806#M94224</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;In the absence of 'glance' (the best tool!) you could craft a simple script to monitor the virtual size of a process thusly:&lt;BR /&gt;&lt;BR /&gt;# cat ./watch&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset WHO=$1&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;   { date; UNIX95= ps -C ${WHO} -o comm= -o vsz= ;}|xargs&lt;BR /&gt;   sleep 30&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;...run as :&lt;BR /&gt;&lt;BR /&gt;# ./watch processname&lt;BR /&gt;&lt;BR /&gt;If I were to monitor 'init' you would see output like:&lt;BR /&gt;&lt;BR /&gt;Fri Jul 27 15:26:29 EDT 2007 init 344&lt;BR /&gt;Fri Jul 27 15:26:59 EDT 2007 init 344&lt;BR /&gt;&lt;BR /&gt;See the manpages for 'ps'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 27 Jul 2007 14:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043806#M94224</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-27T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043807#M94225</link>
      <description>Could you attach the code instead of pasting it so that it can be looked at. Merely reiterating what has already been said by Clay...check for errors after each and every system/lib call.</description>
      <pubDate>Fri, 27 Jul 2007 14:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043807#M94225</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-27T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: ProC programs crash on 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043808#M94226</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;When running the UNIX95 command to monitor the memory usage of a process, what do the first two fields (numbers) on the line mean?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; UNIX95= ps -e -o vsz -o pid -o args | sort -k1nr&lt;BR /&gt;&lt;BR /&gt;15564 14395 /apps/qms/bin/qms1108a /bin/ON1108 /apps/qms/fims/upload /data/hnstest&lt;BR /&gt;^^^^^ ^^^^^&lt;BR /&gt;1860  14016 /apps/qms/bin/qms1108wrc /bin/ON1108wrc /data/hnswrc&lt;BR /&gt;1256  925 sh /apps/qms/bin/qms1109_IRU.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2007 08:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proc-programs-crash-on-11-23/m-p/4043808#M94226</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2007-07-30T08:59:12Z</dc:date>
    </item>
  </channel>
</rss>

