• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Segmentation fault in apache

Started by TigerClaw,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TigerClawTopic starter

Hello,

I noticed this error in my apache error_log file:

[Sat Sep 27 00:49:31.327342 2014] [core:notice] [pid 3307] AH00052: child pid 1924 exit signal Segmentation fault (11)

Repeating 5 times per minute.

Phpvibe is the only PHP application running on the server.

I have this notice both in my old and new server (Centos 7) running:

PHP 5.4.16 (cli) (built: Aug  6 2014 13:12:28)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.

Server version: Apache/2.4.6 (CentOS)
Server built:   Jul 23 2014 14:48:00

I tried to play with the memory limit of php.ini without any luck.

Does somebody have the same problem as me?
  •  

TigerClawTopic starter

it seems to be related to ioncube but the version I'm using is the correct one for my php version

zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so
zend_extension_ts=/usr/local/ioncube/ioncube_loader_lin_5.4_ts.so
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

TigerClawTopic starter

Hello Mario, so you don't have any previous occurrence of this issue?

The stackoverflow thread is the same I was following trying to pin down the problem. I'll see if I can get some more info
  •  

Marius P.

Quote from: TigerClaw on
Hello Mario, so you don't have any previous occurrence of this issue?

Hi, not to us or clients, first time I see this. May be cause of some setup issue in the server?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

TigerClawTopic starter

I think I'm on the right way:

https://plus.google.com/+ArtemRussakovskii/posts/2jtx4HBFz1d

"Apache 2.4.6 with PHP 5.4 actually Seg Faults (crashes) on our production machines when there's empty space behind the closing php tag. I just wasted hours until I finally narrowed down the bug with strace."

I think somewhere there is an empty space, that most probably I left beyond when I was modifying the code.
  •  

TigerClawTopic starter

Ok so I'm 90% sure the page that crash is the 404.php. Checking the logs, when a new 404 page url is created for the first time the related apache PID segfault. Following reloads have no effects due to, I guess, the cache.

Could you please let me know if you see something strange in the following code?

<?php  the_header();
header("HTTP/1.0 404 Not Found");
the_sidebar();
?>
<div class="error-info main-holder pad-holder span8 nomargin top10">
<h3><?php echo _lang("404"); ?></h3>
<h4><?php echo _lang("oops! page not found"); ?></h4>
<a class="button-center" href="<?php echo site_url(); ?>"><?php echo _lang("Back to home"); ?></a>
</div>
<?php  the_footer(); ?>
  •  

Marius P.

Is there an empty space after the last ?> (following that post)


you know you can test with an empty one, just to see if the fault is there :)
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)