Bug #65960 [Fbk->NoF]: Segmentation fault when calling finfo_file

From: Date: Tue, 30 Dec 2014 10:42:04 +0000
Subject: Bug #65960 [Fbk->NoF]: Segmentation fault when calling finfo_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189436@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65960&edit=1 ID: 65960 Updated by: php-bugs@lists.php.net Reported by: j at dvsl dot co Summary: Segmentation fault when calling finfo_file -Status: Feedback +Status: No Feedback Type: Bug Package: Filesystem function related Operating System: Linux PHP Version: Irrelevant Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-02-08 21:34:08] andrey at holey dot org Confirmed, duplicate of https://bugs.php.net/bug.php?id=64836 ------------------------------------------------------------------------ [2013-10-25 06:29:00] laruence@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2013-10-24 15:02:42] j at dvsl dot co Description: ------------ PHP/Apache is reporting default when trying to use finfo_file() method. When opening from web (through apache2), segfault is reported in error log: [Wed Oct 23 14:32:25 2013] [notice] child pid 29084 exit signal Segmentation fault (11) When executing from cli e.g. php -q test.php, output is okay. php -v PHP 5.5.4-pl0-gentoo (cli) (built: Oct 18 2013 19:11:02) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies /usr/sbin/apache2 -v Server version: Apache/2.2.25 (Unix) Server built: Sep 20 2013 14:16:11 Test script: --------------- <?php $finfo = finfo_open(FILEINFO_MIME_TYPE, null); $info = finfo_file($finfo, "index.php"); Expected result: ---------------- mime type of the file should be returned Actual result: -------------- nothing - apache/php segfaults ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65960&edit=1

« previous php.bugs (#189436) next »