#22182 [Opn]: apd segfaults with auto_prepend_file

From: Date: Mon, 28 Apr 2003 08:22:53 +0000
Subject: #22182 [Opn]: apd segfaults with auto_prepend_file
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15637@lists.php.net to get a copy of this message
ID: 22182 Updated by: arnaud@php.net Reported By: chregu@php.net Status: Open Bug Type: PEAR related Operating System: Linux PHP Version: 4.3.0 -Assigned To: +Assigned To: gschlossnagle@ph New Comment: Assigning to georges whois already monitoring it. Previous Comments: ------------------------------------------------------------------------ [2003-02-16 10:00:45] chregu@php.net here we go: the 2 php files just have print "hello world"; .htaccess: php_value auto_prepend_file "config.inc.php" backtrace: Program received signal SIGSEGV, Segmentation fault. 0x402a009e in zend_get_executed_lineno () at /opt/cvs/php4.3/Zend/zend_execute_API.c:269 269 return active_opline->lineno; (gdb) bt #0 0x402a009e in zend_get_executed_lineno () at /opt/cvs/php4.3/Zend/zend_execute_API.c:269 #1 0x40315a15 in apd_execute (op_array=0x81851a4) at /root/tmp/apd-0.4p2/php_apd.c:738 #2 0x402a7a43 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /opt/cvs/php4.3/Zend/zend.c:925 #3 0x40282588 in php_execute_script (primary_file=0xbffff840) at /opt/cvs/php4.3/main/main.c:1582 #4 0x402b80be in apache_php_module_main (r=0x817f11c, display_source_mode=0) at /opt/cvs/php4.3/sapi/apache/sapi_apache.c:55 #5 0x402b8b03 in send_php (r=0x817f11c, display_source_mode=0, filename=0x0) at /opt/cvs/php4.3/sapi/apache/mod_php4.c:610 #6 0x402b8ca2 in send_parsed_php (r=0x817f11c) at /opt/cvs/php4.3/sapi/apache/mod_php4.c:625 #7 0x08073e79 in ap_invoke_handler () #8 0x0808964f in process_request_internal () #9 0x080896b6 in ap_process_request () #10 0x080800c6 in child_main () #11 0x08080281 in make_child () #12 0x080803fc in startup_children () #13 0x08080a8d in standalone_main () #14 0x080812fc in main () #15 0x400b29f1 in __libc_start_main () from /lib/libc.so.6 if I do an include in the first php, it works fine. chregu ------------------------------------------------------------------------ [2003-02-12 14:34:15] gschlossnagle@php.net A very trivial test doesn't reproduce for me. Can you supply a minimal testcase and or a gdb backtrace? ------------------------------------------------------------------------ [2003-02-12 03:41:21] chregu@php.net The subject says it. If I have a auto_prepend_file ini directive in .htaccess (didn't check in php.ini), apd segfaults. It's the latest released apd-version (0.4p2) If I move the to-be-prepended file to the php file and do "include()", it works without problems Otherwise: great product :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22182&edit=1

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