Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP stops page unexpectedly after executing some lines, segfaults
    primarykey
    data
    text
    <p><strong>PHP Version</strong> = 5.3, <strong>OS</strong> = CentOS 6, <strong>Provider</strong> = Rackspace, <strong>Type</strong> = Cloud</p> <hr> <h1>QUESTION</h1> <p>So I have a php page naming <code>page_two.php</code> of 195 lines. I call this page from <code>page_one.php</code> in the following way:</p> <pre><code>if(result=='success') { var params = 'top=0, left=0'; params += ', width='+screen.width+', height='+screen.height+',statusbar=no,toolbar=no, location=no,directories=no,menubar=no,resizable=no'; params += ', scrollbars=yes, status=no, fullscreen=yes, titlebar=no'; newwin=window.open("page_two.php","_blank",params); if (window.focus) {newwin.focus()} return false; } </code></pre> <p>The above codes opens the php page in a new popup like window.</p> <p>Now this page works fine on my local system with no error, also works on my shared godaddy server. Recently I brought a Rackspace cloud server and uploaded the same file onto it. However I also installed things like <strong>Memcached, memcache + libevent, and eAccelaretor</strong>.</p> <p>My whole website is working fine. The only problem I am facing is the page stops executing after a specific line on this cloud server.</p> <p>So I have the following code block that opens the connection and establishes the session through <code>config.php</code> page:</p> <pre><code>&lt;?php include("../config.php"); if(!isset($_SESSION['my_code'])){header('Location:index.php');} ?&gt; </code></pre> <p>Then I have whole lot of html code with CSS javascript and external files (css and js only).</p> <p>I am doing an echo from session on <code>LINE 111</code>:-</p> <pre><code>&lt;?php echo $_SESSION['my_code']; ?&gt; </code></pre> <p>And the above ecoz the code with no problem.</p> <p>Then I have another echo on line number <code>175</code></p> <pre><code>&lt;?php echo $_SESSION['getText1']; ?&gt; </code></pre> <p>But after coming to this line of code page stops and no further code (html and php both) displays.</p> <p>And that I can see from source code in Mozilla and Chrome that all lines till <code>LINE 174</code> is loaded which I can see in Mozilla, however on Google chrome i am unable to see anything in front end but in mozilla i can see the html part in front end till 174 line number.</p> <p>So I have done an extensive search on internet but nothing I could be able to find yet. The main doubt which I have is, Is it a server related error or misconfiguration or maybe I have to do a php update or maybe there is some php stuff that I need to change. I am actually clueless, its programming or server.</p> <p>What i can assure is that its not the <strong>popup</strong> problem as it also wont work when I directly navigate to that page.</p> <p>Does anyone faced this kind of issue. I have been with PHP since 6 years now and this is the first time I am finding such problem, however I am new to cloud servers, so I may have done some mis-configuration there. Looking for your valuable comments.</p> <hr> <h1>PROGRESS 1</h1> <h2>Is it something related to memory stuff??</h2> <p><strong>I saw this <a href="http://academe.co.uk/2012/12/apache-segmentation-fault-11-related-to-memory/" rel="nofollow noreferrer">article</a> from Jason Judge but i am really clueless on what exactly needs to be done, this is a problem which exists for sure but there is no solution prescribed, atleast I am unable to find it. Can somebody look into this, because its really life threatening</strong></p> <p><strong>Also I feel its positively something related to APACHE or something to be done with memory or caching, because just PHP i really don't feel anything is wrong as it works fine with localhost and my Godaddy shared server, problem persists with the Rackspace cloud hosting only. What you guyz think what could be the possible issue that causing this problem?</strong></p> <p><strong>The thing is it just fails on <code>&lt;?php ?&gt;</code> script, so if I remove this line <code>&lt;?php echo $_SESSION['getText1']; ?&gt;</code> it fails on the next <code>&lt;?php ?&gt;</code> PHP code block</strong></p> <hr> <h1>EDITS</h1> <p><strong>EDIT 1:</strong></p> <p>No errors in php log file related to sessions</p> <p><strong>EDIT 2</strong></p> <p>When I check in Google chrome Console its hows me a red cross with the file like <code>http://myserver.com/page_two.php</code> with <code>page_two.php:1</code></p> <p>and when i click on the like it takes me to the chrome network tab and displays the following information for the file:</p> <p><img src="https://i.stack.imgur.com/9dMGm.png" alt="enter image description here"></p> <p>I have the following header information:</p> <pre> Request URL:http://mywebsite.comm/page_two.php Request Method:GET Status Code:200 OK Request Headersview source Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8,hi;q=0.6,en-GB;q=0.4 AlexaToolbar-ALX_NS_PH:AlexaToolbar/alxg-3.2 Cache-Control:max-age=0 Connection:keep-alive Cookie:PHPSESSID=i4oqva0ruaahg6gcmnsslc64e3 Host:mywebsite.com Referer:http://mywebsite.com/page_one.php User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 Response Headersview source Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection:close Content-Type:text/html; charset=UTF-8 Date:Mon, 16 Dec 2013 12:43:34 GMT Expires:Thu, 19 Nov 1981 08:52:00 GMT Pragma:no-cache Server:Apache/2.2.15 (CentOS) Transfer-Encoding:chunked X-Powered-By:PHP/5.3.3 </pre> <p><strong>EDIT 3 - After going through the php error logs I found this weird error message which really makes no sense to me of whats wrong happening</strong></p> <p><code>[Tue Dec 17 13:23:09 2013] [notice] child pid 19700 exit signal Segmentation fault (11)</code></p> <h3>WHEN I DO ECHO OF THESE SESSION ON PAGE TOP IT WORKS JUST FINE. ITS NOTHING TO DO WITH SESSION, AS WHEN I JUST SIMPLY ECHO "HI" STILL IT WONT ECHO IT AND PAGE STOPS EXECUTING THERE</h3>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload