PHP中出现这个segmentation failure错误是什么原因

问题描述 投票:0回答:1

所以我的本地 PHP 设置在昨天下午之前运行良好,我的系统中安装了不同版本的 PHP,在尝试安装 imagemagick /imagick 时,我遇到了一个问题,在通过 Pecl 安装软件包后

注意:我正在运行 shivammathur/php/[email protected],其他代码库能够正常工作,没有任何问题,但这个特定的代码库不断抛出分段错误。

我也尝试过其他 PHP 版本,但有问题的代码库不断抛出该问题

我还删除了所有 imagemagick/imagick 包

我已经清除了所有 PHP 设置,然后再次开始,但仍然是同样的问题,

有谁能帮忙解释一下lldp调试报告的含义吗?

我尝试了 StackOverflow 上列出的不同解决方案,但没有任何帮助

这是错误的部分

[Fri Aug 25 22:34:42.452825 2023] [core:notice] [pid 18471] AH00052: child pid 19324 exit signal Segmentation fault (11)
[Fri Aug 25 22:34:42.453303 2023] [core:notice] [pid 18471] AH00052: child pid 18479 exit signal Segmentation fault (11)
[Fri Aug 25 22:34:43.454383 2023] [core:notice] [pid 18471] AH00052: child pid 18476 exit signal Segmentation fault (11)
[Fri Aug 25 22:34:48.460663 2023] [core:notice] [pid 18471] AH00052: child pid 19371 exit signal Segmentation fault (11)

我的 LLDP 调试报告

Process 18471 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00000001a1b8f030 libsystem_kernel.dylib`__select + 8
libsystem_kernel.dylib`:
->  0x1a1b8f030 <+8>:  b.lo   0x1a1b8f050               ; <+40>
    0x1a1b8f034 <+12>: pacibsp
    0x1a1b8f038 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1a1b8f03c <+20>: mov    x29, sp
Target 0: (httpd) stopped.
Executable module set to "/opt/homebrew/Cellar/httpd/2.4.57_1/bin/httpd".
Architecture set to: arm64-apple-macosx-.
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00000001a1b8f030 libsystem_kernel.dylib`__select + 8
    frame #1: 0x000000010494c528 libapr-1.0.dylib`apr_sleep + 84
    frame #2: 0x0000000104716bdc httpd`ap_wait_or_timeout + 140
    frame #3: 0x000000010491d548 mod_mpm_prefork.so`prefork_run + 1184
    frame #4: 0x0000000104715fbc httpd`ap_run_mpm + 84
    frame #5: 0x0000000104709500 httpd`main + 2200
    frame #6: 0x00000001a186bf28 dyld`start + 2236
  thread #2
    frame #0: 0x00000001a1b85c08 libsystem_kernel.dylib`__workq_kernreturn + 8
(lldb)
php apache segmentation-fault
1个回答
0
投票

我遇到了类似的问题,到目前为止我发现的唯一解决方法是使用 -X 键在调试模式下运行 httpd。这不是一个解决方案,而是一种识别真正原因的方法,因为它可能介于 httpd 和 macos 之间。

© www.soinside.com 2019 - 2024. All rights reserved.