Public bug reported:

I was able to reproduce this on multiple 11.10 machines.

Steps to reproduce:
Boot new instance in ec2, run the following commands:

sudo apt-get update
sudo apt-get install php5-ffmpeg php5-cli
sudo  /etc/init.d/apache2 restart
cd /var/www
sudo chown ubuntu .
curl -LO 
http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
tar xvf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/
php test_ffmpeg.php

The last line of output will be "Segmentation fault".

Test using a browser:

curl -v http://localhost/ffmpeg-php-0.6.0/test_ffmpeg.php

The final few lines of curl output will be:

frame count = 0
frame rate = 0.000 fps
* transfer closed with outstanding read data remaining
* Closing connection #0
curl: (18) transfer closed with outstanding read data remaining

And if you look at /var/log/apache2/error.log, the relevant line will
be:

child pid 3118 exit signal Segmentation fault (11)

By disabling various functions in the test_ffmpeg.php script, I have
found that the problematic functions are:

getComment()
getTitle()
getAuthor()
getCopyright() 

Calling any of those four functions will cause a segfault.

ubuntu@domU-12-31-39-16-CA-2D:~$ lsb_release -rd
Description:    Ubuntu 11.10
Release:        11.10
ubuntu@domU-12-31-39-16-CA-2D:~$ apt-cache policy php5-ffmpeg
php5-ffmpeg:
  Installed: 0.6.0-2ubuntu2
  Candidate: 0.6.0-2ubuntu2
  Version table:
 *** 0.6.0-2ubuntu2 0
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ oneiric/universe 
amd64 Packages
        100 /var/lib/dpkg/status
ubuntu@domU-12-31-39-16-CA-2D:~$

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: php5-ffmpeg 0.6.0-2ubuntu2
ProcVersionSignature: User Name 3.0.0-14.23-virtual 3.0.9
Uname: Linux 3.0.0-14-virtual x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Mar 22 06:22:44 2012
Ec2AMI: ami-4fa37426
Ec2AMIManifest: 
ubuntu-us-east-1/images/ubuntu-oneiric-11.10-amd64-server-20120108.manifest.xml
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: m1.small
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ffmpeg-php
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ffmpeg-php (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/961896

Title:
  segfault when using metadata functions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ffmpeg-php/+bug/961896/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to