Bug #81298 [Ver]: Core dump on PHP 8.1
| From: | nikic@php.net | Date: | Wed, 28 Jul 2021 08:00:35 +0000 |
| Subject: | Bug #81298 [Ver]: Core dump on PHP 8.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235421@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81298&edit=1
ID: 81298
Updated by: nikic@php.net
Reported by: alec@php.net
Summary: Core dump on PHP 8.1
Status: Verified
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 8.1Git-2021-07-26 (Git)
Block user comment: N
Private report: N
New Comment:
Reduced:
var_dump(mb_detect_encoding("foobar", "7bit"));
Previous Comments:
------------------------------------------------------------------------
[2021-07-28 07:58:14] nikic@php.net
Program received signal SIGSEGV, Segmentation fault.
0x0000555555a8b584 in mbfl_encoding_detector_new (elist=0x7ffff14f6600,
elistsz=81, strict=0)
at /home/nikic/php/php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:321
321 identd->filter_list[i]->opaque = (void*)0;
(gdb) bt
#0 0x0000555555a8b584 in mbfl_encoding_detector_new (elist=0x7ffff14f6600,
elistsz=81, strict=0)
at /home/nikic/php/php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:321
#1 0x0000555555a8ba63 in mbfl_identify_encoding (string=0x7fffffffa200,
elist=0x7ffff14f6600, elistsz=81, strict=0)
at /home/nikic/php/php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:460
#2 0x0000555555a62097 in zif_mb_detect_encoding (execute_data=0x7ffff341c9d0,
return_value=0x7ffff341c990)
at /home/nikic/php/php-src/ext/mbstring/mbstring.c:2719
------------------------------------------------------------------------
[2021-07-26 10:39:14] cmb@php.net
Working link: <https://github.com/roundcube/roundcubemail/runs/3159640942?check_suite_focus=true>.
------------------------------------------------------------------------
[2021-07-26 09:13:19] alec@php.net
Description:
------------
Sorry for incomplete information. I hope someone could help me to find out more about this issue.
For https://github.com/roundcube/roundcubemail I
just enabled Github Actions tests on PHP 8.1 and I got a core dump. I'm not sure this is Github
or PHP's segfault.
I do not have a local PHP 8.1 installation to test with yet, so maybe someone would like to run the
tests locally to verify.
Here's the raw log from the GA run: https://pipelines.actions.githubusercontent.com/u0loR6uBKIBHqKHhv0hTP4yFrcdLnLzpWEg6qJMnMYCKI8ovYJ/_apis/pipelines/1/runs/418/signedlogcontent/6?urlExpires=2021-07-26T09%3A11%3A08.4028855Z&urlSigningMethod=HMACV1&urlSignature=jdCF19d3rUDCj%2FFF66ORYaUssVkTBh1vJpkIe3ey1yY%3D
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81298&edit=1