Debian Bug report logs - #442855
php5-recode: segmentation violation in function 'recode_string' in AMD64

version graph

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

Reported by: Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>

Date: Mon, 17 Sep 2007 13:09:02 UTC

Severity: normal

Fixed in version 5.2.6.dfsg.1-1+lenny3

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Forwarded to recode-bugs@iro.umontreal.ca

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#442855; Package php5-recode. (full text, mbox, link).


Acknowledgement sent to Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>:
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):

From: Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-recode: segmentation violation in function 'recode_string' in AMD64
Date: Mon, 17 Sep 2007 15:07:14 +0200
Package: php5-recode
Version: 5.2.0-8+etch7
Severity: normal

In Debian for AMD64 the next example generates a 'segmentation violation':

echo '<? print recode_string("utf8..latin2", "example"); ?>' | php5

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-amd64
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)

Versions of packages php5-recode depends on:
ii  libapache2-mod-php5 [p 5.2.0-8+etch7     server-side, HTML-embedded scripti
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  librecode0             3.6-12            Shared library on which recode is 
ii  php5-cli [phpapi-20060 5.2.0-8+etch7     command-line interpreter for the p
ii  php5-common            5.2.0-8+etch7     Common files for packages built fr

php5-recode 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#442855; Package php5-recode. (full text, mbox, link).


Acknowledgement sent to Sistemas <sistemas@dedaloingenieros.com>:
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 442855@bugs.debian.org (full text, mbox, reply):

From: Sistemas <sistemas@dedaloingenieros.com>
To: 442855@bugs.debian.org
Subject: More information...
Date: Mon, 17 Sep 2007 18:43:23 +0200
[Message part 1 (text/plain, inline)]
I forgot to mention that the 
file '/usr/share/squirrelmail/functions/decode/big5.php' on line 55 from 
package 'squirrelmail-decode' makes Apache to consume all memory available 
before PHP 30 second timeout is reached.
-- 
+----------
| Departamento de Sistemas <sistemas@dedaloingenieros.com>
| Teléfono fijo: 952 602 959
| Fax: 952 602 959
| Dirección: C/ Afligidos 2, 3º Derecha, 29015 Málaga
| Dédalo Ingenieros, S.L.: http://www.dedaloingenieros.com/
| PGP: http://pgp.rediris.es:11371/pks/lookup?op=index&search=0x1899F325
+---------------------
[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#442855; Package php5-recode. (full text, mbox, link).


Acknowledgement sent to Steve Langasek <vorlon@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 #15 received at 442855@bugs.debian.org (full text, mbox, reply):

From: Steve Langasek <vorlon@debian.org>
To: Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>, 442855@bugs.debian.org
Subject: Re: [php-maint] Bug#442855: php5-recode: segmentation violation in function 'recode_string' in AMD64
Date: Mon, 17 Sep 2007 16:28:06 -0700
reassign 442855 librecode0
found 442855 3.6-12
thanks

On Mon, Sep 17, 2007 at 03:07:14PM +0200, Rafael Jesus Alcantara Perez wrote:
> Package: php5-recode
> Version: 5.2.0-8+etch7
> Severity: normal

> In Debian for AMD64 the next example generates a 'segmentation violation':

> echo '<? print recode_string("utf8..latin2", "example"); ?>' | php5

Confirmed, and the backtrace is:

(gdb) bt
#0  0x00002b497103d12e in transform_with_libiconv ()
   from /usr/lib/librecode.so.0
#1  0x00002b497104942d in recode_perform_task () from
/usr/lib/librecode.so.0
#2  0x00002b4971047dc0 in recode_buffer_to_buffer ()
   from /usr/lib/librecode.so.0
#3  0x00002b4970e984b1 in zif_recode_string ()
   from /usr/lib/php5/20060613/recode.so
#4  0x000000000065f9a7 in execute ()
#5  0x000000000064f3c3 in execute ()
#6  0x0000000000632429 in zend_execute_scripts ()
#7  0x00000000005f2bf8 in php_execute_script ()
#8  0x00000000006b8cb5 in main ()
(gdb)

Looks to me like it's probably a librecode bug?  Reassigning.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/




Bug reassigned from package `php5-recode' to `librecode0'. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (Mon, 17 Sep 2007 23:30:03 GMT) (full text, mbox, link).


Bug marked as found in version 3.6-12. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org. (Mon, 17 Sep 2007 23:30:04 GMT) (full text, mbox, link).


Reply sent to Santiago Vila <sanvila@unex.es>:
You have marked Bug as forwarded. (full text, mbox, link).


Message #22 received at 442855-forwarded@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@unex.es>
To: recode-bugs@iro.umontreal.ca
Cc: 442855-forwarded@bugs.debian.org, Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>
Subject: Bug#442855: [php-maint] Bug#442855: php5-recode: segmentation violation in function 'recode_string' in AMD64 (fwd)
Date: Tue, 12 Feb 2008 13:48:01 +0100 (CET)
Hello.

I received the following report from the debian bug system, and, apparently,
it seems to be a bug in librecode.

Thanks.

---------- Forwarded message ----------
From: Steve Langasek <vorlon@debian.org>
To: Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>,
    442855@bugs.debian.org
Date: Mon, 17 Sep 2007 16:28:06 -0700
Subject: Bug#442855: [php-maint] Bug#442855: php5-recode: segmentation violation
     in function 'recode_string' in AMD64

reassign 442855 librecode0
found 442855 3.6-12
thanks

On Mon, Sep 17, 2007 at 03:07:14PM +0200, Rafael Jesus Alcantara Perez wrote:
> Package: php5-recode
> Version: 5.2.0-8+etch7
> Severity: normal

> In Debian for AMD64 the next example generates a 'segmentation violation':

> echo '<? print recode_string("utf8..latin2", "example"); ?>' | php5

Confirmed, and the backtrace is:

(gdb) bt
#0  0x00002b497103d12e in transform_with_libiconv ()
   from /usr/lib/librecode.so.0
#1  0x00002b497104942d in recode_perform_task () from
/usr/lib/librecode.so.0
#2  0x00002b4971047dc0 in recode_buffer_to_buffer ()
   from /usr/lib/librecode.so.0
#3  0x00002b4970e984b1 in zif_recode_string ()
   from /usr/lib/php5/20060613/recode.so
#4  0x000000000065f9a7 in execute ()
#5  0x000000000064f3c3 in execute ()
#6  0x0000000000632429 in zend_execute_scripts ()
#7  0x00000000005f2bf8 in php_execute_script ()
#8  0x00000000006b8cb5 in main ()
(gdb)

Looks to me like it's probably a librecode bug?  Reassigning.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/




Information forwarded to debian-bugs-dist@lists.debian.org, Santiago Vila <sanvila@debian.org>:
Bug#442855; Package librecode0. (Fri, 21 Aug 2009 22:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and forwarded to list. Copy sent to Santiago Vila <sanvila@debian.org>. (Fri, 21 Aug 2009 22:42:03 GMT) (full text, mbox, link).


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

From: Santiago Vila <sanvila@unex.es>
To: Steve Langasek <vorlon@debian.org>, 442855@bugs.debian.org, recode-bugs@iro.umontreal.ca, control@bugs.debian.org
Cc: Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>
Subject: Re: Bug#442855: [php-maint] Bug#442855: php5-recode: segmentation violation in function 'recode_string' in AMD64
Date: Sat, 22 Aug 2009 00:31:55 +0200 (CEST)
reassign 442855 php5-recode
thanks

On Mon, 17 Sep 2007, Steve Langasek wrote:

> reassign 442855 librecode0
> found 442855 3.6-12
> thanks
> 
> On Mon, Sep 17, 2007 at 03:07:14PM +0200, Rafael Jesus Alcantara Perez wrote:
> > Package: php5-recode
> > Version: 5.2.0-8+etch7
> > Severity: normal
> 
> > In Debian for AMD64 the next example generates a 'segmentation violation':
> 
> > echo '<? print recode_string("utf8..latin2", "example"); ?>' | php5
> 
> Confirmed, and the backtrace is:
> 
> (gdb) bt
> #0  0x00002b497103d12e in transform_with_libiconv ()
>    from /usr/lib/librecode.so.0
> #1  0x00002b497104942d in recode_perform_task () from
> /usr/lib/librecode.so.0
> #2  0x00002b4971047dc0 in recode_buffer_to_buffer ()
>    from /usr/lib/librecode.so.0
> #3  0x00002b4970e984b1 in zif_recode_string ()
>    from /usr/lib/php5/20060613/recode.so
> #4  0x000000000065f9a7 in execute ()
> #5  0x000000000064f3c3 in execute ()
> #6  0x0000000000632429 in zend_execute_scripts ()
> #7  0x00000000005f2bf8 in php_execute_script ()
> #8  0x00000000006b8cb5 in main ()
> (gdb)
> 
> Looks to me like it's probably a librecode bug?  Reassigning.

Well, it seems it was not, after all.

I can't reproduce this on a lenny amd64 system, so I looked at php
changelog and noticed that this bug is *suspiciously* similar to
Bug#459020 in php, which was fixed in etch in version 5.2.0-8+etch11~p1.

So, reassigning again. I believe the bug may be closed, but I leave
that to the PHP maintainers.

Cc: to recode-bugs as well, where I mistakenly forwarded this.
François: you can forget about this one :-)

Thanks.




Bug reassigned from package 'librecode0' to 'php5-recode'. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (Fri, 21 Aug 2009 22:42:08 GMT) (full text, mbox, link).


Bug No longer marked as found in versions recode/3.6-12. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (Fri, 21 Aug 2009 22:42:09 GMT) (full text, mbox, link).


Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Tue, 12 Jan 2010 09:18:07 GMT) (full text, mbox, link).


Notification sent to Rafael Jesus Alcantara Perez <sistemas@urania.dedaloingenieros.com>:
Bug acknowledged by developer. (Tue, 12 Jan 2010 09:18:07 GMT) (full text, mbox, link).


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

From: Ondřej Surý <ondrej@sury.org>
To: 442855-done@bugs.debian.org
Subject: #442855: php5-recode: segmentation violation in function 'recode_string' in AMD64
Date: Tue, 12 Jan 2010 10:16:17 +0100
Version: 5.2.6.dfsg.1-1+lenny3

Retested on current stable amd64, works ok:

# echo '<? print recode_string("utf8..latin2", "example"); ?>' | php5
example

-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 10 Feb 2010 07:33:32 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 03:06:39 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.