ID: 44094 User updated by: gmsoft at gentoo dot org -Summary: SEGFAULT when running cacti poller Reported By: gmsoft at gentoo dot org -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Linux playa 2.6.23.12 #1 Fri Jan PHP Version: 5.2CVS-2008-02-10 (snap) New Comment:
Narrowed it down. This test triggers the segfault : php -r 'echo mysql_connect('localhost', 'root', 'password', true, 128);' Previous Comments: ------------------------------------------------------------------------ [2008-02-11 14:24:18] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2008-02-10 21:48:35] gmsoft at gentoo dot org Configure Command => './configure' '--prefix=/usr/lib/php5' '--host=i686-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--enable-cli' '--disable-cgi' '--with-config-file-path=/etc/php/cli-php5' '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active' '--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--enable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter' '--enable-ftp' '--with-gettext' '--without-gmp' '--disable-hash' '--disable-json' '--without-kerberos' '--enable-mbstring' '--without-mcrypt' '--with-mhash' '--without-msql' '--without-mssql' '--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--disable-pdo' '--with-pgsql' '--disable-posix' '--without-pspell' '--without-recode' '--disable-simplexml' '--disable-shmop' '--with-snmp' '--disable-soap' '--enable-sockets' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--enable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli' '--with-readline' '--without-libedit' '--without-mm' '--without-sqlite' '--with-pic' ------------------------------------------------------------------------ [2008-02-10 21:42:12] gmsoft at gentoo dot org Description: ------------ php crash when running cacti poller. Most probably not related to cacti only. Previous version like 5.2.5 used to work fine. This doesn't seem to occur if build without -O2. Reproduce code: --------------- This occurs when using cacti poller.php or when browsing cacti trough apache. Didn't identified the exact code. Actual result: -------------- (gdb) bt #0 0x082db06a in zend_do_fcall_common_helper_SPEC (execute_data=0xbff54dbc) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:205 #1 0x082cd37a in execute (op_array=0x892b9dc) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:92 #2 0x082dac2b in zend_do_fcall_common_helper_SPEC (execute_data=0xbff552ec) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:234 #3 0x082cd37a in execute (op_array=0x892066c) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:92 #4 0x082dac2b in zend_do_fcall_common_helper_SPEC (execute_data=0xbff5559c) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:234 #5 0x082cd37a in execute (op_array=0x87d0268) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:92 #6 0x082dac2b in zend_do_fcall_common_helper_SPEC (execute_data=0xbff564cc) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:234 #7 0x082cd37a in execute (op_array=0x87a57fc) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:92 #8 0x082d16ef in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0xbff57a2c) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:4614 #9 0x082cd37a in execute (op_array=0x879a910) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend_vm_execute.h:92 #10 0x082acb68 in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /var/tmp/portage/php-test/php5.2-200802101930/Zend/zend.c:1134 #11 0x08265f0f in php_execute_script (primary_file=0xbff59e64) at /var/tmp/portage/php-test/php5.2-200802101930/main/main.c:2006 #12 0x0833e1ef in main (argc=2, argv=0xbff59f84) at /var/tmp/portage/php-test/php5.2-200802101930/sapi/cli/php_cli.c:1140 Full backtrace : http://rafb.net/p/HRPbmV53.html ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44094&edit=1