#41829 [Opn->Fbk]: PDO Seg fault issues
| From: | tony2001@php.net | Date: | Wed, 27 Jun 2007 19:48:02 +0000 |
| Subject: | #41829 [Opn->Fbk]: PDO Seg fault issues | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114353@lists.php.net to get a copy of this message | ||
ID: 41829
Updated by: tony2001@php.net
Reported By: john_judy at homedecorators dot com
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: FreeBSD
PHP Version: 5.2.3
New Comment:
We can't fix it without having a reproduce case and/or a clear
backtrace.
Previous Comments:
------------------------------------------------------------------------
[2007-06-27 19:40:06] john_judy at homedecorators dot com
Description:
------------
When using PDO we experience random seg fault errors: [Wed Jun 27
09:52:31 2007] [notice] child pid 82572 exit signal Segmentation fault
(11)
Unfortunately it doesn't happen consistently on any given page or query
select. We are using a set of wrapper classes to provide extra
functionality to PDO (record counts, function names similar to what we
are currently using, extra debugging info, caching soon).
The seg fault appears to happen when returning the result set from our
PDOconnection object during execute(). Debugging code and unimportant
functions have been removed below.
Reproduce code:
---------------
class PDOStatementx extends PDOStatement{
function execute($input=null){
$this->params=$input;
parent::execute($input);
$this->cursorPos=0;
}
}
class PDOconnection extends PDO{
function __construct($update){
parent::__construct( "mysql:host=". $connServer .";dbname=".$db,
$uid, $pwd);
$this->setAttribute( PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
$this->setAttribute( PDO::ATTR_STATEMENT_CLASS,
array('PDOStatementx'));
$this->setAttribute(PDO::ATTR_EMULATE_PREPARES,true);
}
function execute($SQL,$debug=false){//legacy wrapper function
$this->result = $this->prepare($SQL);
$this->result->execute();
return $this->result;
}
Actual result:
--------------
As of right now I do not have access to a backtrace. The only error we
are receiving is the one listed above: "[Wed Jun 27 09:52:31 2007]
[notice] child pid 82572 exit signal Segmentation fault (11)"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41829&edit=1