Debian Bug report logs -
#409458
If I installing php5-gd - cli version throw segmentation fault, and libapache2-modphp5 sent empty file
Reported by: max antonov <max@tessart.ru>
Date: Sat, 3 Feb 2007 13:03:02 UTC
Severity: important
Found in version php5/5.2.0-8
Done: "Ondřej Surý" <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to max antonov <max@tessart.ru>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-gd
Version: 5.2.0-8
Severity: important
f I installing php5-gd - cli version throw segmentation fault, and
libapache2-modphp5 sent html-data, but my firefox see it as attachment
and downloading empty file. I trying telnet , but I think - http-headers
in norm.
Examples:
>From /var/log/apache2/error.log:
/usr/sbin/apache2: symbol lookup error:
/usr/lib/php5/20060613+lfs/gd.so: undefined symbol: gdFontCacheShutdown
CLI-version:
root# php -v
PHP 5.2.0-8 (cli) (built: Dec 17 2006 20:03:51)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
Segmentation fault
root#
telnet:
[max@wwwmaster:~] 16:01:47 $ telnet video.a-les.ru 80
Trying 87.118.102.50...
Connected to video.a-les.ru.
Escape character is '^]'.
GET /media.php HTTP/1.1
Host: video.a-les.ru
HTTP/1.1 200 OK
Date: Fri, 02 Feb 2007 12:56:38 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8
X-Powered-By: PHP/5.2.0-8
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
20af
<font color=ff0000><br />
<b>Warning</b>: include(includes/headers.php)
*********************
If I uninstall php5-gd - CLI-version and apache2-module work correctly
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-023stab033.9-smp
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Versions of packages php5-gd depends on:
ii libapache2-mod-php5 [phpa 5.2.0-8 server-side, HTML-embedded scripti
ii libc6 2.3.6.ds1-10 GNU C Library: Shared libraries
ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib
ii libgd2-xpm 2.0.34~rc1-1 GD Graphics Library version 2
ii libjpeg62 6b-13 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.15~beta5-1 PNG library - runtime
ii libt1-5 5.1.0-2 Type 1 font rasterizer library - r
ii libx11-6 2:1.0.3-5 X11 client-side library
ii libxpm4 1:3.5.5-2 X11 pixmap library
ii php5-cli [phpapi-20060613 5.2.0-8 command-line interpreter for the p
ii php5-common 5.2.0-8 Common files for packages built fr
ii zlib1g 1:1.2.3-13 compression library - runtime
php5-gd recommends 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#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 409458@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
tags 409458 moreinfo unreproducible
thanks
hi max,
sorry for the delay on this.
On Fri, 2007-02-02 at 16:00 +0300, max antonov wrote:
> f I installing php5-gd - cli version throw segmentation fault, and
> libapache2-modphp5 sent html-data, but my firefox see it as attachment
> and downloading empty file. I trying telnet , but I think - http-headers
> in norm.
i can't reproduce this problem, but i strongly suspect that this is a
bug in the libgd2-xpm package. can you provide the output of:
nm -D /usr/lib/libgd.so | grep gdFontCacheShutdown
for example:
copelandia[~]13:41:01$ nm -D /usr/lib/libgd.so | grep
gdFontCacheShutdown
000000000001a580 T gdFontCacheShutdown
if this is the case, you should be able to either upgrade or downgrade
your libgd2 package and the problem should go away.
sean
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to antonov@tessart.ru:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 409458@bugs.debian.org (full text, mbox, reply):
I type wrong email in bug report and forgot about this problem.
Now I need to use gd in my server...
15:14:04 [53:server:/home/max/instance/:] root# nm -D
/usr/lib/libgd.so | grep gdFontCacheShutdown
nm: '/usr/lib/libgd.so': No such file
15:14:11 [54:server:/home/max/instance/:] root# nm -D
/usr/lib/php5/20060613+lfs/gd.so | grep gdFontCacheShutdown
U gdFontCacheShutdown
15:14:19 [55:server:/home/max/instance/:] root#
php -v
PHP 5.2.2-1+b1 (cli) (built: May 11 2007 09:58:50)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Segmentation fault
15:41:37 [67:server:/home/max/instance/:] root#
This problem don't going out. What I may to do, to resolving this problem?
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #20 received at 409458@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
hi maxim,
On Mon, 2007-05-14 at 15:57 +0400, Maxim Antonov wrote:
> 15:14:04 [53:server:/home/max/instance/:] root# nm -D
> /usr/lib/libgd.so | grep gdFontCacheShutdown
> nm: '/usr/lib/libgd.so': No such file
> 15:14:11 [54:server:/home/max/instance/:] root# nm -D
> /usr/lib/php5/20060613+lfs/gd.so | grep gdFontCacheShutdown
> U gdFontCacheShutdown
okay, i'm a little confused how you could have php5-gd installed but not
libgd2-xpm. could you try first
apt-get install libgd2-xpm
and then run these again:
nm -D /usr/lib/libgd.so | grep gdFontCacheShutdown
nm -D /usr/lib/php5/20060613+lfs/gd.so | grep gdFontCacheShutdown
the "U" should then be a "T", and gd should work.
sean
[signature.asc (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to ctrix+debianbugs@navynet.it:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #25 received at 409458@bugs.debian.org (full text, mbox, reply):
This bug report is probably related to #411982
Max
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to "Ondřej Surý" <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #30 received at 409458@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Max,
could you do:
ldd /usr/lib/php5/20060613+lfs/gd.so
And send output here.
Common cause for these types of bugs is some old forgotten library in
/usr/local/lib which gets linked before library from debian package.
Ondrej.
--
Ondřej Surý <ondrej@sury.org>
[Message part 2 (text/html, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#409458; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to Max CtRiX <ctrix@navynet.it>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #35 received at 409458@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
you may find some infos in the attachment.
I would suggest to the original bug submitter to disable each php
extension and add them one by one and see if the solution proposed for
#411982 works for him.
It did for me.
CtRiX
[details.txt (text/plain, inline)]
Linux server.$domain 2.6.18-5-xen-vserver-amd64 #1 SMP Sat Dec 22 22:58:29 UTC 2007 x86_64 GNU/Linux
server:/# ldd /usr/lib/php5/20060613+lfs/gd.so
ldd: /usr/lib/php5/20060613+lfs/gd.so: No such file or directory
server:/# ldd /usr/lib/php5/20060613/gd.so
libgd.so.2 => /usr/lib/libgd.so.2 (0x00002b1d0fe2d000)
libt1.so.5 => /usr/lib/libt1.so.5 (0x00002b1d0ff82000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00002b1d100dc000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00002b1d10254000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0x00002b1d1045e000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002b1d1056e000)
libz.so.1 => /usr/lib/libz.so.1 (0x00002b1d10691000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00002b1d107a8000)
libc.so.6 => /lib/libc.so.6 (0x00002b1d108ca000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00002b1d10b07000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00002b1d10c1d000)
libm.so.6 => /lib/libm.so.6 (0x00002b1d10d51000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00002b1d10ed3000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00002b1d10fd6000)
libdl.so.2 => /lib/libdl.so.2 (0x00002b1d110db000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00002b1d111de000)
server:/#
server:/# dpkg -l | grep php5
ii libapache-mod-php5 5.2.0-8+etch11 server-side, HTML-embedded scripting languag
ii php5-cgi 5.2.0-8+etch11 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.0-8+etch11 command-line interpreter for the php5 script
ii php5-common 5.2.0-8+etch11 Common files for packages built from the php
ii php5-curl 5.2.0-8+etch11 CURL module for php5
ii php5-gd 5.2.0-8+etch11 GD module for php5
ii php5-mcrypt 5.2.0-8+etch11 MCrypt module for php5
ii php5-memcache 2.0.1-1.1 memcache extension module for PHP5
ii php5-mysql 5.2.0-8+etch11 MySQL module for php5
ii php5-pgsql 5.2.0-8+etch11 PostgreSQL module for php5
ii php5-xmlrpc 5.2.0-8+etch11 XML-RPC module for php5
server:/#
server:/# nm -D /usr/lib/libgd.so.2 | grep gdFontCacheShutdown
0000000000019790 T gdFontCacheShutdown
server:/# nm -D /usr/lib/php5/20060613/gd.so | grep gdFontCacheShutdown
U gdFontCacheShutdown
server:/# dpkg -l | grep apache
ii apache-common 1.3.34-4.1+etch1 support files for all Apache webservers
ii apache2 2.2.3-4+etch4 Next generation, scalable, extendable web se
ii apache2-mpm-worker 2.2.3-4+etch4 High speed threaded model for Apache HTTPD 2
ii apache2-utils 2.2.3-4+etch4 utility programs for webservers
ii apache2.2-common 2.2.3-4+etch4 Next generation, scalable, extendable web se
ii libapache-mod-php5 5.2.0-8+etch11 server-side, HTML-embedded scripting languag
ii libapache2-mod-fastcgi 2.4.2-8 Apache 2 FastCGI module for long-running CGI
server:/# dpkg -l | grep libgd
ii libgd2-xpm 2.0.33-5.2 GD Graphics Library version 2
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime version)
Reply sent to "Ondřej Surý" <ondrej@sury.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to max antonov <max@tessart.ru>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #40 received at 409458-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
---------- Forwarded message ----------
From: Maxim Antonov <antonov@tessart.ru>
Date: 2008/6/19
Subject: Re: [php-maint] Bug#409458: alternative cause
To: Ondřej Surý <ondrej@sury.org>
Hi, Ondřej !
I now all work. It problem was many many times ago.
In this time i working with virtual server (vps) - I thik it is a source of
problem.
Now I work with 3 phisical servers (dedicated) and have no problem.
When I compiled php from source or installing from deb-pakages - problem not
have a place.
Thanks for trying to help me.
(Excuse me, if my English is not well)
Ondřej Surý wrote:
Max,
could you do:
ldd /usr/lib/php5/20060613+lfs/gd.so
And send output here.
Common cause for these types of bugs is some old forgotten library in
/usr/local/lib which gets linked before library from debian package.
Ondrej.
--
Ondřej Surý <ondrej@sury.org>
--
------------------------------
Best Regards.
Maxim Anotonov.
PHP-Developer/System Administrator.
ICQ#2309418
Antonov@TESSART.RU <antonov@tessart.ru>
--
Ondřej Surý <ondrej@sury.org>
[Message part 2 (text/html, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 18 Jul 2008 07:38:29 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:37:07 2023;
Machine Name:
buxtehude
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.