[oi-dev] Apache24 PHP 8.4+ segfault
Bill Sommerfeld
sommerfeld at hamachi.org
Fri Oct 23 01:25:39 UTC 2026
On 10/22/26 17:16, Bill Sommerfeld wrote:
> On 10/22/26 16:03, Bill Sommerfeld wrote:
>> On 10/22/26 12:12, Stephan Althaus via oi-dev wrote:
>>> # ls -l /usr/apache2/2.4/core
>>> -rw------- 1 root root 120263485 Oct 22 20:45 /usr/
>>> apache2/2.4/core
>>>
>>> # pstack /usr/apache2/2.4/core
>>> core '/usr/apache2/2.4/core' of 10935: /usr/apache2/2.4/bin/httpd -k
>>> start
>>> 00007fff8ddf79d1 sapi_register_post_entry () + 31
>>> 00007fff8ddf7b3a sapi_register_post_entries () + 2a
>>> 00007fff8ddeaa10 php_setup_sapi_content_types () + 10
>>> 00007fff8dddb420 tsrm_update_active_threads () + b0
>>> 00007fff8dddba4f ts_allocate_fast_id () + df
>>> 00007fff8dfa8f8f php_apache_server_startup () + 8f
>>> 00000000004781c3 ap_run_post_config () + 63
>>> 000000000044ad14 main () + a74
>>> 0000000000449a37 _start_crt () + 87
>>> 0000000000449998 _start () + 18
>>>
>>>
>>> I will have another look at it tomorrow.
>> I can reproduce this with the same stack trace. At first glance it
>> looks like some of the patches to the PHP TSRM ("Thread Safe Resource
>> Manager") found in php 8.3 didn't make it into our port of 8.4.
> Restoring the patches results in a mod_php84.so which doesn't crash
> httpd and which can execute a "hello world"-level PHP script. I'll be
> sending this out for review shortly.
For PHP 8.4:
https://github.com/OpenIndiana/oi-userland/pull/28028
For PHP 8.5:
https://github.com/OpenIndiana/oi-userland/pull/28029
Both of these are very lightly tested (httpd starts without crashing,
and a tiny "hello world" PHP page renders properly.
More information about the oi-dev
mailing list