View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002146 | Xdebug | Uncategorized | public | 2022-12-12 11:19 | 2023-03-21 16:30 |
| Reporter | xpender | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.2.0 | ||||
| Fixed in Version | 3.2.1 | ||||
| Summary | 0002146: apache2 segfaulting with version 3.2.0 on PHP 8.0 | ||||
| Description | With xdebug version 3.2.0 we are seeing apache2 segfaults, and it seems to be related to the xdebug module. With version 3.1.5 it's works fine again. Debian bullseye - arm64 For PHP & xdebug we are using packages from https://deb.sury.org/ I attached a phpinfo() output of the webserver. valgrind output: ==5872== Invalid read of size 8 | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.0.20-8.0.29 | ||||
|
|
I think I know what the problem is, and how to fix is. However, I can not reproduce this. From what I can guess from your stack trace is, is that this happens when setting an
|
|
|
I think I can confirm it's related to the mbstring extension. If I'm disabling the mbstring extension completely the segfaults are gone. Guess the root cause is, we've been setting "php_value mbstring.internal_encoding utf-8" via the Apache vhost configuration - when I remove this and reactivate mbstring again, the segfaults are still gone.
==1709== Invalid read of size 8
We'll remove the mbstring.internal_encoding as it's anyway deprecated. Thanks for your help already. But still it think it would be better that this doesn't result in a segfault. |
|
|
I could reproduce it with this additional information, and CI is now testing a fix: https://github.com/xdebug/xdebug/pull/875 |