Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18583 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53819 invoked by uid 1010); 30 Aug 2005 21:42:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53804 invoked from network); 30 Aug 2005 21:42:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2005 21:42:15 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:33565] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AE/0D-15098-5B2D4134 for ; Tue, 30 Aug 2005 17:42:14 -0400 Received: from [192.168.1.3] (dsl-082-083-251-209.arcor-ip.net [82.83.251.209]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 9116E35C36E; Wed, 31 Aug 2005 00:03:26 +0200 (CEST) Date: Tue, 30 Aug 2005 23:44:17 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <915210870.20050830234417@marcus-boerger.de> To: steve Cc: internals@lists.php.net In-Reply-To: <57792e8505083014323f86ac6@mail.gmail.com> References: <5.1.0.14.2.20050822134257.05e07c60@localhost> <57792e8505082914244b23a4df@mail.gmail.com> <1115917991.20050830000559@marcus-boerger.de> <57792e85050830123275779038@mail.gmail.com> <1279281695.20050830215401@marcus-boerger.de> <57792e8505083014323f86ac6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Re was: [PHP-DEV] 5.0.5RC1 rolled From: helly@php.net (Marcus Boerger) Hello steve, Tuesday, August 30, 2005, 11:32:33 PM, you wrote: > :) > Can valgrind attach to a process like gdb? I somehow doubt it... In > that case, I must admit, I've never used valgrind before. How can I > set up valgrind to check a fast-cgi process? > I tried changing the php5.fcgi file to php505.fcgi and created this as > php5.fcgi: > #/bin/bash that's missing the '!' > /usr/bin/valgrind --tool=memcheck --trace-children=yes > --log-file=/usr/local/apache2/logs/valgrind > /usr/local/apache2/fastcgi-bin/php505.fcgi you don't pass the parameters here or aren't you passing any? besides those comments i don't know of a way to attach to a running process. marcus > but that didn't work... > On 8/30/05, Marcus Boerger wrote: >> Hello steve, >> >> #15 0x081ccec4 in call_user_function_ex (function_table=0x1, >> object_pp=0x1, function_name=0x1, retval_ptr_ptr=0x1, param_count=1, >> params=0x1, no_separation=1, symbol_table=0x1) >> at >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:559 >> #16 0x081e53eb in zend_std_call_user_call (ht=2, >> return_value=0xab5a584, this_ptr=0xa5da6a4, return_value_used=1) at >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_object_handlers.c:609 >> >> in 15 you see that all parameters are bork! >> can you try valgrind to look for memory corruption or check why 15 is not >> able to pass the required parameters corectly. Or maybe the problem is that >> this_ptr is already invalid. >> >> marcus >> >> Tuesday, August 30, 2005, 9:32:07 PM, you wrote: >> >> > Thats what I was looking for, thanks. I used that and no exception was >> > thrown in 5.0.4, but there is one in 5.0.5RC2. It is in a shutdown >> > function, which is why I couldn't figure out where it was happening. >> > Not to mention, it was in an AJAX call. The shutdown function is >> > defined in JPSpan (http://sourceforge.net/projects/jpspan), which is >> > not that uncommon. >> >> > I'll try and see if I can get a PHP debugger installed correctly on >> > Windows with 5.0.5 and see what happens there. We develop on Windows >> > and Mac and deploy on Linux, so I'll see if there is a platform >> > element involved as well (I doubt). Anyway, anyone that wants to check >> > it out themselves can get the JPSpan and run the hello world sample I >> > suppose.??? >> >> > Breakpoint 1, zend_throw_exception_internal (exception=0xac25a14) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exceptions.c:38 >> > 38 if (exception != NULL) { >> > (gdb) bt >> > #0 zend_throw_exception_internal (exception=0xac25a14) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exceptions.c:38 >> > #1 0x081f33c7 in zend_throw_handler (execute_data=0xbfff6be0, >> > opline=0xa7fde34, op_array=0xa5007e8) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2994 >> > #2 0x081f0366 in execute (op_array=0xa5007e8) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #3 0x081f2c72 in zend_do_fcall_common_helper >> > (execute_data=0xbfff7690, opline=0xa702e48, op_array=0xa58c5dc) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2789 >> > #4 0x081f0366 in execute (op_array=0xa58c5dc) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #5 0x081f2c72 in zend_do_fcall_common_helper >> > (execute_data=0xbfff86f0, opline=0xa825fec, op_array=0xa58c50c) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2789 >> > #6 0x081f0366 in execute (op_array=0xa58c50c) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #7 0x081f2c72 in zend_do_fcall_common_helper >> > (execute_data=0xbfff8b20, opline=0xa72027c, op_array=0xa58d7dc) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2789 >> > #8 0x081f0366 in execute (op_array=0xa58d7dc) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #9 0x081cd609 in zend_call_function (fci=0xbfff8c60, fci_cache=0x0) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:873 >> > #10 0x081ccec4 in call_user_function_ex (function_table=0x1, >> > object_pp=0x1, function_name=0x1, retval_ptr_ptr=0x1, param_count=1, >> > params=0x1, no_separation=1, symbol_table=0x1) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:559 >> > #11 0x0815867e in zif_call_user_func_array (ht=2, >> > return_value=0xab5a67c, this_ptr=0x0, return_value_used=1) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/ext/standard/basic_functions.c:1976 >> > #12 0x081f2e5a in zend_do_fcall_common_helper >> > (execute_data=0xbfff9160, opline=0xa7ec7ac, op_array=0xa7e13c4) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2760 >> > #13 0x081f0366 in execute (op_array=0xa7e13c4) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #14 0x081cd609 in zend_call_function (fci=0xbfff92a0, fci_cache=0x0) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:873 >> > #15 0x081ccec4 in call_user_function_ex (function_table=0x1, >> > object_pp=0x1, function_name=0x1, retval_ptr_ptr=0x1, param_count=1, >> > params=0x1, no_separation=1, symbol_table=0x1) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:559 >> > #16 0x081e53eb in zend_std_call_user_call (ht=2, >> > return_value=0xab5a584, this_ptr=0xa5da6a4, return_value_used=1) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_object_handlers.c:609 >> > #17 0x081f2e5a in zend_do_fcall_common_helper >> > (execute_data=0xbfff96f0, opline=0xa6ee900, op_array=0xa6e65f4) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2760 >> > #18 0x081f0366 in execute (op_array=0xa6e65f4) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #19 0x081f2c72 in zend_do_fcall_common_helper >> > (execute_data=0xbfff9970, opline=0xa6cb00c, op_array=0xa6c884c) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2789 >> > #20 0x081f0366 in execute (op_array=0xa6c884c) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #21 0x081f2c72 in zend_do_fcall_common_helper >> > (execute_data=0xbfff9a90, opline=0xa6cefa4, op_array=0xa6cdf98) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:2789 >> > #22 0x081f0366 in execute (op_array=0xa6cdf98) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute.c:1437 >> > #23 0x081cd609 in zend_call_function (fci=0xbfff9bd0, fci_cache=0x0) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:873 >> > #24 0x081ccec4 in call_user_function_ex (function_table=0x1, >> > object_pp=0x1, function_name=0x1, retval_ptr_ptr=0x1, param_count=1, >> > params=0x1, no_separation=1, symbol_table=0x1) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:559 >> > #25 0x081ccdf7 in call_user_function (function_table=0xa432240, >> > object_pp=0x0, function_name=0xa6be23c, retval_ptr=0xbfff9c80, >> > param_count=0, params=0xa6f4f40) >> > at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_execute_API.c:534 >> > #26 0x08158e41 in user_shutdown_function_call >> > (shutdown_function_entry=0xbfff9c80) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/ext/standard/basic_functions.c:2101 >> > #27 0x081dad50 in zend_hash_apply (ht=0xa619e94, apply_func=0x8158dc8 >> > ) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_hash.c:664 >> > #28 0x0815905c in php_call_shutdown_functions () at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/ext/standard/basic_functions.c:2181 >> > #29 0x081a76bd in php_request_shutdown (dummy=0x0) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/main/main.c:1202 >> > #30 0x081fdb2c in main (argc=1, argv=0xbfffa6e4) at >> > >> /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/sapi/cgi/cgi_main.c:1640