Bug #80583 [Com]: cli readline causes crash

From: Date: Fri, 25 Jun 2021 04:35:30 +0000
Subject: Bug #80583 [Com]: cli readline causes crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234625@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80583&edit=1 ID: 80583 Comment by: vefaconkokev at getnada dot com Reported by: jan dot hana at atlas dot cz Summary: cli readline causes crash Status: Verified Type: Bug Package: *Unicode Issues Operating System: Ubuntu 20.04 PHP Version: 8.0.0 Block user comment: N Private report: N New Comment: Dressbarn Feedback Survey will accept all your feedback and reviews and will use it to improve customer service, store atmosphere, and product standards, where suitable. https://takesurveyz.onl/www-dressbarnfeedback-com/ Previous Comments: ------------------------------------------------------------------------ [2021-06-24 06:28:25] employeeb14 at gmail dot com ABRT currently supports the detection of crashes in applications written in the C, ... The command line interface is useful on headless machines, remote systems ... coredump , cmdline , executable , kernel , os_release https://employeebenefits.onl/deloitte-employee-benefits/ ------------------------------------------------------------------------ [2021-01-04 14:05:06] nikic@php.net This works on 7.4 and 8.0: var_dump(setlocale(LC_ALL, 'en_US.UTF-8')); readline('doména ěščřžýáíé'); This crashes on 7.4 and 8.0: var_dump(setlocale(LC_ALL, 'C')); readline('doména ěščřžýáíé'); Locale-dependent crashes in libedit, this is horrible. ------------------------------------------------------------------------ [2021-01-04 13:53:00] jan dot hana at atlas dot cz Description: ------------ When using the Czech diacritics in readline parametter, whole application crashes. It works in PHP 7.4. Test script: --------------- <?php readline('doména ěščřžýáíé'); Actual result: -------------- Neoprávněný přístup do paměti (SIGSEGV) (core dumped [obraz paměti uložen]) Translated to EN: Unauthorized Memory Access (SIGSEGV) (core dumped) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80583&edit=1

« previous php.bugs (#234625) next »