Bug #71374 [NEW]: PHP-FPM crashes repeatedly in call to _php_iconv_strlen

From: Date: Thu, 14 Jan 2016 21:48:40 +0000
Subject: Bug #71374 [NEW]: PHP-FPM crashes repeatedly in call to _php_iconv_strlen
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198653@lists.php.net to get a copy of this message
From: mqudsi at neosmart dot net Operating system: FreeBSD-10.2-RELEASE PHP version: 7.0.2 Package: Reproducible crash Bug Type: Bug Bug description:PHP-FPM crashes repeatedly in call to _php_iconv_strlen Description: ------------ I have a (currently) locally-reproducible crash that I haven't yet isolated out to a minimal test case which causes PHP-FPM to crash with a SIGBUS error in the log: WARNING: [pool www] child 8278 exited on signal 10 (SIGBUS) after 46.230505 seconds from start The backtrace from an attached GDB session: Switching to Thread 805006400 (LWP 100703)] 0x00000000007c99dc in ZEND_INIT_FCALL_SPEC_CONST_HANDLER () (gdb) continue Continuing. Program received signal SIGBUS, Bus error. 0x00000008029f1bf1 in __bsd_iconv () from /lib/libc.so.7 (gdb) bt #0 0x00000008029f1bf1 in __bsd_iconv () from /lib/libc.so.7 #1 0x00000000005867d8 in _php_iconv_strlen () #2 0x0000000000584204 in zif_iconv_strlen () #3 0x00000000007ea1d7 in ZEND_DO_ICALL_SPEC_HANDLER () #4 0x00000000007b5448 in execute_ex () #5 0x0000000000766cf8 in zend_call_function () #6 0x0000000000766536 in call_user_function_ex () #7 0x00000000005148a1 in php_pcre_replace_impl () #8 0x00000000005173ff in php_replace_in_subject () #9 0x00000000005171cc in preg_replace_impl () #10 0x0000000000516530 in zif_preg_replace_callback () #11 0x00000000007ea1d7 in ZEND_DO_ICALL_SPEC_HANDLER () #12 0x00000000007b5448 in execute_ex () #13 0x00000000007b5686 in zend_execute () #14 0x000000000077590f in zend_execute_scripts () #15 0x000000000070d8dc in php_execute_script () #16 0x000000000080f9a9 in main () PHP 7.0.2 has been compiled from source: './configure' '--with-curl' '--with-zlib=/usr/local' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-mbstring' '--with-iconv' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-config-file-scan-dir=/usr/local/lsws/lsphp7/conf.d/' '--with-openssl' '--with-gd' '--with-litespeed' '--enable-fpm' '--with-fpm-user=www-data' '--with-fpm-group=www-data' '--prefix=/usr/local/php7' '--with-config-file-scan-dir=/usr/local/php7/etc/conf.d' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-pdo-sqlite' '--enable-opcache' '-C' '--without-sqlite3' 'CFLAGS=-msse4.2 '-Wno-error' '-Ofast' '-funroll-loops' '-march=native' '-DOPENSSL_NO_SSL2'' The only external extension installed is php-memcached from HEAD (which makes no appearance in the bt). -- Edit bug report at https://bugs.php.net/bug.php?id=71374&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71374&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71374&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71374&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71374&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71374&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71374&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71374&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71374&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71374&r=support Expected behavior: https://bugs.php.net/fix.php?id=71374&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71374&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71374&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71374&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71374&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71374&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71374&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71374&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71374&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71374&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71374&r=mysqlcfg

« previous php.bugs (#198653) next »