#41829 [NEW]: PDO Seg fault issues
| From: | john_judy at homedecorators dot com | Date: | Wed, 27 Jun 2007 19:40:06 +0000 |
| Subject: | #41829 [NEW]: PDO Seg fault issues | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-114352@lists.php.net to get a copy of this message | ||
From: john_judy at homedecorators dot com
Operating system: FreeBSD
PHP version: 5.2.3
PHP Bug Type: PDO related
Bug description: PDO Seg fault issues
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 bug report at http://bugs.php.net/?id=41829&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41829&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41829&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41829&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41829&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41829&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41829&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41829&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41829&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41829&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41829&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41829&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41829&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41829&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41829&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41829&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41829&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41829&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41829&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41829&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41829&r=mysqlcfg