[Bug 63141] Re: PHP (cli) exits with a segfault if pg_connect() called.

leopard leopard.not.a at gmail.com
Thu Apr 9 14:16:26 BST 2009


Ubuntu 8.04
Sometimes I have error in log. High loaded server, online system writen by PHP and using Postgresql.
$ tail -f /var/log/messages
Apr  9 13:15:01 dbserver kernel: [ 7110.775499] php[14257]: segfault at 00000000 eip b6e98e8f esp bfef4ca0 error 4
Apr  9 13:15:01 dbserver kernel: [ 7110.775786] php[14266]: segfault at 00726f72 eip 00726f72 esp bfc6ca1c error 14
Apr  9 13:25:56 dbserver php: PHP Warning:  pg_query(): Query failed: server closed the connection unexpectedly ^IThis probably means the server terminated abnormally ^Ibefore or while processing the request. in /var/www/tut1/simplescripts/start.php on line 43
Apr  9 13:38:27 dbserver -- MARK --
Apr  9 13:58:27 dbserver -- MARK --
Apr  9 14:13:08 dbserver kernel: [10591.395416] php[3724]: segfault at 00000172 eip 00000172 esp bfe1c46c error 14
Apr  9 14:38:27 dbserver -- MARK --
Apr  9 14:58:27 dbserver -- MARK --
Apr  9 15:10:01 dbserver kernel: [13996.938272] php[32104]: segfault at 00000000 eip b6efde8f esp bff324e0 error 4
Apr  9 15:10:01 dbserver kernel: [13996.938946] php[32107]: segfault at 00000000 eip 00000000 esp bfbc616c error 14
Apr  9 15:17:46 dbserver kernel: [14461.355480] php[3746]: segfault at 00000000 eip b6ee5e8f esp bfe16bb0 error 4
Apr  9 15:38:27 dbserver -- MARK --
Apr  9 15:58:27 dbserver -- MARK --

$ uname -a
Linux dbserver 2.6.24-23-server #1 SMP Wed Apr 1 22:22:14 UTC 2009 i686 GNU/Linux

$ php -v
PHP 5.2.9-0.dotdeb.1 with Suhosin-Patch 0.9.7 (cli) (built: Mar  8 2009 23:41:21)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo


All errors come from PHP (cli), which server run in cron
I have email from cron, for example

Cron /usr/bin/php /*****.php
Segmentation fault

I try change PHP (as you see by version, before 5.2.6, 5.2.8), update
postgresql (now version PostgreSQL 8.3.7). Web server nginx (nginx
version: nginx/0.6.32) and php run by fastcgi using spawn-fcgi from
lighttpd.

I attached list of installed packages

P.S. Sorry for my bad English.

** Attachment added: "packages.txt"
   http://launchpadlibrarian.net/25110410/packages.txt

-- 
PHP (cli) exits with a segfault if pg_connect() called.
https://bugs.launchpad.net/bugs/63141
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list