[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] php-5.2.5 glibc detected *** free()
From:       Børge_Holen <borge () arivene ! net>
Date:       2008-02-23 11:53:07
Message-ID: 200802231253.07717.borge () arivene ! net
[Download RAW message or body]

On Saturday 23 February 2008 12:03:16 php@pmenier.net wrote:
> 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)

From witch pool?
5.2 is in lenny and so is the dependencies.
I don't know if you compile because you miss a feature, or simply because of 
the version.
If you compile for the version just install from lenny,
if you compile for features, install required dependencies.
Oh wait, it compiled fine? and it just don't work afterwards?
You tried from testing pool? does it work there, if the maintainer can't help 
you seems like a compile flaw for some reason.



> 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 make a mistake during php configuration but can't find where.
>
> Any help/idea please ...

Install official package 

>
> If you need more info, i can provide them
>
> Thanks
> Patrick



-- 
---
Børge Holen
http://www.arivene.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic