#21180 [Fbk->NoF]: apd (probably apd_execute ();) initiates segfault in php-cli

From: Date: Tue, 29 Jul 2003 12:23:16 +0000
Subject: #21180 [Fbk->NoF]: apd (probably apd_execute ();) initiates segfault in php-cli
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18879@lists.php.net to get a copy of this message
ID: 21180 Updated by: sniper@php.net Reported By: tony2001 at ua dot fm -Status: Feedback +Status: No Feedback Bug Type: PEAR related Operating System: RH 7.3 PHP Version: 4.3.0RC4 Assigned To: gschlossnagle New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-07-24 02:32:02] meebey@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip and report if you still got the problem... ------------------------------------------------------------------------ [2003-05-13 09:43:23] dholmes at jccc dot net I'm running php 4.3.1 (custom build) with apd 0.4p2 on RH 8.0 yet I get roughly the same problem. The ticket is currently closed, but since 4.3.1 was most likely the STABLE cvs release you spoke of...I figured I'd update the ticket. Here is what my dump looked like. Trying different flags yields similar results... 20 rows of info then segfault. Granted...it's a biggish system I'm trying to profile. ;-) Anyway...great stuff!!! --------------------------- (gdb) FILE /usr/local/bin/php Reading symbols from /usr/local/bin/php...done. (gdb) set args ./pprofp -u /tmp/dump_dir/dholmes/pprof.22134 (gdb) run Starting program: /vol1/local/bin/php ./pprofp -u /tmp/dump_dir/dholmes/pprof.22134 [New Thread 16384 (LWP 22338)] Trace for /vol1/home/dholmes/site_html/www.remote-clean/admin/common.inc Total Elapsed Time = 2.40 Total System Time = 0.07 Total User Time = 1.75 Real User System secs/ cumm %Time (excl/cumm) (excl/cumm) (excl/cumm) Calls call s/call Memory Usage Name -------------------------------------------------------------------------------------- 46.3 0.90 0.90 0.81 0.81 0.01 0.01 15292 0.0001 0.0001 12760 strlen 10.9 0.30 0.30 0.19 0.19 0.00 0.00 920 0.0002 0.0002 198040 mysql_fetch_array 2.9 0.10 0.10 0.05 0.05 0.00 0.00 390 0.0001 0.0001 -90296 get_class 2.3 0.11 0.11 0.04 0.04 0.00 0.00 565 0.0001 0.0001 35208 is_object 2.3 0.05 0.05 0.04 0.04 0.01 0.01 5 0.0080 0.0080 701664 require_once 2.3 0.03 0.22 0.04 0.05 0.00 0.00 107 0.0004 0.0005 -109120 sm_sectiontag->getvar 2.3 0.01 0.01 0.04 0.04 0.00 0.00 87 0.0005 0.0005 4352 mysql_escape_string 2.3 0.10 0.10 0.04 0.04 0.00 0.00 107 0.0004 0.0004 552 mysql_query 1.7 0.20 0.20 0.03 0.03 0.00 0.00 396 0.0001 0.0001 31368 sizeof 1.7 0.02 0.32 0.03 0.22 0.00 0.00 935 0.0000 0.0002 145368 db_mysql->fetchinto 1.1 0.01 0.01 0.02 0.02 0.00 0.00 91 0.0002 0.0002 10328 gettype 1.1 0.00 0.00 0.02 0.02 0.00 0.00 64 0.0003 0.0003 3656 db_result->db_result 1.1 0.02 0.02 0.02 0.02 0.00 0.00 2 0.0100 0.0100 278784 define 1.1 0.00 0.01 0.02 0.02 0.01 0.01 77 0.0003 0.0003 976 resource_version->_startelement 1.1 0.02 0.12 0.02 0.09 0.01 0.02 17 0.0012 0.0053 448376 include_once 1.1 0.02 0.02 0.02 0.02 0.00 0.00 262 0.0001 0.0001 2296 is_resource 1.1 0.07 0.07 0.02 0.02 0.01 0.01 556 0.0000 0.0000 21768 is_array 0.6 0.01 0.01 0.01 0.01 0.00 0.00 107 0.0001 0.0001 -21000 db_mysql->modifyquery 0.6 0.01 0.31 0.01 0.21 0.01 0.01 871 0.0000 0.0002 6072 db_mysql->fetchrow 0.6 0.00 0.23 0.01 0.10 0.00 0.01 107 0.0001 0.0009 -848 db_mysql->simplequery Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 22338)] 0x0811a65e in zend_get_executed_lineno () at /vol1/home/dholmes/build/php-4.3.1/Zend/zend_execute_API.c:269 269 return active_opline->lineno; (gdb) bt #0 0x0811a65e in zend_get_executed_lineno () at /vol1/home/dholmes/build/php-4.3.1/Zend/zend_execute_API.c:269 #1 0x40017dec in apd_execute () from /usr/local/lib/php/extensions/no-debug-non-zts-20020429/apd.so #2 0x0811af0f in call_user_function_ex (function_table=0x81788c0, object_pp=0x0, function_name=0x81fe5dc, retval_ptr_ptr=0xbfffd638, param_count=0, params=0x81be39c, no_separation=1, symbol_table=0x0) at /vol1/home/dholmes/build/php-4.3.1/Zend/zend_execute_API.c:557 #3 0x0811aa1f in call_user_function (function_table=0x8178d08, object_pp=0x0, function_name=0x81fe5dc, retval_ptr=0xbfffd670, param_count=0, params=0x81c3090) at /vol1/home/dholmes/build/php-4.3.1/Zend/zend_execute_API.c:399 #4 0x080a09f8 in user_shutdown_function_call (shutdown_function_entry=0x81fe764) at /vol1/home/dholmes/build/php-4.3.1/ext/standard/basic_functions.c:2013 #5 0x08125e39 in zend_hash_apply (ht=0x81fecbc, apply_func=0x80a09bc <user_shutdown_function_call>) at /vol1/home/dholmes/build/php-4.3.1/Zend/zend_hash.c:688 #6 0x080a0c8d in php_call_shutdown_functions () at /vol1/home/dholmes/build/php-4.3.1/ext/standard/basic_functions.c:2094 #7 0x080fc3bf in php_request_shutdown (dummy=0x0) at /vol1/home/dholmes/build/php-4.3.1/main/main.c:924 #8 0x08132df5 in main (argc=4, argv=0xbfffde54) at /vol1/home/dholmes/build/php-4.3.1/sapi/cli/php_cli.c:803 #9 0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6 ------------------------------------------------------------------------ [2003-04-03 01:46:34] tony2001 at ua dot fm I've tested it with php-STABLE. It seems to be working ok, but I'll continue testing. Thanks to you. ------------------------------------------------------------------------ [2003-04-02 10:56:34] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-03-27 07:39:13] mj@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ 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/21180 -- Edit this bug report at http://bugs.php.net/?id=21180&edit=1

« previous php.pear.dev (#18879) next »