php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65960 Segmentation fault when calling finfo_file
Submitted: 2013-10-24 15:02 UTC Modified: 2014-12-30 10:42 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:4 (100.0%)
From: j at dvsl dot co Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: j at dvsl dot co
New email:
PHP Version: OS:

 

 [2013-10-24 15:02 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-25 06:29 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2013-10-25 06:29 UTC] 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.


 [2014-02-08 21:34 UTC] andrey at holey dot org
Confirmed, duplicate of https://bugs.php.net/bug.php?id=64836
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC