Bug #66065 [Opn->Fbk]: read_exif_data fail with 'Segmentation fault'
| From: | remi@php.net | Date: | Sat, 09 Nov 2013 15:35:09 +0000 |
| Subject: | Bug #66065 [Opn->Fbk]: read_exif_data fail with 'Segmentation fault' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182680@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66065&edit=1
ID: 66065
Updated by: remi@php.net
Reported by: szerencsits dot michael at gmx dot at
Summary: read_exif_data fail with 'Segmentation fault'
-Status: Open
+Status: Feedback
Type: Bug
Package: EXIF related
Operating System: Fedora Core 19
PHP Version: 5.5.5
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-11-09 15:34:52] remi@php.net
Sorry, but I cannot reproduce.
$ run with php ./rdexif.php failing.jpg
Array
(
[FileName] => failing.jpg
[FileDateTime] => 1384010956
[FileSize] => 3142954
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, INTEROP, WINXP
...
It will probably simpler to let "abrt" report the segfault with a backtrace.
------------------------------------------------------------------------
[2013-11-08 15:52:00] szerencsits dot michael at gmx dot at
[root@server ~]# uname -a
Linux server.localdomain 3.11.4-201.fc19.x86_64 #1 SMP Thu Oct 10 14:11:18 UTC 2013 x86_64 x86_64
x86_64 GNU/Linux
------------------------------------------------------------------------
[2013-11-08 15:02:00] szerencsits dot michael at gmx dot at
Description:
------------
Hello,
I installed the php rpm from Fedora 19 and updated it also to the latest available fedora version:
[root@server ~]# php -v
PHP 5.5.5 (cli) (built: Oct 17 2013 06:05:14)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
I've I now use read_exif_data to get the EXIF data it fails with 'Segmentation
fault'. This happen only with jpg from my 'newer' camera. If I use a jpg from my
'old' camera it work. Here a working and a failing picture:
http://zerberus.amolymp.net/fotos/failing.jpg
http://zerberus.amolymp.net/fotos/working.jpg
Test script:
---------------
<?php #filename rdexif.php
$exif_data = read_exif_data($argv[1]);
print_r($exif_data);
?>
run with php ./rdexif.php failing.jpg
run with php ./rdexif.php working.jpg
Expected result:
----------------
EXIF data ARRAY
Actual result:
--------------
Segmentation Fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66065&edit=1