Home » Database » DB_DataObject » Bug #3136
after upgrade to 4.3.10, php segfaults when i access a DataObject attribute
Details
| Submitted | 2005-01-08 10:47 UTC |
|---|---|
| From | federico at serversidestudio dot it |
| Status | Bogus |
| Package | DB_DataObject |
| PHP Version | 4.3.10 |
| OS | linux 2.4.27 vanilla + grsec |
| Roadmaps | (Not assigned) |
Comments
[2005-01-08 10:47 UTC] federico at serversidestudio dot it
Description:
------------
My application uses DB_DataObject to access mysql DB.
All was fine with mod_php 4.3.9, then i upgraded to 4.3.10
and suddendly that same application started to segfault.
I traced back the problem to a simple attribute read-access of a newly created and populated DataObject, so i'm lost.
Downgrading to 4.3.9 fixed the problem.
I don't want to make it worse with confusion,
but, by changing the code to test the problem (different attribute,syntax,etc..), i also managed to put php into an infinite loop, with apache using 100% cpu until "stop" was hit on browser. scary.
DB_DataObject is 1.7.2
Apache is 2.0.52
php.ini is dist except (i think) for short_open_tag = off
Compilation settings (same for both 4.3.9 and 4.3.10)
--------------------
phpinfo()
PHP Version => 4.3.10
System => Linux picard 2.4.27-grsec-2.0.1 #1 Mon Nov 8 13:23:35 CET 2004 i686
Build Date => Jan 8 2005 11:13:58
Configure Command => './configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-cgi' '--enable-cli' '--with-ndbm=/usr' '--with-db4=/usr' '--with-mcrypt=/usr' '--with-mhash=/usr' '--without-interbase' '--without-ming' '--without-swf' '--without-sybase' '--without-gdbm' '--without-fdftk' '--without-java' '--without-mcal' '--without-unixODBC' '--without-pgsql' '--without-snmp' '--without-gmp' '--without-mssql' '--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png=/usr' '--with-png-dir=/usr' '--with-jpeg=/usr' '--with-jpeg-dir=/usr' '--enable-exif' '--with-tiff=/usr' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-freetype-dir=/usr' '--with-ttf=/usr' '--with-t1lib=/usr' '--without-gettext' '--without-qtdom' '--without-pspell' '--with-openssl=/usr' '--with-imap=/usr' '--without-ldap' '--without-dom' '--without-dom-xslt' '--without-dom-exslt' '--without-kerberos' '--with-pam' '--enable-memory-limit' '--disable-ipv6' '--without-yaz' '--disable-debug' '--with-curlwrappers' '--with-curl=/usr' '--enable-dbx' '--with-imap-ssl' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring=all' '--enable-mbregex' '--with-bz2=/usr' '--with-crack=/usr' '--with-cdb' '--enable-pcntl' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic=/usr/share/misc/file/magic.mime' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-yp' '--with-readline=/usr' '--with-ncurses=/usr' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/cli-php4'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/cli-php4/php.ini
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, https, ftps, compress.bzip2, compress.zlib
Reproduce code:
---------------
$car = new DataObjects_Car();
if (! @$car->get($_GET['id'])) exit;
$filename = "../cars/{$car->filename}.jpg"; <<< SEGFAULT HERE
Expected result:
----------------
$car->filename gets properly interpolated as it did before
Actual result:
--------------
Apache log entries
----------
[notice] child pid 22979 exit signal Segmentation fault (11)
[2005-01-08 11:36 UTC] federico at serversidestudio dot it
Do you mean it's a known bug introduced by 4.3.10 and already
fixed in snapshots?
Could you please point me to bug documentation?
Thank you very much