ID: 35781 Comment by: judas dot iscariote at gmail dot com Reported By: sqchen at citiz dot net Status: Open Bug Type: Unknown/Other Function Operating System: redhat 7.3 PHP Version: 5.1.1 New Comment:
==308== Process terminating with default action of signal 11 (SIGSEGV) ==308== Bad permissions for mapped region at address 0x1669DFFF ==308== at 0x11B1CEC7: memcpy (in /usr/lib64/valgrind/vgpreload_memcheck.so) ==308== by 0x508DDA: php_stream_bucket_make_writeable (string3.h:52) ==308== by 0x4E48C4: ??? (filters.c:46) ==308== by 0x506424: ??? (streams.c:458) ==308== by 0x50689A: _php_stream_read (streams.c:584) ==308== by 0x506E9F: _php_stream_passthru (streams.c:1183) ==308== by 0x49F60E: zif_fpassthru (file.c:1487) ==308== by 0x54F5E4: ??? (zend_vm_execute.h:192) ==308== by 0x54ECD2: execute (zend_vm_execute.h:92) ==308== by 0x526ADA: zend_eval_string (zend_execute_API.c:1085) ==308== by 0x526C27: zend_eval_string_ex (zend_execute_API.c:1119) ==308== by 0x5C2FBD: main (php_cli.c:1116) php -v PHP 5.1.2RC1 (cli) (built: Dec 22 2005 19:34:24) Copyright (c) 1997-2005 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies Previous Comments: ------------------------------------------------------------------------ [2005-12-23 03:00:41] sqchen at citiz dot net Description: ------------ stream_filter_append($fp, "string.rot13", -49) will cause Segmentation fault Reproduce code: --------------- <?php $fp = fopen("test.txt", "w"); stream_filter_append($fp, "string.rot13", -49); fwrite($fp, "This is a test\n"); rewind($fp); fpassthru($fp); fclose($fp); ?> Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35781&edit=1