Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72707 invoked by uid 1010); 5 Sep 2003 07:06:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72681 invoked from network); 5 Sep 2003 07:05:59 -0000 Received: from unknown (HELO is.magroup.ru) (213.147.47.162) by pb1.pair.com with SMTP; 5 Sep 2003 07:05:59 -0000 Received: from grp-dovgal.MEDIA-ARTS.RU ([192.168.3.226]) by is.magroup.ru with Microsoft SMTPSVC(5.0.2195.5329); Fri, 5 Sep 2003 11:05:43 +0400 Date: Fri, 5 Sep 2003 11:05:43 +0400 To: Jani Taskinen Cc: internals@lists.php.net Message-ID: <20030905110543.54dd15d3.tony2001@phpclub.net> In-Reply-To: References: <20030904180225.44bd1128.tony2001@phpclub.net> X-Mailer: Sylpheed version 0.9.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Sep 2003 07:05:43.0671 (UTC) FILETIME=[1F6A6070:01C3737C] Subject: Re: [PHP-DEV] [PATCH] for ming.c to work with HEAD From: tony2001@phpclub.net (Antony Dovgal) On Thu, 4 Sep 2003 20:01:22 +0300 (EEST) Jani Taskinen wrote: > > It would work fine (dunno what you mean with "work" compile/using?) > if you really used HEAD..try getting the real HEAD sources first. I mean it currently segfaults on almost every function. For example, script: produces segfault with backtrace below: Starting program: /usr/local/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. zend_hash_apply_with_argument (ht=0x0, apply_func=0x40334210 , argument=0x1) at /root/test/php-src/Zend/zend_hash.c:674 674 HASH_PROTECT_RECURSION(ht); (gdb) bt #0 zend_hash_apply_with_argument (ht=0x0, apply_func=0x40334210 , argument=0x1) at /root/test/php-src/Zend/zend_hash.c:674 #1 0x4033ec3b in _object_and_properties_init (arg=0x80cca34, class_type=0x403b15e0, properties=0x0) at /root/test/php-src/Zend/zend_API.c:703 #2 0x4033ec7e in _object_init_ex (arg=0x0, class_type=0x0) at /root/test/php-src/Zend/zend_API.c:725 #3 0x40242b37 in zif_swfmovie_init (ht=1, return_value=0x80ce28c, this_ptr=0x80cca34, return_value_used=0) at /root/test/php-src/ext/ming/ming.c:1335 #4 0x4035b877 in zend_do_fcall_common_helper (execute_data=0xbfffd080, op_array=0x80cc9ac) at /root/test/php-src/Zend/zend_execute.c:2541 #5 0x4035b90c in zend_do_fcall_by_name_handler (execute_data=0x2, op_array=0x0) at /root/test/php-src/Zend/zend_execute.c:2656 #6 0x40357df6 in execute (op_array=0x80cc9ac) at /root/test/php-src/Zend/zend_execute.c:1267 #7 0x4033d6f3 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/test/php-src/Zend/zend.c:1018 #8 0x40308667 in php_execute_script (primary_file=0xbffff3e0) at /root/test/php-src/main/main.c:1625 #9 0x40361bae in apache_php_module_main (r=0x816db5c, display_source_mode=0) at /root/test/php-src/sapi/apache/sapi_apache.c:54 #10 0x4036270b in send_php (r=0x816db5c, display_source_mode=0, filename=0x0) at /root/test/php-src/sapi/apache/mod_php5.c:621 #11 0x403628c1 in send_parsed_php (r=0x0) at /root/test/php-src/sapi/apache/mod_php5.c:636 #12 0x08068eee in ap_invoke_handler () #13 0x0807e83e in process_request_internal () #14 0x0807e89b in ap_process_request () #15 0x0807535f in child_main () #16 0x08075511 in make_child () #17 0x08075690 in startup_children () #18 0x08075d00 in standalone_main () #19 0x0807659a in main () #20 0x400d1af7 in __libc_start_main () from /lib/i686/libc.so.6 Patched version works ok (doesn't segfault =)) for me. My configuration: Linux version 2.4.21 (gcc version 3.3) Apache 1.3.27 PHP Version 5.0.0b2-dev Build Date - Sep 5 2003 10:49:16 (grabbed from CVS 15 minutes ago) Configure Command - './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-ming' ming-0.2a was taken yesterday from SF.net Am I doing smthing wrong ? --- WBR, Antony Dovgal aka tony2001 tony2001@phpclub.net