php-5.2.5 glic detected

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



Hello all

I got "glibc detected" errors about several php extensions on my debian box both by executing php-cgi or php-cli.

Config:
# cat /proc/version
Linux version 2.6.24-rc7-vs2.2.0.5.0.7 (root@etch) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2 SMP

# gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

# dpkg -l libc6
libc6                       2.3.6.ds1-13etch5

I'm running on debian-etch stable/backports.

I build php-5.2.5 with this configure line:

./configure --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-memory-limit --enable-wddx --enable-fastcgi --enable-dio --enable-dmalloc --enable-force-cgi-redirect --enable-discard-path --with-gmp=shared,/usr --with-gettext=shared,/usr --with-mysql=shared,/usr --with-pdo-mysql=shared,/usr --with-mysqli=shared --with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-libt1=/usr --enable-gd-native-ttf --with-pgsql=shared,/usr --with-pdo-pgsql=shared,/usr --with-curl=shared,/usr --with-curlwrappers --with-xsl --with-xmlrpc --enable-xslt --with-xslt-sablot=/usr --with-mhash=shared,/usr --enable-dba=shared,/usr --with-gdbm=/usr --with-db4=/usr --with-cdb --with-mm=/usr --with-bz2=shared,/usr --with-imap=shared,/usr --with-kerberos --with-imap-ssl --with-readline --with-pcre-regex --enable-pcntl --enable-simplexml --enable-ctype --with-ming=shared,/usr --with-ncurses=shared,/usr --enable-mbstring --with-inifile --with-flatfile --with-iconv --with-ldap=shared,/usr --enable-gd-native-ttf --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-expat-dir=/usr --with-zip=shared,/usr --with-openssl=/usr --with-snmp=shared,/usr --with-ttf=shared,/usr --with-libxml-dir=/usr --enable-dbase --enable-dbx --enable-dio --enable-filepro --enable-sqlite-utf8 --with-mcrypt=shared,/usr --with-pspell=shared,/usr --with-unixODBC=shared,/usr

The errors occurs when i want to activate several shared extensions: pgsql, snmp, mcrypt.

I'm really confused because if i build these extensions statically all works fine ( ./configure ..blabla... --with-pgsql ... --with-mcrypt )

I've a little script script to test pgsql connection :

<?
$dbconn = pg_connect("host=192.168.0.230 port=5432 user=demo password=demo dbname=demo");
$query = pg_exec ($dbconn, "SELECT * FROM agenda");
....
?>

If i call this script via a web browser i got in apache log:

[Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] *** glibc detected *** free(): invalid pointer: 0xb6b3f880 *** [Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] Premature end of script headers: listepg.php

If i call this script on command line, same error:

etch:/web/clients/client1/www# php -c ../php.ini listepg.php
connexion*** glibc detected *** free(): invalid pointer: 0xb48b8280 ***
Abandon

I'm knocking my head on the walls since several months about this issue which i didn't meet with previous versions of php (i compile myself since php-5.0.0RC1). All was working fine until i upgrade to php-5.2.x.

More strange: i've installed php-xxx.deb from dotdeb packages (added in my sources.list) where these extensions are shared and in this case all works fine. I've asked dotdeb developper what may cause this issue on my box but he couldn't spent many time to debug my problem.

In doubt, i've reinstalled all libxxxx-dev invoked by configure script but always same error. I've tried on 2 others machines with same distro and i got same error, too.

I think i made a mistake during php configuration but can't find where.

Any help/idea please ...

If you need more info, i can provide them

Thanks
Patrick

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux