ID: 15703 User updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] -Status: Closed +Status: Open Bug Type: SWF related Operating System: Red Hat Linux 7.1 -PHP Version: 4.1.1 +PHP Version: 4.2.3 New Comment:
I used php 4.2.3 and apache 2.0.43 this time and swf extension is still causing segmentation fault. PHP Configure -------------- ./configure --with-config-file-path=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs --prefix=/wwwroot/php --enable-trans-sid --with-java --with-swf --enable-debug Here is gdb output when a file with phpinfo() is accessed: [root@sukhwinder php-4.2.3]# gdb /wwwroot/bin/httpd GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run -X Starting program: /wwwroot/bin/httpd -X [New Thread 1024 (LWP 9038)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 9038)] 0x40454bf9 in zm_activate_swf (type=1, module_number=2, tsrm_ls=0x8100f60) at swf.c:173 173 SWFG(use_file) = 0; (gdb) Previous Comments: ------------------------------------------------------------------------ [2002-05-11 11:59:18] [EMAIL PROTECTED] This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. Thank you for the report. ------------------------------------------------------------------------ [2002-04-25 18:27:59] [EMAIL PROTECTED] This has been hiding as feedback under Apache2, but it's most likely not Apache2 related, and I didn't want this patch, if valid, to be forgotten. So I'm reopening and reclassifying as SWF related. Thanks... ------------------------------------------------------------------------ [2002-04-19 11:41:19] [EMAIL PROTECTED] Please try again with Apache 2.0.35 (GA) and PHP from CVS (either the 4.2.0 branch or HEAD). ------------------------------------------------------------------------ [2002-03-08 14:46:48] [EMAIL PROTECTED] I don't know much about cvs and how diff works. So I couldn't make anything out of these lines. One thing I did was, removed --with-swf from configure option and everything worked fine. I want to help but I have a very slow pentium-1 computer and a slow dial up connection (in punjab-IN) so it takes at least one hour to compile php alone. I know little C so if you tell me what to add, what to remove and where then I can make that change and try to compile again and see if that works. ------------------------------------------------------------------------ [2002-03-07 18:00:41] [EMAIL PROTECTED] Hmm .. have you compiled php with thread support? It seems the swf module is missing an ZEND_INIT_MODULE_GLOBALS() call in PHP_MINIT_FUNCTION(). Can you test this patch (against current CVS) ? diff -u -r1.44 swf.c --- swf.c 11 Dec 2001 15:30:38 -0000 1.44 +++ swf.c 7 Mar 2002 22:59:37 -0000 @@ -138,10 +138,19 @@ } /* }}} */ +/* {{{ php_swf_init_globals + */ +static void php_swf_init_globals(zend_swf_globals *swf_globals) { + swf_globals->use_file = 0; + swf_globals->tmpfile_name = NULL; +} + /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(swf) { + ZEND_INIT_MODULE_GLOBALS(swf, php_swf_init_globals, NULL); + REGISTER_LONG_CONSTANT("MOD_COLOR", MOD_COLOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("MOD_MATRIX", MOD_MATRIX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("TYPE_PUSHBUTTON", TYPE_PUSHBUTTON, CONST_CS | CONST_PERSISTENT); ------------------------------------------------------------------------ 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/15703 -- Edit this bug report at http://bugs.php.net/?id=15703&edit=1