<?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: LINUX: segfault error 4 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173584#M50713</link>
    <description>Hi MK,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information regarding segfault.&lt;BR /&gt;I have already fowarded your recommendation to our developer and they will try to look to the issue of "pointer" being a bug on the're application.&lt;BR /&gt;&lt;BR /&gt;Currently, this are my ulimit values:&lt;BR /&gt;&lt;BR /&gt;core file size          (blocks, -c) 0&lt;BR /&gt;data seg size           (kbytes, -d) unlimited&lt;BR /&gt;file size               (blocks, -f) unlimited&lt;BR /&gt;pending signals                 (-i) 1024&lt;BR /&gt;max locked memory       (kbytes, -l) 32&lt;BR /&gt;max memory size         (kbytes, -m) unlimited&lt;BR /&gt;open files                      (-n) 1024&lt;BR /&gt;pipe size            (512 bytes, -p) 8&lt;BR /&gt;POSIX message queues     (bytes, -q) 819200&lt;BR /&gt;stack size              (kbytes, -s) 10240&lt;BR /&gt;cpu time               (seconds, -t) unlimited&lt;BR /&gt;max user processes              (-u) 137215&lt;BR /&gt;virtual memory          (kbytes, -v) unlimited&lt;BR /&gt;file locks                      (-x) unlimited&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Actually, we have already tried ulimit -c 1000 to be included on .bash_profile of the account that runs the program.&lt;BR /&gt;&lt;BR /&gt;Action points:&lt;BR /&gt;&lt;BR /&gt;1.) Run the debug mode on program&lt;BR /&gt;2.) Since there are two application running on the same time, we will try to run 1 application only at a time. These might the issue on "locking" you mentioned.&lt;BR /&gt;3.) How can we use gdb?&lt;BR /&gt;&lt;BR /&gt;Another question though, is adjusting some kernel parameters on OS side will somehow help?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
    <pubDate>Thu, 07 May 2009 00:14:27 GMT</pubDate>
    <dc:creator>Jojo Castro</dc:creator>
    <dc:date>2009-05-07T00:14:27Z</dc:date>
    <item>
      <title>LINUX: segfault error 4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173582#M50711</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am currently checking the problem with our application developer. Apparently, theire application always stopped after every two hours running in the background. The process is being submitted in the background via fork. When I check the messages log, i found out this:&lt;BR /&gt;&lt;BR /&gt;May  5 05:39:34 URM01 kernel: logging_app[17789]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe460 error 4&lt;BR /&gt;May  6 07:14:43 URM01 kernel: logging_app[10965]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 07:14:43 URM01 kernel: logging_app[10964]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 10:00:46 URM01 kernel: logging_app[12754]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe420 error 4&lt;BR /&gt;May  6 13:17:46 URM01 kernel: logging_app[16639]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 13:18:10 URM01 kernel: logging_app[16638]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 16:14:44 URM01 kernel: logging_app[18255]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 16:14:53 URM01 kernel: logging_app[18256]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 19:11:16 URM01 kernel: logging_app[10646]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;May  6 19:11:23 URM01 kernel: logging_app[10648]: segfault at 0000000000000000 rip 0000003bb7861dd1 rsp 0000007fbfffe430 error 4&lt;BR /&gt;&lt;BR /&gt;Basically, I already look at google and check the meaning of segfault 4 and somebody told that it has something to do with SELINUX.&lt;BR /&gt;&lt;BR /&gt;Here are my queries:&lt;BR /&gt;1.) Can someone tell me what does the exact error means (segfault)&lt;BR /&gt;2.) Strange that application always stopped every two hours that corresponds to the segfault error time being logged in messages&lt;BR /&gt;3.) PLEASE PLEASE PLEASE give us resolution to this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Wed, 06 May 2009 11:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173582#M50711</guid>
      <dc:creator>Jojo Castro</dc:creator>
      <dc:date>2009-05-06T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: LINUX: segfault error 4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173583#M50712</link>
      <description>1.) Segfault = segmentation fault = the application is trying to access a memory area that belongs to the OS or some other program. The memory management unit in the CPU stops the operation and triggers an exception. The standard segfault exception handler in the kernel kills the program.&lt;BR /&gt;&lt;BR /&gt;As the message is "segfault at 0000000000000000", I'd guess the program probably tried to use an uninitialized pointer, which has a value NULL. It is very likely that your application has a fairly serious bug in it.&lt;BR /&gt;&lt;BR /&gt;The "rip" value is the Instruction Pointer: the program location the CPU was running at the time of the error. It seems it is always exactly the same, so the error is repeatable - that is good.&lt;BR /&gt;&lt;BR /&gt;The "rsp" is the Stack Pointer. Its value seems to vary just a little. If your developer is good, s/he will know whether this is important or not.&lt;BR /&gt;&lt;BR /&gt;2.) Not strange at all. After receiving a segfault, the program cannot continue.&lt;BR /&gt;&lt;BR /&gt;3.) Without having the program source code, this is impossible. Your application developer will have to fix it him/herself.&lt;BR /&gt;&lt;BR /&gt;However, there are some things you can do:&lt;BR /&gt;&lt;BR /&gt;If possible, have your application developer produce a version of the application that includes debug information. If the application is compiled using gcc, this is as simple as adding the "-g" option to the compilation commands. &lt;BR /&gt;&lt;BR /&gt;Before starting the application, run "ulimit -c unlimited". This allows the segfault handler to produce a core dump file when the segfault handler is triggered. This file contains all the memory used by the application, so it might be very big.&lt;BR /&gt;&lt;BR /&gt;Then your application developer needs to run a debugger program on the application and the core file. If the application was compiled with debug information, the debugger can identify exactly on what line of the source code the error happened. The developer can also use the debugger to examine the values of any variables at the time of the error. The debugger has many other features which might be useful too. If your developer does not know how to use a debugger, he/she should definitely learn it.&lt;BR /&gt;&lt;BR /&gt;For Linux, the most common debugger program is named "gdb" and it is available in most Linux distributions. It is usually in the "development tools" category of the distribution's package collection.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 06 May 2009 12:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173583#M50712</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-06T12:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: LINUX: segfault error 4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173584#M50713</link>
      <description>Hi MK,&lt;BR /&gt;&lt;BR /&gt;Thanks for the information regarding segfault.&lt;BR /&gt;I have already fowarded your recommendation to our developer and they will try to look to the issue of "pointer" being a bug on the're application.&lt;BR /&gt;&lt;BR /&gt;Currently, this are my ulimit values:&lt;BR /&gt;&lt;BR /&gt;core file size          (blocks, -c) 0&lt;BR /&gt;data seg size           (kbytes, -d) unlimited&lt;BR /&gt;file size               (blocks, -f) unlimited&lt;BR /&gt;pending signals                 (-i) 1024&lt;BR /&gt;max locked memory       (kbytes, -l) 32&lt;BR /&gt;max memory size         (kbytes, -m) unlimited&lt;BR /&gt;open files                      (-n) 1024&lt;BR /&gt;pipe size            (512 bytes, -p) 8&lt;BR /&gt;POSIX message queues     (bytes, -q) 819200&lt;BR /&gt;stack size              (kbytes, -s) 10240&lt;BR /&gt;cpu time               (seconds, -t) unlimited&lt;BR /&gt;max user processes              (-u) 137215&lt;BR /&gt;virtual memory          (kbytes, -v) unlimited&lt;BR /&gt;file locks                      (-x) unlimited&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Actually, we have already tried ulimit -c 1000 to be included on .bash_profile of the account that runs the program.&lt;BR /&gt;&lt;BR /&gt;Action points:&lt;BR /&gt;&lt;BR /&gt;1.) Run the debug mode on program&lt;BR /&gt;2.) Since there are two application running on the same time, we will try to run 1 application only at a time. These might the issue on "locking" you mentioned.&lt;BR /&gt;3.) How can we use gdb?&lt;BR /&gt;&lt;BR /&gt;Another question though, is adjusting some kernel parameters on OS side will somehow help?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 07 May 2009 00:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173584#M50713</guid>
      <dc:creator>Jojo Castro</dc:creator>
      <dc:date>2009-05-07T00:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: LINUX: segfault error 4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173585#M50714</link>
      <description>btw, here is also the finding from metalink as our dba also open a case for this...&lt;BR /&gt;&lt;BR /&gt;KERNEL PARAMETER&lt;BR /&gt;--------------------------------&lt;BR /&gt;semmsl 250 / 250 / OK&lt;BR /&gt;semmns 32000 / 32000 / OK&lt;BR /&gt;semopm 100 / 32 / ----&amp;gt; TO LOW&lt;BR /&gt;semmni 128 / 128 / OK &lt;BR /&gt;--&amp;gt; kernel.sem = 250 32000 32 128&lt;BR /&gt;&lt;BR /&gt;shmall 2097152 / 2097152 / OK&lt;BR /&gt;shmmax - / 33554432 / OK&lt;BR /&gt;shmmni 4096 / 4096 / OK&lt;BR /&gt;file-max 65536 &lt;BR /&gt;ip_local_port_range 1024 - 65000 / 32768 - 61000 / OK&lt;BR /&gt;rmem_default 262144 / 135168 ----&amp;gt; TO LOW&lt;BR /&gt;rmem_max 262144 / 135168 ----&amp;gt; TO LOW&lt;BR /&gt;wmem_default 262144 / 135168 ----&amp;gt; TO LOW&lt;BR /&gt;wmem_max 262144 / 135168 ----&amp;gt; TO LOW&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;SEMOPM&lt;BR /&gt;-------------&lt;BR /&gt;The SEMOPM kernel parameter is used to control the number of semaphore operations that can be perfo&lt;BR /&gt;rmed per semop system call.&lt;BR /&gt;&lt;BR /&gt;The semop system call (function) provides the ability to do operations for multiple semaphores with one semop system call. A se&lt;BR /&gt;maphore set can have the maximum number of SEMMSL semaphores per semaphore set a&lt;BR /&gt;nd is therefore recommended to set SEMOPM equal to SEMMSL.&lt;BR /&gt;&lt;BR /&gt;Oracle recommends setting the SEMOPM to a value of no less than 100. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ACTION PLAN&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;1. following kernel parameters on the system where Client 10.2.0.1 is used to run application &lt;BR /&gt;must be increased like following. After that, machine has to be rebootet - see&lt;BR /&gt;&lt;BR /&gt;OracleÂ® Database Installation Guide&lt;BR /&gt;10g Release 2 (10.2) for Linux x86-64&lt;BR /&gt;Part Number B15667-03&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#BABCHAED" target="_blank"&gt;http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#BABCHAED&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;semopm 100 &lt;BR /&gt;rmem_default 262144 &lt;BR /&gt;rmem_max 262144 &lt;BR /&gt;wmem_default 262144 &lt;BR /&gt;wmem_max 262144 &lt;BR /&gt;---------------------------------&lt;BR /&gt;&lt;BR /&gt;2. Oracle does NOT support user-generated makefiles - only shipped ones contained in&lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/precomp/demo/proc &lt;BR /&gt;$ORACLE_HOME/precomp/lib/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 May 2009 00:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173585#M50714</guid>
      <dc:creator>Jojo Castro</dc:creator>
      <dc:date>2009-05-07T00:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: LINUX: segfault error 4</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173586#M50715</link>
      <description>Hi MK,&lt;BR /&gt;&lt;BR /&gt;Just to give you an update, we found out that the application is hugging so many files thus hitting 1024 number of open files limit. &lt;BR /&gt;Our application developer is now looking at the application part were looping is currently happening.&lt;BR /&gt;&lt;BR /&gt;Thanks again for the info!</description>
      <pubDate>Thu, 07 May 2009 04:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-segfault-error-4/m-p/5173586#M50715</guid>
      <dc:creator>Jojo Castro</dc:creator>
      <dc:date>2009-05-07T04:38:16Z</dc:date>
    </item>
  </channel>
</rss>

