Debian Bug report logs - #600783
php5-ffmpeg: Segfault when using toGDImage

version graph

Package: php5-ffmpeg; Maintainer for php5-ffmpeg is (unknown);

Reported by: Raiser <raiser@raiser.tomsk.ru>

Date: Wed, 20 Oct 2010 03:51:01 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version ffmpeg-php/0.6.0-2

Fixed in version 0.6.0-2.2+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#600783; Package php5-ffmpeg. (Wed, 20 Oct 2010 03:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Raiser <raiser@raiser.tomsk.ru>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 20 Oct 2010 03:51:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Raiser <raiser@raiser.tomsk.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-ffmpeg: Segfault when using toGDImage
Date: Wed, 20 Oct 2010 10:01:29 +0700
Package: php5-ffmpeg
Version: 0.6.0-2
Severity: normal

Hi

When calling toGDImage i got this:

[Mon Oct 18 11:52:58 2010] [notice] child pid 26401 exit signal
Segmentation fault (11)


$this->video = new ffmpeg_movie($path);
$frame = $this->video->getFrame($num);
$image = $frame->toGDImage();

thanx!



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages php5-ffmpeg depends on:
ii  libapache2-mod-php 5.3.2-2               server-side, HTML-embedded scripti
ii  libavcodec52       5:0.6~svn20100726-0.0 library to encode decode multimedi
ii  libavformat52      5:0.6~svn20100726-0.0 ffmpeg file format library
ii  libc6              2.11.2-6              Embedded GNU C Library: Shared lib
ii  libswscale0        5:0.6~svn20100726-0.0 ffmpeg video scaling library
ii  php5-cli [phpapi-2 5.3.2-2               command-line interpreter for the p

Versions of packages php5-ffmpeg recommends:
ii  php5-gd                       5.3.2-2    GD module for php5

php5-ffmpeg suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#600783; Package php5-ffmpeg. (Mon, 06 Dec 2010 22:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Emil Sedgh <emilsedgh@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Mon, 06 Dec 2010 22:00:03 GMT) (full text, mbox, link).


Message #10 received at 600783@bugs.debian.org (full text, mbox, reply):

From: Emil Sedgh <emilsedgh@gmail.com>
To: 600783@bugs.debian.org
Subject: Confirm
Date: Tue, 7 Dec 2010 01:26:15 +0330
I can confirm this issue. I have Debian Sid and apache segfaults when
i call ffmpeg_frame->toGDImage().

Here is a part of backtrace:

*** glibc detected *** /usr/sbin/apache2: double free or corruption
(out): 0x00007ff1ddba9c20 ***
======= Backtrace: =========
/lib/libc.so.6(+0x71ad6)[0x7ff1d9912ad6]
/lib/libc.so.6(cfree+0x6c)[0x7ff1d991784c]
/usr/lib/libavutil.so.50(av_freep+0xc)[0x7ff1d1a03a8c]
/usr/lib/libswscale.so.0(sws_freeContext+0x46)[0x7ff1d2bdb416]
/usr/lib/php5/20090626/ffmpeg.so(ffmpeg_img_convert+0x92)[0x7ff1d2df4182]
/usr/lib/php5/20090626/ffmpeg.so(_php_convert_frame+0x63)[0x7ff1d2df3ac3]
/usr/lib/php5/20090626/ffmpeg.so(zim_ffmpeg_frame_toGDImage+0x85)[0x7ff1d2df3ba5]




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#600783; Package php5-ffmpeg. (Wed, 05 Jan 2011 01:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Raphael Geissert <geissert@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 05 Jan 2011 01:39:03 GMT) (full text, mbox, link).


Message #15 received at 600783@bugs.debian.org (full text, mbox, reply):

From: Raphael Geissert <geissert@debian.org>
To: Emil Sedgh <emilsedgh@gmail.com>, 600783@bugs.debian.org, 600783-submitter@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: [php-maint] Bug#600783: Confirm
Date: Tue, 4 Jan 2011 19:35:53 -0600
tag 600783 moreinfo unreproducible
thanks

Hi,

On 6 December 2010 15:56, Emil Sedgh <emilsedgh@gmail.com> wrote:
> I can confirm this issue. I have Debian Sid and apache segfaults when
> i call ffmpeg_frame->toGDImage().
>
> Here is a part of backtrace:

I'm unable to reproduce the error, could you please provide a complete
backtrace and more details about the test conditions? You can find
instructions to generate the backtrace at:
http://bugs.php.net/bugs-generating-backtrace.php

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net




Added tag(s) unreproducible and moreinfo. Request was from Raphael Geissert <geissert@debian.org> to control@bugs.debian.org. (Wed, 05 Jan 2011 01:39:05 GMT) (full text, mbox, link).


Message sent on to Raiser <raiser@raiser.tomsk.ru>:
Bug#600783. (Wed, 05 Jan 2011 01:39:07 GMT) (full text, mbox, link).


Information stored :
Bug#600783; Package php5-ffmpeg. (Wed, 05 Jan 2011 06:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Дмитрий Алин <raiser@raiser.tomsk.ru>:
Extra info received and filed, but not forwarded. (Wed, 05 Jan 2011 06:51:02 GMT) (full text, mbox, link).


Message #25 received at 600783-quiet@bugs.debian.org (full text, mbox, reply):

From: Дмитрий Алин <raiser@raiser.tomsk.ru>
To: Raphael Geissert <geissert@debian.org>, 600783-quiet@bugs.debian.org
Subject: Re: Bug#600783: [php-maint] Bug#600783: Confirm
Date: Wed, 5 Jan 2011 12:03:52 +0600
В Tue, 4 Jan 2011 19:35:53 -0600
Raphael Geissert <geissert@debian.org> пишет:

> tag 600783 moreinfo unreproducible
> thanks
> 
> Hi,
> 
> On 6 December 2010 15:56, Emil Sedgh <emilsedgh@gmail.com> wrote:
> > I can confirm this issue. I have Debian Sid and apache segfaults
> > when i call ffmpeg_frame->toGDImage().
> >
> > Here is a part of backtrace:
> 
> I'm unable to reproduce the error, could you please provide a complete
> backtrace and more details about the test conditions? You can find
> instructions to generate the backtrace at:
> http://bugs.php.net/bugs-generating-backtrace.php
> 
> Cheers,

Thanks for your reply.

During this time i changed the code many times. Now i'm using
console ffmpeg via shell_exec function because it is easier and faster
then php ffmpeg to gd.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#600783; Package php5-ffmpeg. (Fri, 17 Jun 2011 09:06:15 GMT) (full text, mbox, link).


Acknowledgement sent to bodik <bodik@civ.zcu.cz>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 17 Jun 2011 09:06:15 GMT) (full text, mbox, link).


Message #30 received at 600783@bugs.debian.org (full text, mbox, reply):

From: bodik <bodik@civ.zcu.cz>
To: 600783@bugs.debian.org
Cc: jkriz@profesionalita.cz
Subject: php5-ffmpeg: Segfault when using toGDImage
Date: Fri, 17 Jun 2011 10:57:27 +0200
Hello,

yesterday we have encountered exacly the same problem. We found that using
php5-ffmpeg from debian build segfaults in toGDImage. while googleing we derived
 this workaround, which is basically only rebuild of debian sources, with minor
change in source code, probably due to name refactoring of some constat


cd /tmp
rm -fr ffmpeg*
aptitude purge php5-ffmpeg
apt-get source php5-ffmpeg
rm -rf ffmpeg-php-0.6.0/
dpkg-source -x ffmpeg-php_0.6.0-2.dsc
cd ffmpeg-php-0.6.0
#http://ubuntuforums.org/showpost.php?p=7022607&postcount=8
vi ffmpeg_frame.c
 :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
 :w
 :q!
dpkg-buildpackage
cd ..



but anyway, we were unable to build pure debian sources, without that vi fix ;((

anycase, crashing could be somehow related to ffmpeg itself or dynamic linking,
because we'r not using squeezes builds but other builds with mp3 codec enabled from:

 deb http://www.debian-multimedia.org squeeze main non-free

Also we can provide you with our test case ...

Best regards
Radoslav Bodo

-----------------------------------------

ii  ffmpeg                                   5:0.6.1+svn20101128-0.2
ii  libapache2-mod-php5                      5.3.3-7+squeeze1
ii  libavcodec52                             5:0.6.1+svn20101128-0.2
ii  libavcore0                               5:0.6.1+svn20101128-0.2
ii  libavdevice52                            5:0.6.1+svn20101128-0.2
ii  libavfilter1                             5:0.6.1+svn20101128-0.2
ii  libavformat52                            5:0.6.1+svn20101128-0.2
ii  libavutil50                              5:0.6.1+svn20101128-0.2
ii  libswscale0                              5:0.6.1+svn20101128-0.2
ii  php-pear                                 5.3.3-7+squeeze1
ii  php5-cgi                                 5.3.3-7+squeeze1
ii  php5-cli                                 5.3.3-7+squeeze1
ii  php5-common                              5.3.3-7+squeeze1
ii  php5-curl                                5.3.3-7+squeeze1
ii  php5-dev                                 5.3.3-7+squeeze1
ii  php5-ffmpeg                              0.6.0-2
ii  php5-gd                                  5.3.3-7+squeeze1
ii  php5-imap                                5.3.3-7+squeeze1
ii  php5-mcrypt                              5.3.3-7+squeeze1
ii  php5-mysql                               5.3.3-7+squeeze1
ii  php5-suhosin                             0.9.32.1-1
ii  phpmyadmin                               4:3.3.7-5





Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Tue, 20 May 2014 06:51:52 GMT) (full text, mbox, link).


Notification sent to Raiser <raiser@raiser.tomsk.ru>:
Bug acknowledged by developer. (Tue, 20 May 2014 06:51:52 GMT) (full text, mbox, link).


Message #35 received at 600783-done@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 516831-done@bugs.debian.org,600783-done@bugs.debian.org,608926-done@bugs.debian.org,690674-done@bugs.debian.org,694143-done@bugs.debian.org,741019-done@bugs.debian.org,
Cc: ffmpeg-php@packages.debian.org, ffmpeg-php@packages.qa.debian.org
Subject: Bug#747952: Removed package(s) from unstable
Date: Tue, 20 May 2014 06:48:21 +0000
Version: 0.6.0-2.2+rm

Dear submitter,

as the package ffmpeg-php has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/747952

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Ansgar Burchardt (the ftpmaster behind the curtain)



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 17 Jun 2014 07:46:27 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:07:31 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.