Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: rkrenzis on April 02, 2007, 04:47:17 AM

Title: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: rkrenzis on April 02, 2007, 04:47:17 AM
I'm running FreeBSD 5.4 with the latest ports tree. I have the following installed:

php5-5.2.1_3
apache-2.0.59
roundcube-0.1-20070303

After uninstalling, and reinstalling, and RTFM'ing, and uninstalling, and reinstalling, then RTFM'ing again...I'm left with the following messages any time I try to launch the index.php page when trying to bring up Roundcube:

[Mon Apr 02 04:24:58 2007] [notice] child pid 56391 exit signal Segmentation fault (11)
[Mon Apr 02 04:24:58 2007] [notice] child pid 56390 exit signal Segmentation fault (11)
[Mon Apr 02 04:24:58 2007] [notice] child pid 56389 exit signal Segmentation fault (11)
[Mon Apr 02 04:24:59 2007] [notice] child pid 59566 exit signal Segmentation fault (11)
[Mon Apr 02 04:24:59 2007] [notice] child pid 59565 exit signal Segmentation fault (11)
[Mon Apr 02 04:34:58 2007] [notice] child pid 59569 exit signal Segmentation fault (11)
[Mon Apr 02 04:34:59 2007] [notice] child pid 59574 exit signal Segmentation fault (11)

I've tried rebuilding all PHP dependencies and PHP5 itself. I've googled and found "issues" with people running 5.2 and apache 2.x segfaulting but no resolution.

Thoughts...
Ideas...

TIA.
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: r@burlco.org on April 02, 2007, 08:01:16 AM
Not that it helps you much, but I'm running roundcubemail-nightly-20070318 under FreeBSD 5.2.1 with Apache 2.2.4 and PHP 5.2.1 (compiled from source) without issue.
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: rkrenzis on April 04, 2007, 11:25:55 PM
I'm going to try and upgrade to Apache 2.2 and rebuild PHP 5.2. I'll post the results.
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: rkrenzis on April 05, 2007, 01:50:18 AM
Removed the apache20 package
Installed the apache22 package
Fixed the package database with 'pkgdb -F' per recommendation of portupgrade
Rebuilt PHP5 for apache22

Still segfaulting at load. Ideas?
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: r@burlco.org on April 05, 2007, 11:44:30 AM
Can Apache open any .php file or is it just RC's index.php that crashes Apache? E.g. does the following, put into a .php file, crash Apache?

phpinfo()
?>
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: mokr on April 08, 2007, 04:54:46 PM
Quote from: rkrenzis
....
[Mon Apr 02 04:24:59 2007] [notice] child pid 59566 exit signal Segmentation fault (11)
[Mon Apr 02 04:24:59 2007] [notice] child pid 59565 exit signal Segmentation fault (11)
[Mon Apr 02 04:34:58 2007] [notice] child pid 59569 exit signal Segmentation fault (11)
[Mon Apr 02 04:34:59 2007] [notice] child pid 59574 exit signal Segmentation fault (11)

I've tried rebuilding all PHP dependencies and PHP5 itself. I've googled and found "issues" with people running 5.2 and apache 2.x segfaulting but no resolution.

Thoughts...
Ideas...

It seems that you don't have mysql-server installed on the same system.

ktrace httpd -X shows at least this
......
 84452 httpd  CALL break(0x8683000)
 84452 httpd  RET  break 0
 84452 httpd  CALL stat(0xbfbf7920,0xbfbf7880)
 84452 httpd  NAMI "/usr/local/share/mysql/charsets/Index.xml"
 84452 httpd  RET  stat -1 errno 2 No such file or directory
 84452 httpd  PSIG SIGSEGV SIG_DFL

'share/mysql/charsets' directory is within mysql-server package, just obtain it from package or another server and signal 11 goes away.

SM
Title: Re: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: rkrenzis on April 09, 2007, 10:38:21 PM

In reply to the previous two posts:

1.

phpinfo()
?>

yields the phpinfo page without errors.

2. It seems that you don't have mysql-server installed on the same system.

ktrace httpd -X shows at least this
......
 84452 httpd  CALL break(0x8683000)
 84452 httpd  RET  break 0
 84452 httpd  CALL stat(0xbfbf7920,0xbfbf7880)
 84452 httpd  NAMI "/usr/local/share/mysql/charsets/Index.xml"
 84452 httpd  RET  stat -1 errno 2 No such file or directory
 84452 httpd  PSIG SIGSEGV SIG_DFL

'share/mysql/charsets' directory is within mysql-server package, just obtain it from package or another server and signal 11 goes away.

Reply Below:

The mysql server is on the same host. A ktrace httpd -X results in a 'Segmentation fault' and apache httpd exits without showing any messages. The "/usr/local/share/mysql/charsets" directory exists. The Index.xml file exists as well.

I've upgraded to the latest 20070318 nightly build. Ideas?
Title: Segfault with Apache 2.0, PHP 5.2.1, and Roundcube 20070303 or 20070318
Post by: lcx on October 16, 2008, 04:37:34 AM
I also have segfaults on my installation since updating to 1.2beta.
I am running Apache 2.2.3-4+etch5, php 5.2.0-8+etch13, Debian 4.0 on a adm64 machine.
The strange thin is, if I shut down apache and start it again, it works for one day (wild guess, it could also be that it works for just some requests I usually notice it not working the next day)
All other php stuff with https works fine. Any idea how to narrow it down to find out what is going on?

LE: I found my problem. eAccelerator! as soon as I empty the cache, roundcubemail works for a while.