xhprof icon indicating copy to clipboard operation
xhprof copied to clipboard

SIGSEGV with latest php8.4.3 and Symfony

Open dmitryuk opened this issue 11 months ago • 0 comments

Bug Report

  1. What did you do? If possible, provide a simple script for reproducing the error. docker with php:8.4.3-fpm-alpine3.21, Symfony 7.4, APP_ENV=prod

the line below with php-fpm request (php-cli works fine) triggers error

//vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php
            $acceptedLevels = array_values(array_filter(Level::cases(), fn (Level $level) => $level->value >= $minLevelOrList->value && $level->value <= $maxLevel->value));

strace result

/var/www # strace -f -p 13
strace: Process 13 attached
recvfrom(10, "step_over -i 31\0", 128, 0, NULL, NULL) = 16
getpid()                                = 13
writev(7, [{iov_base="[13] [Step Debug] <- step_over -"..., iov_len=37}, {iov_base=NULL, iov_len=0}], 2) = 37
select(9, [8], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV (core dumped) +++

dmesg result

[527283.766335] php-fpm[883747]: segfault at 0 ip 00005fcdb184d9e6 sp 00007ffd53927520 error 4 in php-fpm[5fcdb1800000+504000] likely on CPU 1 (core 1, socket 0)
[527283.766345] Code: 48 8b 92 00 02 00 00 48 8b 34 32 80 38 01 74 09 48 8d 05 75 5c 5d 01 eb 07 48 8d 05 68 5c 5d 01 48 63 00 48 c1 e0 03 48 01 c6 <48> 83 3e 03 74 08 48 89 df e8 9c 18 48 00 48 8d 05 55 4b 5d 01 48
  1. What did you expect to see?

  2. What did you see instead

  3. What is your Xhprof version? 2.3.10

dmitryuk avatar Jan 21 '25 04:01 dmitryuk