Nicolas
Nicolas

Reputation: 2814

Apache segfault by cakePHP website

Without any -apparent- reasons, one of my cakePHP websites (v1.3.11) has stopped working (showing a "no data received" page in chrome - error 324) but the other is still fine -for the moment at least-.

/var/log/apache2/error.log shows a [notice] child pid 8502 exit signal Segmentation fault (11)

and /var/log/messages shows kernel: [15482058.932226] apache2[8502]: segfault at 7fff7f14fb58 ip 7f1b9d886e55 sp 7fff7f14fb60 error 6 in libphp5.so[7f1b9d576000+588000]

Here's my php -v

PHP 5.2.6-1+lenny13 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul  1 2011 16:01:01)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

I absolutely have no idea on what heppened, so any idea is welcome.

EDIT:

It looks like the render() function in the /cake/libs/controller/controller.php is doing an infinite loop. Any ideas why this is happening? (it's happening on all the pages of the website and no code has changed lately...)

Upvotes: 1

Views: 2821

Answers (7)

Josep
Josep

Reputation: 51

on core.php

Configure::write('debug',0);

Upvotes: 1

cjs1978
cjs1978

Reputation: 529

For what it's worth, turning off DebugKit solved this problem for me in CakePHP 2.3.5. Except for adding DebugKit, the CakePHP installation is completely fresh. I got the same error 324 in Chrome as mentioned in the original post.

Upvotes: 0

Mister R2
Mister R2

Reputation: 881

I suddenly got this problem after I added post editing to the blog tutorial on a local virtual host. For me, this problem went away when I went back through my files and found a syntax mistake. Once I fixed the syntax, it worked just fine.

Upvotes: 0

Ghorban M. Tavakoly
Ghorban M. Tavakoly

Reputation: 21

I had the same issue with cakephp 2.2.1. I've resolved the issue by adding flush() in App.php's load function.

public static function load($className) {
    if (!isset(self::$_classMap[$className])) {
        return false;
    }
    flush();
    ...

Upvotes: 2

Leo
Leo

Reputation: 1529

FYI I had the same problem today. Turning off debug kit solved it for me

Upvotes: 0

Paul Gevers
Paul Gevers

Reputation: 1

I wonder if this might be regression in the last security update of Debian. I get very similar errors as you have, but we are not running cake. If we can confirm this, we should file a bug at Debian.

/var/log/messages[39144630.700032] apache2[13693]: segfault at 7fffff7fdfb8 ip 7f5195606a6a sp 7fffff7fdf50 error 6 in libphp5.so[7f519535c000+588000]

/var/log/apache2/error.log[error] child died with signal 11

$ php -v

PHP 5.2.6-1+lenny13 with Suhosin-Patch 0.9.6.2 (cli) (built: Jul  1 2011 16:01:01) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Upvotes: 0

Nicolas
Nicolas

Reputation: 2814

I just downgraded my framework to what it was before thanks to a backup of those files I've done just before the updated and everything's fine now again.

Maybe something was wrong during the upload or something is not compatible with the latest version of the framework. I'll do some tests later about it and I'll comment on this "solution".

Upvotes: 1

Related Questions