ID: 38095 Updated by: [EMAIL PROTECTED] Reported By: jujhimup at hotmail dot com -Status: Feedback +Status: Bogus Bug Type: PDO related Operating System: Red Hat Linux PHP Version: 5.1.4 New Comment:
Duplicate of bug #37445. Previous Comments: ------------------------------------------------------------------------ [2006-07-13 14:33:09] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-07-13 14:30:19] jujhimup at hotmail dot com Description: ------------ hi, as i have fairly limited server-related and C knowledge, i'm not quite sure what is going wrong with my app via the backtrace - however it does seem as though it's a PDO/MySQL issue. only certain pages on my app are crashing, not all of them - however, it seems that apache is logging a segfault anyway, whetehr this page is displayed or not. i'm using prepared statements and bindParam with PDO, if that's of any extra help ... here is the backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208054944 (LWP 17395)] 0x00cb6bae in mysql_more_results () from /usr/local/mysql/lib/mysql/libmysqlclient.so.15 (gdb) (gdb) bt #0 0x00cb6bae in mysql_more_results () from /usr/local/mysql/lib/mysql/libmysqlclient.so.15 #1 0x02705534 in pdo_mysql_stmt_dtor (stmt=0x9ea8b24) at /usr/local/php-5.1.4/ext/pdo_mysql/mysql_statement.c:79 #2 0x027023e1 in free_statement (stmt=0x9ea8b24) at /usr/local/php-5.1.4/ext/pdo/pdo_stmt.c:2200 #3 0x0280e320 in zend_objects_store_del_ref (zobject=0x9e64cec) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #4 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e6a5d8) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #5 0x028015a0 in zend_hash_destroy (ht=0x9e5807c) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #6 0x0280b965 in zend_object_std_dtor (object=0x9e546bc) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #7 0x0280bb1c in zend_objects_free_object_storage (object=0x9e546bc) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #8 0x0280e320 in zend_objects_store_del_ref (zobject=0x9eb66bc) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #9 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9eabf90) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #10 0x028015a0 in zend_hash_destroy (ht=0x9eac604) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #11 0x0280b965 in zend_object_std_dtor (object=0x9eabbdc) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #12 0x0280bb1c in zend_objects_free_object_storage (object=0x9eabbdc) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #13 0x0280e320 in zend_objects_store_del_ref (zobject=0x9eab85c) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #14 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e73ee0) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #15 0x028015a0 in zend_hash_destroy (ht=0x9e53f2c) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #16 0x0280b965 in zend_object_std_dtor (object=0x9e53f64) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #17 0x0280bb1c in zend_objects_free_object_storage (object=0x9e53f64) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #18 0x0280e320 in zend_objects_store_del_ref (zobject=0x9e54854) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #19 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e9fce0) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #20 0x028015a0 in zend_hash_destroy (ht=0x9e9fd84) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #21 0x0280b965 in zend_object_std_dtor (object=0x9e9fa24) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #22 0x0280bb1c in zend_objects_free_object_storage (object=0x9e9fa24) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #23 0x0280e190 in zend_objects_store_free_object_storage (objects=0x2a81a3c) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:86 #24 0x027edb73 in shutdown_executor () at /usr/local/php-5.1.4/Zend/zend_execute_API.c:281 #25 0x027f92e7 in zend_deactivate () at /usr/local/php-5.1.4/Zend/zend.c:854 #26 0x027c5307 in php_request_shutdown (dummy=0x0) at /usr/local/php-5.1.4/main/main.c:1287 #27 0x02871fb5 in php_handler (r=0x9e49830) at /usr/local/php-5.1.4/sapi/apache2handler/sapi_apache2.c:445 #28 0x08071536 in ap_run_handler (r=0x9e49830) at config.c:157 #29 0x08071901 in ap_invoke_handler (r=0x9e49830) at config.c:371 #30 0x0807bc9d in ap_internal_redirect (new_uri=0x9e49808 "/index.php?http_request=favicon.ico", r=0x9e35950) at http_request.c:477 #31 0x005accd0 in handler_redirect (r=0x9e35950) at mod_rewrite.c:4733 #32 0x08071536 in ap_run_handler (r=0x9e35950) at config.c:157 #33 0x08071901 in ap_invoke_handler (r=0x9e35950) at config.c:371 #34 0x0807c059 in ap_process_request (r=0x9e35950) at http_request.c:258 #35 0x08079ced in ap_process_http_connection (c=0x9e2d788) at http_core.c:172 #36 0x08076bde in ap_run_process_connection (c=0x9e2d788) at connection.c:43 #37 0x0807f64b in child_main (child_num_arg=Variable "child_num_arg" is not available. ) at prefork.c:640 #38 0x0807f814 in make_child (s=0x2, slot=0) at prefork.c:680 #39 0x0807fd67 in ap_mpm_run (_pconf=0x9caa0a8, plog=0x9cd8160, s=0x9cabf48) at prefork.c:956 #40 0x08061a94 in main (argc=2, argv=0xbfeb6e64) at main.c:717 (gdb) i really hope someone with more knowledge can tell me what's going on here - i really don't know where to start ... :'( many thanks jujhimup Reproduce code: --------------- part of a big framework, so can't really post a script here - and also the URL is part of an admin interface, which i obviously can't paste access to here. Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208054944 (LWP 17395)] 0x00cb6bae in mysql_more_results () from /usr/local/mysql/lib/mysql/libmysqlclient.so.15 (gdb) (gdb) bt #0 0x00cb6bae in mysql_more_results () from /usr/local/mysql/lib/mysql/libmysqlclient.so.15 #1 0x02705534 in pdo_mysql_stmt_dtor (stmt=0x9ea8b24) at /usr/local/php-5.1.4/ext/pdo_mysql/mysql_statement.c:79 #2 0x027023e1 in free_statement (stmt=0x9ea8b24) at /usr/local/php-5.1.4/ext/pdo/pdo_stmt.c:2200 #3 0x0280e320 in zend_objects_store_del_ref (zobject=0x9e64cec) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #4 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e6a5d8) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #5 0x028015a0 in zend_hash_destroy (ht=0x9e5807c) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #6 0x0280b965 in zend_object_std_dtor (object=0x9e546bc) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #7 0x0280bb1c in zend_objects_free_object_storage (object=0x9e546bc) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #8 0x0280e320 in zend_objects_store_del_ref (zobject=0x9eb66bc) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #9 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9eabf90) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #10 0x028015a0 in zend_hash_destroy (ht=0x9eac604) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #11 0x0280b965 in zend_object_std_dtor (object=0x9eabbdc) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #12 0x0280bb1c in zend_objects_free_object_storage (object=0x9eabbdc) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #13 0x0280e320 in zend_objects_store_del_ref (zobject=0x9eab85c) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #14 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e73ee0) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #15 0x028015a0 in zend_hash_destroy (ht=0x9e53f2c) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #16 0x0280b965 in zend_object_std_dtor (object=0x9e53f64) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #17 0x0280bb1c in zend_objects_free_object_storage (object=0x9e53f64) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #18 0x0280e320 in zend_objects_store_del_ref (zobject=0x9e54854) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:172 #19 0x027ed5a5 in _zval_ptr_dtor (zval_ptr=0x9e9fce0) at /usr/local/php-5.1.4/Zend/zend_variables.h:35 #20 0x028015a0 in zend_hash_destroy (ht=0x9e9fd84) at /usr/local/php-5.1.4/Zend/zend_hash.c:521 #21 0x0280b965 in zend_object_std_dtor (object=0x9e9fa24) at /usr/local/php-5.1.4/Zend/zend_objects.c:44 #22 0x0280bb1c in zend_objects_free_object_storage (object=0x9e9fa24) at /usr/local/php-5.1.4/Zend/zend_objects.c:111 #23 0x0280e190 in zend_objects_store_free_object_storage (objects=0x2a81a3c) at /usr/local/php-5.1.4/Zend/zend_objects_API.c:86 #24 0x027edb73 in shutdown_executor () at /usr/local/php-5.1.4/Zend/zend_execute_API.c:281 #25 0x027f92e7 in zend_deactivate () at /usr/local/php-5.1.4/Zend/zend.c:854 #26 0x027c5307 in php_request_shutdown (dummy=0x0) at /usr/local/php-5.1.4/main/main.c:1287 #27 0x02871fb5 in php_handler (r=0x9e49830) at /usr/local/php-5.1.4/sapi/apache2handler/sapi_apache2.c:445 #28 0x08071536 in ap_run_handler (r=0x9e49830) at config.c:157 #29 0x08071901 in ap_invoke_handler (r=0x9e49830) at config.c:371 #30 0x0807bc9d in ap_internal_redirect (new_uri=0x9e49808 "/index.php?http_request=favicon.ico", r=0x9e35950) at http_request.c:477 #31 0x005accd0 in handler_redirect (r=0x9e35950) at mod_rewrite.c:4733 #32 0x08071536 in ap_run_handler (r=0x9e35950) at config.c:157 #33 0x08071901 in ap_invoke_handler (r=0x9e35950) at config.c:371 #34 0x0807c059 in ap_process_request (r=0x9e35950) at http_request.c:258 #35 0x08079ced in ap_process_http_connection (c=0x9e2d788) at http_core.c:172 #36 0x08076bde in ap_run_process_connection (c=0x9e2d788) at connection.c:43 #37 0x0807f64b in child_main (child_num_arg=Variable "child_num_arg" is not available. ) at prefork.c:640 #38 0x0807f814 in make_child (s=0x2, slot=0) at prefork.c:680 #39 0x0807fd67 in ap_mpm_run (_pconf=0x9caa0a8, plog=0x9cd8160, s=0x9cabf48) at prefork.c:956 #40 0x08061a94 in main (argc=2, argv=0xbfeb6e64) at main.c:717 (gdb) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38095&edit=1