#43199 [Com]: Many segmentation faults
| From: | tikitiki at mybboard dot com | Date: | Wed, 03 Sep 2008 23:32:44 +0000 |
| Subject: | #43199 [Com]: Many segmentation faults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128663@lists.php.net to get a copy of this message | ||
ID: 43199
Comment by: tikitiki at mybboard dot com
Reported By: eugene dot pikalov at gmail dot com
Status: No Feedback
Bug Type: PDO related
Operating System: Linux Fedora 2.6.22.5-76.fc7
PHP Version: 5.2.4
New Comment:
We btw, aren't using PDO so I don't think that is the direct cause.
Previous Comments:
------------------------------------------------------------------------
[2008-09-03 23:31:03] tikitiki at mybboard dot com
Hello,
I help run a site (http://ncaabbs.com/) which has recently been
experiencing the same thing - It's reproducible in PHP 5.2.6 (that's
what we're running right now)
# cat /var/log/apache2/error_log | grep Segmentation
[Wed Sep 03 17:32:50 2008] [notice] child pid 25431 exit signal
Segmentation fault (11)
[Wed Sep 03 17:32:53 2008] [notice] child pid 26658 exit signal
Segmentation fault (11)
[Wed Sep 03 17:32:53 2008] [notice] child pid 26777 exit signal
Segmentation fault (11)
It's causing apache to crash every few minutes
------------------------------------------------------------------------
[2008-08-15 22:21:46] jfrisby at adknowledge dot com
Follow-up: Changing the DSN in the sample code to "sqlite::memory:" per
Johannes' suggestion -- and removing the actual query since the table
doesn't exist -- produces the same behavior.
We will attempt to test 5.2.6, and if it occurs there, 5.3.0.
------------------------------------------------------------------------
[2008-08-15 21:17:24] jfrisby at adknowledge dot com
We're seeing an almost identical stack trace from a php commandline
program. Basically, if we connect to a DB using PDO_mysql, we get an
exit code of 1 after all our code has successfully executed without
error -- but only if we use persistent connections.
This is on PHP 5.2.4 under Ubuntu Hardy.
Per suggestions on #php.pecl, will try SQLite driver, and if possible,
5.3.
---snip---
<?php
error_reporting(E_ALL|E_STRICT);
try {
$obj = new PDO("mysql:host=localhost;dbname=ls_dev_jfrisby","root",""
,array(PDO::ATTR_PERSISTENT => true));
$stmt = $obj->prepare("select count(1) cnt from channel_map_bids");
$stmt->execute();
var_dump($stmt->fetchAll());
$obj = null;
} catch (Exception $e) {
print "exception: " . (string)$e . "\n";
}
exit(0);
?>
------------------------------------------------------------------------
[2007-11-13 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-11-09 08:38:05] serban dot ghita at verasys dot com
i can confirm this on slackware after upgrading.
Linux www 2.6.21.5-smp #1 SMP Sat Nov 3 15:51:44 Local time zone must
be set--see zic m i686 Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
GenuineIntel GNU/Linux
i was running httpd-2.2.6 with PHP 5.2.4
i tried compiling both apache and php with less options, nothing
worked.
temporary workaround: installed httpd-2.0.58 + PHP 5.2.4 and everithing
worked. i cannot generate a backtrace at the moment because i'm on a
production server
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43199
--
Edit this bug report at http://bugs.php.net/?id=43199&edit=1