From: oby at mangachicks dot org Operating system: Linux PHP version: 4.3.8 PHP Bug Type: Reproducible crash Bug description: php exits with SEGFAULT (swf creation related)
Description: ------------ Trying to generate a swf file led to a segmentation fault. (used the example found on your webpage http://www.php.net/manual/en/ref.swf.php) here is the configure line: './configure' '--prefix=/usr/local/php4' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-exec-dir=/usr/local/php4/bin' '--with-mysql' '--with-zlib' '--with-gd' '--with-swf=/home/oby/work/dist' '--with-pear' '--with-jpeg-dir=/usr/lib' Only thing changed in the php.ini was allow_call_time_pass_reference (was ON, changed it to OFF) Reproduce code: --------------- It is the Example 1. SWF Example from the php.net website http://www.php.net/manual/en/ref.swf.php Expected result: ---------------- Not very sure, but not a segmentation fault :) Actual result: -------------- Starting program: /usr/local/php4/bin/php /var/www/html/flash_php/index.php Program received signal SIGSEGV, Segmentation fault. 0x4013d121 in vfprintf () from /lib/i686/libc.so.6 (gdb) bt #0 0x4013d121 in vfprintf () from /lib/i686/libc.so.6 #1 0x4013cb46 in vfprintf () from /lib/i686/libc.so.6 #2 0x401422fd in fprintf () from /lib/i686/libc.so.6 #3 0x081686a0 in ss_0161 () #4 0x0816399f in swf_definefont () #5 0x0810975b in zif_swf_definefont (ht=2, return_value=0x8225f04, this_ptr=0x0, return_value_used=0) at /root/stuff/php-4.3.8/ext/swf/swf.c:843 #6 0x0815c98e in execute (op_array=0x8220f4c) at /root/stuff/php-4.3.8/Zend/zend_execute.c:1635 #7 0x0814f597 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/stuff/php-4.3.8/Zend/zend.c:891 #8 0x08127b1f in php_execute_script (primary_file=0xbffff7c0) at /root/stuff/php-4.3.8/main/main.c:1734 #9 0x08161845 in main (argc=2, argv=0xbffff854) at /root/stuff/php-4.3.8/sapi/cli/php_cli.c:822 #10 0x4010b082 in __libc_start_main () from /lib/i686/libc.so.6 -- Edit bug report at http://bugs.php.net/?id=30012&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30012&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30012&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30012&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30012&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30012&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30012&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30012&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30012&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30012&r=support Expected behavior: http://bugs.php.net/fix.php?id=30012&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30012&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30012&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30012&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30012&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30012&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30012&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30012&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30012&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30012&r=mysqlcfg
