Bug #65960 [Com]: Segmentation fault when calling finfo_file

From: Date: Sat, 08 Feb 2014 21:34:09 +0000
Subject: Bug #65960 [Com]: Segmentation fault when calling finfo_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184221@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
 Comment by:         andrey at holey dot org
 Reported by:        j at dvsl dot co
 Summary:            Segmentation fault when calling finfo_file
 Status:             Feedback
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Confirmed, duplicate of https://bugs.php.net/bug.php?id=64836


Previous Comments:
------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#184221) next »