|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-11 20:06 UTC] ilia at prohost dot org
[2006-10-16 18:03 UTC] mark at everytruckjob dot com
[2006-11-07 16:34 UTC] ilia at prohost dot org
[2006-11-08 09:35 UTC] mark at everytruckjob dot com
[2006-11-09 20:23 UTC] ilia at prohost dot org
[2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
Description: ------------ Fileinfo package causes segfaults when run under apache 2.2.3 / php5.1.6 or from cli. Reproduce code: --------------- <?php $finfo = new finfo(FILEINFO_MIME); echo $finfo->buffer('test') ."\n"; ?> Under apache/php but not cli the following also causes a segfault: <?php $finfo = finfo_open(FILEINFO_MIME); echo finfo_buffer($finfo, "hello world") ."\n"; finfo_close($finfo); ?> Expected result: ---------------- text/plain; charset=us-ascii Actual result: -------------- Causes a segfault. I tried getting a backtrace by compiling with --enable-debug, but I never got a core dump. Using "gdb httpd" and then "run -X" all I get is the following: Program received signal SIGSEGV, Segmentation fault. 0xb7dc0048 in ?? () gdb) bt #0 0xb7dc0048 in ?? () #1 0x00000061 in ?? () #2 0x00000061 in ?? () #3 0xbf8d7130 in ?? () #4 0xbf8d9158 in ?? () #5 0xb70ab2f2 in ?? () #6 0x776f6e6b in ?? () #7 0x00000000 in ?? () (gdb)