#41596 [Opn->Asn]: crash. when sql syntax is invalid
| From: | tony2001@php.net | Date: | Tue, 05 Jun 2007 17:14:09 +0000 |
| Subject: | #41596 [Opn->Asn]: crash. when sql syntax is invalid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113420@lists.php.net to get a copy of this message | ||
ID: 41596
Updated by: tony2001@php.net
Reported By: develar at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: PDO related
Operating System: Windows XP SP2
PHP Version: 5.2.3
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2007-06-05 17:00:29] develar at gmail dot com
win must die. I use debian 4 (Linux 2.6.18-4-486), gdb.
#0 0x081a63c8 in pdo_parse_params (stmt=0xb79eec0c, inquery=0xb79eeb14
"delete from users.\"users where id = :id", inquery_len=39,
outquery=0xbff3b3c0, outquery_len=0xbff3b3bc) at
/tmp/php-5.2.3/ext/pdo/pdo_sql_parser.c:391
#1 0x081aaf63 in pgsql_handle_preparer (dbh=0xb79ee6c4, sql=0xb79eeb14
"delete from users.\"users where id = :id", sql_len=39, stmt=0xb79eec0c,
driver_options=0x0) at /tmp/php-5.2.3/ext/pdo_pgsql/pgsql_driver.c:254
#2 0x0819b2b7 in zim_PDO_prepare (ht=1, return_value=0xb79ee894,
return_value_ptr=0x0, this_ptr=0xb79ed240, return_value_used=1) at
/tmp/php-5.2.3/ext/pdo/pdo_dbh.c:580
#3 0x083a93f1 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbff3b794) at /tmp/php-5.2.3/Zend/zend_vm_execute.h:200
#4 0x083aa03b in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbff3b794) at /tmp/php-5.2.3/Zend/zend_vm_execute.h:322
#5 0x083a8f54 in execute (op_array=0xb79ed938) at
/tmp/php-5.2.3/Zend/zend_vm_execute.h:92
#6 0x083848b3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /tmp/php-5.2.3/Zend/zend.c:1134
#7 0x08333f4a in php_execute_script (primary_file=0xbff3db30) at
/tmp/php-5.2.3/main/main.c:1794
#8 0x083fdc3a in main (argc=2, argv=0xbff3dc74) at
/tmp/php-5.2.3/sapi/cli/php_cli.c:1138
------------------------------------------------------------------------
[2007-06-05 15:40:38] tony2001@php.net
Compare it to the backtrace here:
http://bugs.php.net/bugs-generating-backtrace-win32.php
------------------------------------------------------------------------
[2007-06-05 15:20:25] develar at gmail dot com
Call Stack: PHP_PDO! 00fb5323()
It what is necessary?
------------------------------------------------------------------------
[2007-06-05 11:29:17] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2007-06-05 11:03:29] develar at gmail dot com
Apache die.
Server API: Apache 2.0 Handler.
Apache Version: Apache/2.0.59 (Win32).
------------------------------------------------------------------------
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/41596
--
Edit this bug report at http://bugs.php.net/?id=41596&edit=1