<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Why Does The Segmentation Fault Occur on Linux / UNIX Systems?</title>
	<atom:link href="http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Sat, 20 Mar 2010 00:34:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: satya</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-152678</link>
		<dc:creator>satya</dc:creator>
		<pubDate>Sat, 02 Jan 2010 10:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-152678</guid>
		<description>hiii ........my program works fine in turboc2 but it gives segmentation fualt in linux through putty.........what should i do</description>
		<content:encoded><![CDATA[<p>hiii &#8230;&#8230;..my program works fine in turboc2 but it gives segmentation fualt in linux through putty&#8230;&#8230;&#8230;what should i do</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mannex</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-151956</link>
		<dc:creator>mannex</dc:creator>
		<pubDate>Mon, 30 Nov 2009 18:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-151956</guid>
		<description>I&#039;m having a strange behavior with an application, it segfaulted before every time while running it after the first error which happened after I closed it (after first use)
But then I by accident missed the - while trying to run it in debugging mode. So it kinda looks like this &quot;./nameapp d&quot; and that puzzles me, any insight or guess what is going on there? What difference does that make?

Cause after doing this it suddently worked again without error where as it segfaulted every single time before that. Could be random behaviour but others with the same problem seem to say it fixed it for them too.</description>
		<content:encoded><![CDATA[<p>I&#8217;m having a strange behavior with an application, it segfaulted before every time while running it after the first error which happened after I closed it (after first use)<br />
But then I by accident missed the &#8211; while trying to run it in debugging mode. So it kinda looks like this &#8220;./nameapp d&#8221; and that puzzles me, any insight or guess what is going on there? What difference does that make?</p>
<p>Cause after doing this it suddently worked again without error where as it segfaulted every single time before that. Could be random behaviour but others with the same problem seem to say it fixed it for them too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruwinda Fernando</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-151699</link>
		<dc:creator>Ruwinda Fernando</dc:creator>
		<pubDate>Sun, 15 Nov 2009 15:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-151699</guid>
		<description>Invoking &quot;ps gave me &quot;segmentation fault&quot;. Managed to got rid-off the problem by upgrading &quot;procps&quot;.
More info &lt;a href=&quot;http://nixtaste.wordpress.com/2009/11/15/signal-11-caught-by-ps-segmentation-fault/&quot; rel=&quot;nofollow&quot;&gt;nixtaste&lt;/a&gt;

Good Luck !!</description>
		<content:encoded><![CDATA[<p>Invoking &#8220;ps gave me &#8220;segmentation fault&#8221;. Managed to got rid-off the problem by upgrading &#8220;procps&#8221;.<br />
More info <a href="http://nixtaste.wordpress.com/2009/11/15/signal-11-caught-by-ps-segmentation-fault/" rel="nofollow">nixtaste</a></p>
<p>Good Luck !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anup</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-149593</link>
		<dc:creator>Anup</dc:creator>
		<pubDate>Mon, 20 Jul 2009 13:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-149593</guid>
		<description>Segmentation Fault may also occur if disk is running out of free space!</description>
		<content:encoded><![CDATA[<p>Segmentation Fault may also occur if disk is running out of free space!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix Mwango Mutale</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-148113</link>
		<dc:creator>Felix Mwango Mutale</dc:creator>
		<pubDate>Tue, 14 Apr 2009 08:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-148113</guid>
		<description>Hello All Forum members,

I am in dire need of help please. Can some one help me solve this segmentation problem ?

I have part of the code like this. I have tried to put displays around to track down the flow as follows:

  LET GetInput = TRUE
  WHILE GetInput
       display &quot; Inside infield manno 1 &quot;
       display &quot;GetInput  =  &quot;, GetInput
       sleep 5
    INPUT w_manno,
          w_surname
      WITHOUT DEFAULTS
     FROM manno,
          surname

    AFTER FIELD manno
       display &quot; Inside infield manno 2 &quot;
       sleep 5
      IF  w_manno  &quot; &quot;
      AND w_manno IS NOT NULL
      THEN
        SELECT COUNT(*)
          INTO w_cnt

The second display is not coming. I can&#039;t put a display just after the INPUT command or as I am getting a syntax error.

I have also tried the following:

  LET GetInput = TRUE
  WHILE GetInput
       display &quot; Inside infield manno 1 &quot;
       display &quot;GetInput  =  &quot;, GetInput
       sleep 5
    INPUT BY NAME manno,
          surname
      WITHOUT DEFAULTS

But still I don&#039;t seem to get what is going on. How  do control the cursor to placed in the input field ?

Thanking you in advance.


Felix Mwango Mutale</description>
		<content:encoded><![CDATA[<p>Hello All Forum members,</p>
<p>I am in dire need of help please. Can some one help me solve this segmentation problem ?</p>
<p>I have part of the code like this. I have tried to put displays around to track down the flow as follows:</p>
<p>  LET GetInput = TRUE<br />
  WHILE GetInput<br />
       display &#8221; Inside infield manno 1 &#8221;<br />
       display &#8220;GetInput  =  &#8220;, GetInput<br />
       sleep 5<br />
    INPUT w_manno,<br />
          w_surname<br />
      WITHOUT DEFAULTS<br />
     FROM manno,<br />
          surname</p>
<p>    AFTER FIELD manno<br />
       display &#8221; Inside infield manno 2 &#8221;<br />
       sleep 5<br />
      IF  w_manno  &#8221; &#8221;<br />
      AND w_manno IS NOT NULL<br />
      THEN<br />
        SELECT COUNT(*)<br />
          INTO w_cnt</p>
<p>The second display is not coming. I can&#8217;t put a display just after the INPUT command or as I am getting a syntax error.</p>
<p>I have also tried the following:</p>
<p>  LET GetInput = TRUE<br />
  WHILE GetInput<br />
       display &#8221; Inside infield manno 1 &#8221;<br />
       display &#8220;GetInput  =  &#8220;, GetInput<br />
       sleep 5<br />
    INPUT BY NAME manno,<br />
          surname<br />
      WITHOUT DEFAULTS</p>
<p>But still I don&#8217;t seem to get what is going on. How  do control the cursor to placed in the input field ?</p>
<p>Thanking you in advance.</p>
<p>Felix Mwango Mutale</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthonus de Silva</title>
		<link>http://www.cyberciti.biz/tips/segmentation-fault-on-linux-unix.html#comment-147982</link>
		<dc:creator>Anthonus de Silva</dc:creator>
		<pubDate>Sat, 04 Apr 2009 16:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/?p=2891#comment-147982</guid>
		<description>Suddenly my software started giving a Segmentation Fault.

Language C, O/S: Linux.

Following is a (pseudo) code snippet:

1. x=strtok(y,&quot;:&quot;);
2. if(strlen(x)&gt;0) { do_something; }

Line 2 would cause a Seg Fault. I would guess it should at least give me a false result.

Hence I changed the code to:

2. if(x != NULL) if(strlen(x) &gt; 0) { do_something; }

Note: you cant do if(x != NULL &amp;&amp; strlen(x) &gt; 0) as the strlen woud cause a SegFault (GP fault in Windows, i guess).

Regards.</description>
		<content:encoded><![CDATA[<p>Suddenly my software started giving a Segmentation Fault.</p>
<p>Language C, O/S: Linux.</p>
<p>Following is a (pseudo) code snippet:</p>
<p>1. x=strtok(y,&#8221;:&#8221;);<br />
2. if(strlen(x)&gt;0) { do_something; }</p>
<p>Line 2 would cause a Seg Fault. I would guess it should at least give me a false result.</p>
<p>Hence I changed the code to:</p>
<p>2. if(x != NULL) if(strlen(x) &gt; 0) { do_something; }</p>
<p>Note: you cant do if(x != NULL &amp;&amp; strlen(x) &gt; 0) as the strlen woud cause a SegFault (GP fault in Windows, i guess).</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.173 seconds -->
<!-- Cached page served by WP-Cache -->
