<?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: Memory fault in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522531#M878192</link>
    <description>Hi&lt;BR /&gt;Two things come to mind -&lt;BR /&gt;&lt;BR /&gt;The environmental variables for root compared to the user and the programme itself.&lt;BR /&gt;&lt;BR /&gt;What memory is the programme using and also what is hapening to the users file system as it runs - also compare what happens when root runs it - it could be a premissions problem.&lt;BR /&gt;&lt;BR /&gt;I tend to find the users are lax in making their programmes cpu/memory and file size efficient, I would therefore get the user to look closly at their code and improve its efficiency before making any major changes to your system.&lt;BR /&gt;&lt;BR /&gt;Just a few ideas&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Apr 2001 08:32:27 GMT</pubDate>
    <dc:creator>Paula J Frazer-Campbell</dc:creator>
    <dc:date>2001-04-28T08:32:27Z</dc:date>
    <item>
      <title>Memory fault</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522530#M878191</link>
      <description>Currently, my user want to run a process (executable c program) but error (memory fault). Any idea why it happen ?? I can use root user to run it without problem. File system for the user is around 80 %. Could we give some memory allocation for particular user ?</description>
      <pubDate>Sat, 28 Apr 2001 04:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522530#M878191</guid>
      <dc:creator>Kenn Chen</dc:creator>
      <dc:date>2001-04-28T04:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Memory fault</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522531#M878192</link>
      <description>Hi&lt;BR /&gt;Two things come to mind -&lt;BR /&gt;&lt;BR /&gt;The environmental variables for root compared to the user and the programme itself.&lt;BR /&gt;&lt;BR /&gt;What memory is the programme using and also what is hapening to the users file system as it runs - also compare what happens when root runs it - it could be a premissions problem.&lt;BR /&gt;&lt;BR /&gt;I tend to find the users are lax in making their programmes cpu/memory and file size efficient, I would therefore get the user to look closly at their code and improve its efficiency before making any major changes to your system.&lt;BR /&gt;&lt;BR /&gt;Just a few ideas&lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Apr 2001 08:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522531#M878192</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-04-28T08:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memory fault</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522532#M878193</link>
      <description>This is difficult and a little more data would help. Do a ulimit -a as (I assume you are running the POSIX shell) this user and as root.&lt;BR /&gt;Are the data,stack, and memory ulimits different.&lt;BR /&gt;If you have the c source the debugger should indicate where the error is occuring and the value of errno. At the very least, can you get the exit status of the program.</description>
      <pubDate>Sat, 28 Apr 2001 20:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522532#M878193</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-04-28T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Memory fault</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522533#M878194</link>
      <description>After thinking about this for a few minutes I at least have a theory. It is very unusual for a process to fail with a memory fault when running as a regular user but not as root. It is quite common for a program to fail with an EPERM error however. I think that this is what is really happening. Consider this scenario:&lt;BR /&gt;The program attempts to allocate memory or return a pointer to some structure. I think this system call or library function is failing&lt;BR /&gt;and setting errno to EPERM when running as a regular user. The system call (or function) returns a NULL pointer when run by a regular user but the programmer uses the value without checking for a NULL result. Using a NULL pointer (or some other improper address) results in the memory fault. This is my best guess but it does explain the observed data.&lt;BR /&gt;Hope this helps ... Clay.&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Apr 2001 21:25:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-fault/m-p/2522533#M878194</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-04-28T21:25:59Z</dc:date>
    </item>
  </channel>
</rss>

