Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after dealing with an Apache request #11529

Closed
LeSuisse opened this issue Jun 25, 2023 · 1 comment
Closed

Crash after dealing with an Apache request #11529

LeSuisse opened this issue Jun 25, 2023 · 1 comment

Comments

@LeSuisse
Copy link
Contributor

Description

Hello,

Some of NixOS smoketests seems to have catched an issue with PHP 8.3.0 alpha 2, we are seeing a crash at the end of the requests:

machine # Stack trace of thread 834:
machine # #0  0x00007f159624f74c read (libc.so.6 + 0xf674c)
machine # #1  0x000000000046b624 ap_mpm_podx_check (httpd + 0x6b624)
machine # #2  0x00007f1595fdcb87 child_main (mod_mpm_event.so + 0x7b87)
machine # #3  0x00007f1595fdd05f make_child (mod_mpm_event.so + 0x805f)
machine # #4  0x00007f1595fdd101 startup_children (mod_mpm_event.so + 0x8101)
machine # #5  0x00007f1595fde131 event_run (mod_mpm_event.so + 0x9131)
machine # #6  0x000000000043f196 ap_run_mpm (httpd + 0x3f196)
machine # #7  0x000000000043707f main (httpd + 0x3707f)
machine # #8  0x00007f159617cace __libc_start_call_main (libc.so.6 + 0x23ace)
machine # #9  0x00007f159617cb89 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x23b89)
machine # #10 0x0000000000437185 _start (httpd + 0x37185)
machine # 
machine # Stack trace of thread 861:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 862:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 863:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 864:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 865:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 866:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 867:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 868:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 869:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 870:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 871:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 872:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 873:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 874:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 875:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 876:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 877:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 878:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 879:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 880:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 881:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 882:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 883:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 884:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 885:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x00007f1595fb6e3d slot_run (mod_http2.so + 0x2ce3d)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 924:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 925:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 926:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 927:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 928:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 929:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 930:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 931:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 932:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 933:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 934:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 935:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 936:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 937:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 938:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 939:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 940:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 941:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 942:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 943:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 944:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 945:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 947:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 946:
machine # #0  0x00007f15961db9e6 __futex_abstimed_wait_common (libc.so.6 + 0x829e6)
machine # #1  0x00007f15961de1d8 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x851d8)
machine # #2  0x000000000046c555 ap_queue_pop_something (httpd + 0x6c555)
machine # #3  0x00007f1595fe1177 worker_thread (mod_mpm_event.so + 0xc177)
machine # #4  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #5  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 948:
machine # #0  0x00007f1596260dc6 epoll_wait (libc.so.6 + 0x107dc6)
machine # #1  0x00007f159638fe0a impl_pollset_poll (libapr-1.so.0 + 0x2ae0a)
machine # #2  0x00007f1595fdf6e7 listener_thread (mod_mpm_event.so + 0xa6e7)
machine # #3  0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #4  0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # 
machine # Stack trace of thread 923:
machine # #0  0x00007f1596191f6b kill (libc.so.6 + 0x38f6b)
machine # #1  0x00007f1596191d30 __restore_rt (libc.so.6 + 0x38d30)
machine # #2  0x00007f1594e6cd8c php_rshutdown_session_globals (session.so + 0xdd8c)
machine # #3  0x00007f1594e71aa3 zm_deactivate_session (session.so + 0x12aa3)
machine # #4  0x00007f159577452c zend_deactivate_modules (libphp.so + 0x2f652c)
machine # #5  0x00007f15956fed5d php_request_shutdown (libphp.so + 0x280d5d)
machine # #6  0x00007f1595857777 php_apache_request_dtor (libphp.so + 0x3d9777)
machine # #7  0x000000000045e085 ap_run_handler (httpd + 0x5e085)
machine # #8  0x000000000045e686 ap_invoke_handler (httpd + 0x5e686)
machine # #9  0x00000000004754dd ap_process_async_request (httpd + 0x754dd)
machine # #10 0x0000000000471886 ap_process_http_connection (httpd + 0x71886)
machine # #11 0x0000000000467e45 ap_run_process_connection (httpd + 0x67e45)
machine # #12 0x00007f1595fe0ab6 process_socket (mod_mpm_event.so + 0xbab6)
machine # #13 0x00007f1595fe150a worker_thread (mod_mpm_event.so + 0xc50a)
machine # #14 0x00007f15961dedd4 start_thread (libc.so.6 + 0x85dd4)
machine # #15 0x00007f15962609b0 __clone3 (libc.so.6 + 0x1079b0)
machine # ELF object binary architecture: AMD x86-64
machine # 
machine # * transfer closed with outstanding read data remaining
machine # * Closing connection 0

According to my bisection, 180f785 seems to be the culprit.

PHP Version

PHP 8.3.0 alpha 2

Operating System

NixOS

@nielsdos
Copy link
Member

nielsdos commented Jun 25, 2023

I don't think that commit is the root cause. I can reproduce segfaults and "misaligned tcache chunk detected" even after reverting that commit. I'll check...
EDIT: I get crashes on 8.2 and 8.1 too.
EDIT: Although that might be unrelated...

My setup was broken, I can reproduce the issue with the session variables.
I managed to get a useful Valgrind trace:

==78794== Conditional jump or move depends on uninitialised value(s)
==78794==    at 0x54191C2: php_session_cleanup_filename (session.c:126)
==78794==    by 0x5419635: php_rshutdown_session_globals (session.c:162)
==78794==    by 0x5427503: zm_deactivate_session (session.c:2809)
==78794==    by 0x568C4C4: zend_deactivate_modules (zend_API.c:3196)
==78794==    by 0x55AD8C0: php_request_shutdown (main.c:1841)
==78794==    by 0x581373F: php_apache_request_dtor (sapi_apache2.c:562)
==78794==    by 0x58142FA: php_handler (sapi_apache2.c:734)
==78794==    by 0x1602A7: ap_run_handler (config.c:169)
==78794==    by 0x1623A6: ap_invoke_handler (config.c:443)
==78794==    by 0x18B716: ap_process_async_request (http_request.c:452)
==78794==    by 0x180D54: UnknownInlinedFun (http_core.c:155)
==78794==    by 0x180D54: ap_process_http_connection.lto_priv.0 (http_core.c:246)
==78794==    by 0x175B17: ap_run_process_connection (connection.c:42)

nielsdos added a commit to nielsdos/php-src that referenced this issue Jun 25, 2023
In an MPM worker scenario we have 1 module, N threads. Each thread must
have their globals initialised. If we only initialise the filename
fields in MINIT, then the threads have an uninitialized value. If the
uninitialized value is not NULL, this leads to segfaults upon access.
@nielsdos nielsdos linked a pull request Jun 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants