<?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: Segmentation fault Error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095540#M92332</link>
    <description>Hi Sridhar,&lt;BR /&gt;The basic problem is that you have a bug in your program, which is causing the segmentation fault, leading to a core dump.&lt;BR /&gt;&lt;BR /&gt;You will need to find out where in the code this is happening (and the information Dennis has given is the first steps towards this), and fix it.&lt;BR /&gt;&lt;BR /&gt;Is it your program, or a third party application?  Are there any errors given by the compiler, or by lint?  Are you compiling with '-g' argument to your compiler (g++), as Dennis asks?  Without that, you won't see symbols in the debugger, so will not find it easy to find where the code is failing.  Another strategy is to put in trace statements, typically printf(), so you know how far the program gets before failing.&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;&lt;BR /&gt;(C joke; what's the difference between g++ and -g?  2g+1.)</description>
    <pubDate>Fri, 02 Nov 2007 07:33:34 GMT</pubDate>
    <dc:creator>Andrew Merritt_2</dc:creator>
    <dc:date>2007-11-02T07:33:34Z</dc:date>
    <item>
      <title>Segmentation fault Error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095536#M92328</link>
      <description>We are running a programm in HP UNIX 11i. It is giving the following error message. Please give the solution for this.&lt;BR /&gt;&lt;BR /&gt;sastra 18: ulimit -a&lt;BR /&gt;time(seconds)        unlimited&lt;BR /&gt;file(blocks)         unlimited&lt;BR /&gt;data(kbytes)         1048576&lt;BR /&gt;stack(kbytes)        131072&lt;BR /&gt;memory(kbytes)       unlimited&lt;BR /&gt;coredump(blocks)     unlimited&lt;BR /&gt;nofiles(descriptors) 60&lt;BR /&gt;sastra 19: autodock4 -p ata.dpf -l ata.dlg&lt;BR /&gt;Segmentation fault (core dumped)&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2007 01:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095536#M92328</guid>
      <dc:creator>Sridhar SASTRA</dc:creator>
      <dc:date>2007-11-01T01:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault Error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095537#M92329</link>
      <description>You need to make sure you have the latest gdb and get a stack trace:&lt;BR /&gt;$ gdb autodock4 core&lt;BR /&gt;(gdb) bt&lt;BR /&gt;(gdb) q&lt;BR /&gt;&lt;BR /&gt;Of course it would help if autodock 4 was compiled with -g.</description>
      <pubDate>Thu, 01 Nov 2007 01:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095537#M92329</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-01T01:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault Error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095538#M92330</link>
      <description>Yes autodock4 was compiled with with g++ and we are getting this message after this.&lt;BR /&gt;&lt;BR /&gt;sastra 17: gdb autodock4 core&lt;BR /&gt;HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.&lt;BR /&gt;Copyright 1986 - 2001 Free Software Foundation, Inc.&lt;BR /&gt;Hewlett-Packard Wildebeest 3.0 (based on GDB) is covered by the&lt;BR /&gt;GNU General Public License. Type "show copying" to see the conditions to&lt;BR /&gt;change it and/or distribute copies. Type "show warranty" for warranty/support.&lt;BR /&gt;..&lt;BR /&gt;Detected 64-bit executable.&lt;BR /&gt;Invoking /opt/langtools/bin/gdb64.&lt;BR /&gt;Use "run" to continue execution.&lt;BR /&gt;(gdb) run&lt;BR /&gt;Starting program: /wisconsin/savani/biotool/autodocksuite-4.0.1/src/autodock-4.0&lt;BR /&gt;.1/autodock4&lt;BR /&gt;warning: Unable to find __d_pid symbol in object file.&lt;BR /&gt;warning: Suggest linking with /opt/langtools/lib/end.o.&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;0x400000000000d990 in main ()</description>
      <pubDate>Thu, 01 Nov 2007 01:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095538#M92330</guid>
      <dc:creator>Sridhar SASTRA</dc:creator>
      <dc:date>2007-11-01T01:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault Error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095539#M92331</link>
      <description>&amp;gt;Yes autodock4 was compiled with with g++&lt;BR /&gt;&lt;BR /&gt;Did you compile with -g for debug info?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;sastra 17: gdb autodock4 core&lt;BR /&gt;HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.&lt;BR /&gt;&lt;BR /&gt;The latest is 5.7.  Download it from:&lt;BR /&gt;&lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;http://www.hp.com/go/wdb&lt;/A&gt;</description>
      <pubDate>Thu, 01 Nov 2007 01:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095539#M92331</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-01T01:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation fault Error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095540#M92332</link>
      <description>Hi Sridhar,&lt;BR /&gt;The basic problem is that you have a bug in your program, which is causing the segmentation fault, leading to a core dump.&lt;BR /&gt;&lt;BR /&gt;You will need to find out where in the code this is happening (and the information Dennis has given is the first steps towards this), and fix it.&lt;BR /&gt;&lt;BR /&gt;Is it your program, or a third party application?  Are there any errors given by the compiler, or by lint?  Are you compiling with '-g' argument to your compiler (g++), as Dennis asks?  Without that, you won't see symbols in the debugger, so will not find it easy to find where the code is failing.  Another strategy is to put in trace statements, typically printf(), so you know how far the program gets before failing.&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;&lt;BR /&gt;(C joke; what's the difference between g++ and -g?  2g+1.)</description>
      <pubDate>Fri, 02 Nov 2007 07:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/segmentation-fault-error/m-p/4095540#M92332</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2007-11-02T07:33:34Z</dc:date>
    </item>
  </channel>
</rss>

