Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50262 invoked by uid 1010); 30 Aug 2005 21:32:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50247 invoked from network); 30 Aug 2005 21:32:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2005 21:32:38 -0000 X-Host-Fingerprint: 64.233.184.202 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.202:42945] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 72/AC-15098-470D4134 for ; Tue, 30 Aug 2005 17:32:37 -0400 Received: by wproxy.gmail.com with SMTP id i27so812342wra for ; Tue, 30 Aug 2005 14:32:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q48Lr4kYIT2ZOPFq+tR5kprKJpaJuvkFB0TS2osWHIj3kA0ai4yCVfG+b6QOBZGQDAu5Z+OQ7g+dH14r6m9VgI7AnhuVrtGroobp/9lnpKbWo3OcBMqAX39YULphZ4Jfd/vHCSEtKmanWV7cLOeUVoFHW1TdYNrVIxzFZ9DEeVQ= Received: by 10.54.38.60 with SMTP id l60mr6081956wrl; Tue, 30 Aug 2005 14:32:33 -0700 (PDT) Received: by 10.54.107.8 with HTTP; Tue, 30 Aug 2005 14:32:33 -0700 (PDT) Message-ID: <57792e8505083014323f86ac6@mail.gmail.com> Date: Tue, 30 Aug 2005 14:32:33 -0700 To: Marcus Boerger Cc: internals@lists.php.net In-Reply-To: <1279281695.20050830215401@marcus-boerger.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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> Subject: Re: Re was: [PHP-DEV] 5.0.5RC1 rolled From: iamstever@gmail.com (steve) :) 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 /usr/bin/valgrind --tool=3Dmemcheck --trace-children=3Dyes --log-file=3D/usr/local/apache2/logs/valgrind /usr/local/apache2/fastcgi-bin/php505.fcgi but that didn't work... On 8/30/05, Marcus Boerger wrote: > Hello steve, >=20 > #15 0x081ccec4 in call_user_function_ex (function_table=3D0x1, > object_pp=3D0x1, function_name=3D0x1, retval_ptr_ptr=3D0x1, param_count= =3D1, > params=3D0x1, no_separation=3D1, symbol_table=3D0x1) > at /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zen= d_execute_API.c:559 > #16 0x081e53eb in zend_std_call_user_call (ht=3D2, > return_value=3D0xab5a584, this_ptr=3D0xa5da6a4, return_value_used=3D1) at > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_objec= t_handlers.c:609 >=20 > 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 th= at > this_ptr is already invalid. >=20 > marcus >=20 > Tuesday, August 30, 2005, 9:32:07 PM, you wrote: >=20 > > 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. >=20 > > 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.??? >=20 > > Breakpoint 1, zend_throw_exception_internal (exception=3D0xac25a14) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exc= eptions.c:38 > > 38 if (exception !=3D NULL) { > > (gdb) bt > > #0 zend_throw_exception_internal (exception=3D0xac25a14) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exc= eptions.c:38 > > #1 0x081f33c7 in zend_throw_handler (execute_data=3D0xbfff6be0, > > opline=3D0xa7fde34, op_array=3D0xa5007e8) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2994 > > #2 0x081f0366 in execute (op_array=3D0xa5007e8) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #3 0x081f2c72 in zend_do_fcall_common_helper > > (execute_data=3D0xbfff7690, opline=3D0xa702e48, op_array=3D0xa58c5dc) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2789 > > #4 0x081f0366 in execute (op_array=3D0xa58c5dc) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #5 0x081f2c72 in zend_do_fcall_common_helper > > (execute_data=3D0xbfff86f0, opline=3D0xa825fec, op_array=3D0xa58c50c) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2789 > > #6 0x081f0366 in execute (op_array=3D0xa58c50c) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #7 0x081f2c72 in zend_do_fcall_common_helper > > (execute_data=3D0xbfff8b20, opline=3D0xa72027c, op_array=3D0xa58d7dc) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2789 > > #8 0x081f0366 in execute (op_array=3D0xa58d7dc) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #9 0x081cd609 in zend_call_function (fci=3D0xbfff8c60, fci_cache=3D0x0= ) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:873 > > #10 0x081ccec4 in call_user_function_ex (function_table=3D0x1, > > object_pp=3D0x1, function_name=3D0x1, retval_ptr_ptr=3D0x1, param_count= =3D1, > > params=3D0x1, no_separation=3D1, symbol_table=3D0x1) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:559 > > #11 0x0815867e in zif_call_user_func_array (ht=3D2, > > return_value=3D0xab5a67c, this_ptr=3D0x0, return_value_used=3D1) 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=3D0xbfff9160, opline=3D0xa7ec7ac, op_array=3D0xa7e13c4) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2760 > > #13 0x081f0366 in execute (op_array=3D0xa7e13c4) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #14 0x081cd609 in zend_call_function (fci=3D0xbfff92a0, fci_cache=3D0x0= ) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:873 > > #15 0x081ccec4 in call_user_function_ex (function_table=3D0x1, > > object_pp=3D0x1, function_name=3D0x1, retval_ptr_ptr=3D0x1, param_count= =3D1, > > params=3D0x1, no_separation=3D1, symbol_table=3D0x1) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:559 > > #16 0x081e53eb in zend_std_call_user_call (ht=3D2, > > return_value=3D0xab5a584, this_ptr=3D0xa5da6a4, return_value_used=3D1) = at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_obj= ect_handlers.c:609 > > #17 0x081f2e5a in zend_do_fcall_common_helper > > (execute_data=3D0xbfff96f0, opline=3D0xa6ee900, op_array=3D0xa6e65f4) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2760 > > #18 0x081f0366 in execute (op_array=3D0xa6e65f4) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #19 0x081f2c72 in zend_do_fcall_common_helper > > (execute_data=3D0xbfff9970, opline=3D0xa6cb00c, op_array=3D0xa6c884c) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2789 > > #20 0x081f0366 in execute (op_array=3D0xa6c884c) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #21 0x081f2c72 in zend_do_fcall_common_helper > > (execute_data=3D0xbfff9a90, opline=3D0xa6cefa4, op_array=3D0xa6cdf98) a= t > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:2789 > > #22 0x081f0366 in execute (op_array=3D0xa6cdf98) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute.c:1437 > > #23 0x081cd609 in zend_call_function (fci=3D0xbfff9bd0, fci_cache=3D0x0= ) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:873 > > #24 0x081ccec4 in call_user_function_ex (function_table=3D0x1, > > object_pp=3D0x1, function_name=3D0x1, retval_ptr_ptr=3D0x1, param_count= =3D1, > > params=3D0x1, no_separation=3D1, symbol_table=3D0x1) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:559 > > #25 0x081ccdf7 in call_user_function (function_table=3D0xa432240, > > object_pp=3D0x0, function_name=3D0xa6be23c, retval_ptr=3D0xbfff9c80, > > param_count=3D0, params=3D0xa6f4f40) > > at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_exe= cute_API.c:534 > > #26 0x08158e41 in user_shutdown_function_call > > (shutdown_function_entry=3D0xbfff9c80) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/ext/standard/= basic_functions.c:2101 > > #27 0x081dad50 in zend_hash_apply (ht=3D0xa619e94, apply_func=3D0x8158d= c8 > > ) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/Zend/zend_has= h.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=3D0x0) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/main/main.c:1= 202 > > #30 0x081fdb2c in main (argc=3D1, argv=3D0xbfffa6e4) at > > /root/webserver_software_tmp_fastcgi_apache2/php-5.0.5RC2/sapi/cgi/cgi_= main.c:1640 >=20 >=20 >