ID: 41829 Updated by: [EMAIL PROTECTED] Reported By: john_judy at homedecorators dot com -Status: Open +Status: Bogus Bug Type: PDO related Operating System: FreeBSD PHP Version: 5.2.3 New Comment:
Ok, please let us know (and reopen the report) if you find something. Previous Comments: ------------------------------------------------------------------------ [2007-07-03 18:31:25] john_judy at homedecorators dot com After further testing in 5.2.3 we were unable to recreate it. It may have been just showing up on our less upgraded servers as we are in the middle of upgrading to 5.2.3 and so our error logs are sometimes mixed. ------------------------------------------------------------------------ [2007-06-27 19:48:47] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi ------------------------------------------------------------------------ [2007-06-27 19:48:02] [EMAIL PROTECTED] We can't fix it without having a reproduce case and/or a clear backtrace. ------------------------------------------------------------------------ [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