ID: 30653 Comment by: phpbugs at majiclab dot com Reported By: ralf dot praschak at gmx dot net Status: No Feedback Bug Type: MySQL related Operating System: redhat 9 PHP Version: 4.3.9 New Comment:
Sorry for filling up this bug's comments, but I did create a new bug (Bug #31161) because I felt that maybe it would be best since I am running a different OS and completely different php version (5 vs. 4). Sorry for the confusion. You can delete my previous post to simplify it all... Previous Comments: ------------------------------------------------------------------------ [2004-12-17 22:11:58] phpbugs at majiclab dot com I am having a similar problem running MySQL 4.1.7, PHP5.0.3 (compiling CVS right now) and Apache 2.0.52. I have some websites that run fine, with DB connection through mysqli. However, browsing to the phpMyAdmin page causes a segfault. I am using phpMyAdmin-2.6.0-pl3. Previously, before it would segfault, phpMyAdmin would not even let me login, returning me this error: "SELECT VERSION() as version", empty result set returned (or something like that). So I have never had phpMyAdmin working at all, but it never segfaulted before. I used to have ZPS running, but I disabled that in php.ini to make sure it wasn't that. This is the error I get from gdb: zend_object_store_get_object (zobject=0x0) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_objects_API.c:202 202 return EG(objects_store).object_buckets[handle].bucket.obj.object; And I have the following backtrace: #0 zend_object_store_get_object (zobject=0x0) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_objects_API.c:202 #1 0x0000002a9636005c in php_mysqli_fetch_into_hash (ht=Variable "ht" is not available. ) at /usr/local/src/php5-STABLE-200412171930/ext/mysqli/mysqli.c:624 #2 0x0000002a9636a08f in zif_mysqli_fetch_array (ht=Variable "ht" is not available. ) at /usr/local/src/php5-STABLE-200412171930/ext/mysqli/mysqli_nonapi.c:189 #3 0x0000002a964965c4 in zend_do_fcall_common_helper (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2711 #4 0x0000002a964967d8 in zend_do_fcall_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2843 #5 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #6 0x0000002a96496109 in zend_do_fcall_common_helper (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2740 #7 0x0000002a964967d8 in zend_do_fcall_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2843 #8 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #9 0x0000002a96496109 in zend_do_fcall_common_helper (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2740 #10 0x0000002a964969c1 in zend_do_fcall_by_name_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2825 #11 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #12 0x0000002a96496109 in zend_do_fcall_common_helper (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2740 #13 0x0000002a964967d8 in zend_do_fcall_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2843 #14 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #15 0x0000002a96496109 in zend_do_fcall_common_helper (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2740 #16 0x0000002a964969c1 in zend_do_fcall_by_name_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:2825 #17 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #18 0x0000002a964912fd in zend_include_or_eval_handler (execute_data=Variable "execute_data" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:3565 #19 0x0000002a964a04fe in execute (op_array=Variable "op_array" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend_execute.c:1400 #20 0x0000002a9646812d in zend_execute_scripts (type=Variable "type" is not available. ) at /usr/local/src/php5-STABLE-200412171930/Zend/zend.c:1069 #21 0x0000002a964307ff in php_execute_script (primary_file=Variable "primary_file" is not available. ) at /usr/local/src/php5-STABLE-200412171930/main/main.c:1628 #22 0x0000002a964a0c44 in php_handler (r=Variable "r" is not available. ) at /usr/local/src/php5-STABLE-200412171930/sapi/apache2handler/sapi_apache2.c:537 #23 0x0000000000445631 in ap_run_handler (r=0x0) at config.c:151 #24 0x0000000000448479 in ap_invoke_handler (r=0x7535a0) at config.c:363 #25 0x000000000042d2de in ap_process_request (r=0x7535a0) at http_request.c:246 #26 0x0000000000428688 in ap_process_http_connection (c=0x746700) at http_core.c:250 #27 0x00000000004503b1 in ap_run_process_connection (c=0x0) at connection.c:42 #28 0x0000000000444600 in child_main (child_num_arg=Variable "child_num_arg" is not available. ) at prefork.c:609 #29 0x0000000000444784 in make_child (s=0x5d0e88, slot=0) at prefork.c:649 #30 0x000000000044485c in startup_children (number_to_start=5) at prefork.c:721 #31 0x0000000000444f1c in ap_mpm_run (_pconf=Variable "_pconf" is not available. ) at prefork.c:940 #32 0x000000000044aae0 in main (argc=Variable "argc" is not available. ) at main.c:617 Expected Result: phpMyAdmin to not cause a segfault, at least give me the other error from before... Actual Result: segfault. I have been having somewhat random segfaults in other locations as well. I don't know if this will assist or is related at all, but I would often get segfaults if I threw a new CException (a class extending Exception) inside or nested inside a __destruct. I don't know if this is an "intentional" behavior, but I changed my code to not call those functions/etc. from a __destruct. I am really confused, and hopefully a somewhat serious bug can be found of this, as I have been having several random segfault parties (times where certain code segfaults for no apparent reason). A little more info: I am running a AMD 64 3200+, 512MB RAM, SuSE 9.1 (kernel-2.6.4, glibc-2.3.3) Thanks for any help/fixes! -Andrew ------------------------------------------------------------------------ [2004-11-11 01:00:05] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-11-01 21:02:40] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2004-11-01 17:20:14] ralf dot praschak at gmx dot net Description: ------------ hitting the browse button within phpmyadmin is causing a seg fault in apache. i recompiled the php.srpm after upgrading to mysql 4.1.7. but i still get a Client API version 4.0.20 in the phpinfo() i am using apache 2.0.52 on redhat9 any clues? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30653&edit=1