|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-19 14:49 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: remi
[2014-01-20 07:32 UTC] remi@php.net
[2014-01-20 07:41 UTC] remi@php.net
[2014-01-20 07:41 UTC] remi@php.net
-Status: Assigned
+Status: Closed
[2014-01-20 17:07 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ Since PHP 5.5.7, calling `readline_clear_history()` segfaults. PHP 5.5.7 (installed via Homebrew) OS X 10.9 And whatever libedit version ships with OS X 10.9 (Mavericks). From the readline.h file: /* $NetBSD: readline.h,v 1.33 2012/05/15 17:30:04 christos Exp $ */ Note that this is over 11 years newer than the header comment in the SourceForge project linked from the readline ext readme (http://sourceforge.net/projects/libedit/) /* $NetBSD: readline.h,v 1.1 2001/01/05 21:15:50 jdolecek Exp $ */ This version of libedit seems to actually be maintained, I imagine it is more like what is available on OS X: http://www.thrysoee.dk/editline Reverting b8d88bf (a fix for #65714) fixes the segfault. Configure command: ./configure --prefix=/usr/local/Cellar/php55/5.5.7 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr/local/etc/php/5.5 --with-config-file-scan-dir=/usr/local/etc/php/5.5/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enable-wddx --enable-ftp --enable-sockets --enable-zip --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-mbstring --enable-mbregex --enable-bcmath --enable-calendar --with-zlib=/usr/local/opt/zlib --with-ldap --with-ldap-sasl=/usr --with-xmlrpc --with-kerberos=/usr --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr/local/opt/freetype --with-jpeg-dir=/usr/local/opt/jpeg --with-png-dir=/usr/local/opt/libpng --with-gettext=/usr/local/opt/gettext --with-snmp=/usr --with-libedit --with-unixODBC=/usr/local/opt/unixodbc --with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc --mandir=/usr/local/Cellar/php55/5.5.7/share/man --with-mhash --with-curl --with-bz2=/usr --disable-debug --with-openssl=/usr --with-xsl=/usr --with-apxs2=/usr/sbin/apxs --libexecdir=/usr/local/Cellar/php55/5.5.7/libexec --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --enable-pcntl --enable-zend-signals --enable-dtrace --enable-opcache Test script: --------------- <?php readline_clear_history(); Expected result: ---------------- Expected nothing to happen. Actual result: -------------- 'php test.php ' terminated by signal SIGSEGV (Address boundary error)