[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bug with php4-recode



Hi,

I think there is a bug in php4-recode on amd64 :
(files attached)

$ /usr/bin/php4 -c php.ini -q ./recode.php
Erreur de segmentation (core dumped)
[cyril@adren ~]
$ gdb -c core /usr/bin/php4
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

Core was generated by `/usr/bin/php4 -c php.ini -q ./recode.php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libzzip-0.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libzzip-0.so.12
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libpcre.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpcre.so.3
Reading symbols from /usr/lib/libpanel.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpanel.so.5
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /usr/lib/libdb-4.2.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb-4.2.so
Reading symbols from /usr/lib/libbz2.so.1.0...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libbz2.so.1.0
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libgssapi_krb5.so.2...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/php4/20020429-zts/recode.so...done.
Loaded symbols for /usr/lib/php4/20020429-zts/recode.so
Reading symbols from /usr/lib/librecode.so.0...done.
Loaded symbols for /usr/lib/librecode.so.0
#0  0x0000002a976766d2 in delmodule_flat () from /usr/lib/librecode.so.0
(gdb) bt
#0  0x0000002a976766d2 in delmodule_flat () from /usr/lib/librecode.so.0
#1  0x0000002a9766803a in transform_byte_to_variable () from /usr/lib/librecode.so.0
#2  0x0000002a97668a68 in recode_perform_task () from /usr/lib/librecode.so.0
#3  0x0000002a976678dd in recode_buffer_to_buffer () from /usr/lib/librecode.so.0
#4  0x0000002a974a86d6 in zif_recode_string () from /usr/lib/php4/20020429-zts/recode.so
#5  0x0000000000554f1b in execute ()
#6  0x00000000005447b5 in zend_execute_scripts ()
#7  0x00000000005142e6 in php_execute_script ()
#8  0x0000000000564641 in main ()
(gdb) quit




any idea what could be the error ?

I tend to think the problems lies in php4-recode instead of recode or
librecode0 because from the command line everything works fine

I took a look at php4-4.3.10/ext/recode/recode.c but couldn't find
anything obvious altough I'm not a developper

maybe there is something to do with the way data are passed around with
zend ?!


-- 
	Cyril Chaboisseau
[PHP]

extension=recode.so

Attachment: recode.php
Description: application/httpd-php


Reply to: