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

[Bug] [PHP]php-fpm not working sometimes, and nginx result in 502 #10424

Closed
2 of 3 tasks
yuzuofu opened this issue Feb 21, 2023 · 11 comments · Fixed by apache/skywalking-php#55
Closed
2 of 3 tasks

[Bug] [PHP]php-fpm not working sometimes, and nginx result in 502 #10424

yuzuofu opened this issue Feb 21, 2023 · 11 comments · Fixed by apache/skywalking-php#55
Assignees
Labels
bug Something isn't working and you are sure it's a bug! php PHP agent related

Comments

@yuzuofu
Copy link

yuzuofu commented Feb 21, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

PHP (apache/skywalking-php)

What happened

php-fpm not working sometimes, when php call mysql,memcached,curl extension, and nginx result in 502.

What you expected to happen

I hope visit website not result in 502.

How to reproduce

system:Linux homestead 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
cpu:2
memory:4GB
php-fpm:PHP 8.1.13 (fpm-fcgi) (built: Nov 26 2022 14:07:36)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans
skywalking php agent:skywalking_agent 0.3.0 stable

Anything else

here is core dump:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/php-fpm8.1...
(No debugging symbols found in /usr/sbin/php-fpm8.1)
[New LWP 27633]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000564c4483d096 in zend_array_destroy ()
(gdb)
(gdb) bt
#0 0x0000564c4483d096 in zend_array_destroy ()
#1 0x00007fc120a83e04 in std::thread::local::fast::destroy_value () from /usr/lib/php/20210902/skywalking_agent.so
#2 0x00007fc1236242bf in __GI___call_tls_dtors () at cxa_thread_atexit_impl.c:155
#3 0x00007fc123623a0d in __run_exit_handlers (status=1, listp=0x7fc1237c9718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true)
at exit.c:46
#4 0x00007fc123623a60 in __GI_exit (status=) at exit.c:139
#5 0x0000564c4464c282 in ?? ()
#6 0x0000564c4464c5e2 in ?? ()
#7 0x0000564c4483d0a0 in zend_array_destroy ()
#8 0x00007fc1209a64af in core::ops::function::FnOnce::call_once{{vtable-shim}} () from /usr/lib/php/20210902/skywalking_agent.so
#9 0x00007fc120a695f5 in skywalking_agent::util::catch_unwind_result () from /usr/lib/php/20210902/skywalking_agent.so
#10 0x00007fc120929318 in skywalking_agent::execute::execute_internal () from /usr/lib/php/20210902/skywalking_agent.so
#11 0x00007fc120ed61c1 in xdebug_execute_internal (current_execute_data=0x7fc1212171b0, return_value=0x7ffd023be090) at ./build-8.1/src/base/base.c:895
#12 0x0000564c44898364 in execute_ex ()
#13 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#14 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216f40) at ./build-8.1/src/base/base.c:779
#15 0x0000564c4489a1c2 in execute_ex ()
#16 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#17 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216dd0) at ./build-8.1/src/base/base.c:779
#18 0x0000564c4489a1c2 in execute_ex ()
#19 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#20 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216cf0) at ./build-8.1/src/base/base.c:779
#21 0x0000564c4489a1c2 in execute_ex ()
#22 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#23 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216c20) at ./build-8.1/src/base/base.c:779
#24 0x0000564c4489a1c2 in execute_ex ()
#25 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#26 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216950) at ./build-8.1/src/base/base.c:779
#27 0x0000564c4489a1c2 in execute_ex ()
#28 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#29 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212167e0) at ./build-8.1/src/base/base.c:779
#30 0x0000564c4489a1c2 in execute_ex ()
#31 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#32 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216610) at ./build-8.1/src/base/base.c:779
#33 0x0000564c4489a1c2 in execute_ex ()
#34 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#35 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216530) at ./build-8.1/src/base/base.c:779
#36 0x0000564c4489a1c2 in execute_ex ()
#37 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#38 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216480) at ./build-8.1/src/base/base.c:779
#39 0x0000564c4489a1c2 in execute_ex ()
#40 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#41 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212161b0) at ./build-8.1/src/base/base.c:779
#42 0x0000564c4489a1c2 in execute_ex ()
#43 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#44 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215fb0) at ./build-8.1/src/base/base.c:779
#45 0x0000564c4489a1c2 in execute_ex ()
#46 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#47 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215ef0) at ./build-8.1/src/base/base.c:779
#48 0x0000564c4489a1c2 in execute_ex ()
#49 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#50 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215df0) at ./build-8.1/src/base/base.c:779
#51 0x0000564c4489a1c2 in execute_ex ()
#52 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#53 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215d50) at ./build-8.1/src/base/base.c:779
#54 0x0000564c4489a1c2 in execute_ex ()
#55 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#56 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215880) at ./build-8.1/src/base/base.c:779
#57 0x0000564c4489a1c2 in execute_ex ()
#58 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#59 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215810) at ./build-8.1/src/base/base.c:779
#60 0x0000564c4489a1c2 in execute_ex ()
#61 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#62 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212155c0) at ./build-8.1/src/base/base.c:779
#63 0x0000564c4489a1c2 in execute_ex ()
#64 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#65 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214f90) at ./build-8.1/src/base/base.c:779
#66 0x0000564c4489a1c2 in execute_ex ()
#67 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#68 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214ef0) at ./build-8.1/src/base/base.c:779
#69 0x0000564c4489a1c2 in execute_ex ()
#70 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#71 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214e60) at ./build-8.1/src/base/base.c:779
#72 0x0000564c4489a1c2 in execute_ex ()
#73 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#74 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214d30) at ./build-8.1/src/base/base.c:779
#75 0x0000564c4489a1c2 in execute_ex ()
#76 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#77 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214a70) at ./build-8.1/src/base/base.c:779
#78 0x0000564c4489a1c2 in execute_ex ()
#79 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#80 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212149e0) at ./build-8.1/src/base/base.c:779
#81 0x0000564c4489a1c2 in execute_ex ()
#82 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#83 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212148f0) at ./build-8.1/src/base/base.c:779
#84 0x0000564c4489a1c2 in execute_ex ()
#85 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#86 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214850) at ./build-8.1/src/base/base.c:779
#87 0x0000564c4489a1c2 in execute_ex ()
#88 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#89 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214760) at ./build-8.1/src/base/base.c:779
#90 0x0000564c4489a1c2 in execute_ex ()
#91 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#92 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214640) at ./build-8.1/src/base/base.c:779
#93 0x0000564c4489a1c2 in execute_ex ()
#94 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#95 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214590) at ./build-8.1/src/base/base.c:779
#96 0x0000564c4489a1c2 in execute_ex ()
#97 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#98 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212144a0) at ./build-8.1/src/base/base.c:779
#99 0x0000564c4489a1c2 in execute_ex ()
#100 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#101 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214300) at ./build-8.1/src/base/base.c:779
#102 0x0000564c4489a1c2 in execute_ex ()
#103 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#104 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214190) at ./build-8.1/src/base/base.c:779
#105 0x0000564c4489a1c2 in execute_ex ()
#106 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#107 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214110) at ./build-8.1/src/base/base.c:779
#108 0x0000564c4489a1c2 in execute_ex ()
#109 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#110 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214090) at ./build-8.1/src/base/base.c:779
#111 0x0000564c4489a1c2 in execute_ex ()
#112 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#113 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213fd0) at ./build-8.1/src/base/base.c:779
#114 0x0000564c4489a1c2 in execute_ex ()
#115 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#116 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213f20) at ./build-8.1/src/base/base.c:779
#117 0x0000564c4489a1c2 in execute_ex ()
#118 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#119 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213d90) at ./build-8.1/src/base/base.c:779
#120 0x0000564c4489a1c2 in execute_ex ()
#121 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#122 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213ad0) at ./build-8.1/src/base/base.c:779
#123 0x0000564c4489a1c2 in execute_ex ()
#124 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#125 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213990) at ./build-8.1/src/base/base.c:779
#126 0x0000564c4489a1c2 in execute_ex ()
#127 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#128 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212136d0) at ./build-8.1/src/base/base.c:779
#129 0x0000564c4489a1c2 in execute_ex ()
#130 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#131 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212135c0) at ./build-8.1/src/base/base.c:779
#132 0x0000564c4489a1c2 in execute_ex ()
#133 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#134 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213440) at ./build-8.1/src/base/base.c:779
#135 0x0000564c4489a1c2 in execute_ex ()
#136 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#137 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213180) at ./build-8.1/src/base/base.c:779
#138 0x0000564c4489a1c2 in execute_ex ()
#139 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#140 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212e50) at ./build-8.1/src/base/base.c:779
#141 0x0000564c4489a1c2 in execute_ex ()
#142 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#143 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212b90) at ./build-8.1/src/base/base.c:779
#144 0x0000564c4489a1c2 in execute_ex ()
#145 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#146 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212aa0) at ./build-8.1/src/base/base.c:779
#147 0x0000564c4489a1c2 in execute_ex ()
#148 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#149 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212950) at ./build-8.1/src/base/base.c:779
#150 0x0000564c4489a1c2 in execute_ex ()
#151 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#152 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212800) at ./build-8.1/src/base/base.c:779
#153 0x0000564c4489a1c2 in execute_ex ()
#154 0x00007fc12092ae89 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#155 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212020) at ./build-8.1/src/base/base.c:779
#156 0x0000564c4489b86d in zend_execute ()
#157 0x0000564c4482b995 in zend_execute_scripts ()
#158 0x0000564c447c878a in php_execute_script ()
#159 0x0000564c4466caed in ?? ()
#160 0x00007fc123601083 in __libc_start_main (main=0x564c4466bbc0, argc=4, argv=0x7ffd023cd0c8, init=, fini=, rtld_fini=,
stack_end=0x7ffd023cd0b8) at ../csu/libc-start.c:308
#161 0x0000564c4466df1e in _start ()

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@yuzuofu yuzuofu added the bug Something isn't working and you are sure it's a bug! label Feb 21, 2023
@wu-sheng wu-sheng added the php PHP agent related label Feb 21, 2023
@heyanlong
Copy link
Member

Do you have coredump?

@yuzuofu
Copy link
Author

yuzuofu commented Feb 21, 2023

here is core dump:
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000564c4483d096 in zend_array_destroy ()
(gdb)
(gdb) bt
#0 0x0000564c4483d096 in zend_array_destroy ()
#1 0x00007fc120a83e04 in std:🧵:local::fast::destroy_value () from /usr/lib/php/20210902/skywalking_agent.so
#2 0x00007fc1236242bf in __GI___call_tls_dtors () at cxa_thread_atexit_impl.c:155
#3 0x00007fc123623a0d in __run_exit_handlers (status=1, listp=0x7fc1237c9718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true)
at exit.c:46
#4 0x00007fc123623a60 in __GI_exit (status=) at exit.c:139
#5 0x0000564c4464c282 in ?? ()
#6 0x0000564c4464c5e2 in ?? ()
#7 0x0000564c4483d0a0 in zend_array_destroy ()
#8 0x00007fc1209a64af in core::ops::function::FnOnce::call_once{{vtable-shim}} () from /usr/lib/php/20210902/skywalking_agent.so
#9 0x00007fc120a695f5 in skywalking_agent::util::catch_unwind_result () from /usr/lib/php/20210902/skywalking_agent.so
#10 0x00007fc120929318 in skywalking_agent::execute::execute_internal () from /usr/lib/php/20210902/skywalking_agent.so
#11 0x00007fc120ed61c1 in xdebug_execute_internal (current_execute_data=0x7fc1212171b0, return_value=0x7ffd023be090) at ./build-8.1/src/base/base.c:895
#12 0x0000564c44898364 in execute_ex ()
#13 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#14 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216f40) at ./build-8.1/src/base/base.c:779
#15 0x0000564c4489a1c2 in execute_ex ()
#16 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#17 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216dd0) at ./build-8.1/src/base/base.c:779
#18 0x0000564c4489a1c2 in execute_ex ()
#19 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#20 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216cf0) at ./build-8.1/src/base/base.c:779
#21 0x0000564c4489a1c2 in execute_ex ()
#22 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#23 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216c20) at ./build-8.1/src/base/base.c:779
#24 0x0000564c4489a1c2 in execute_ex ()
#25 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#26 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216950) at ./build-8.1/src/base/base.c:779
#27 0x0000564c4489a1c2 in execute_ex ()
#28 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#29 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212167e0) at ./build-8.1/src/base/base.c:779
#30 0x0000564c4489a1c2 in execute_ex ()
#31 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#32 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216610) at ./build-8.1/src/base/base.c:779
#33 0x0000564c4489a1c2 in execute_ex ()
#34 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#35 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216530) at ./build-8.1/src/base/base.c:779
#36 0x0000564c4489a1c2 in execute_ex ()
#37 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#38 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121216480) at ./build-8.1/src/base/base.c:779
#39 0x0000564c4489a1c2 in execute_ex ()
#40 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#41 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212161b0) at ./build-8.1/src/base/base.c:779
#42 0x0000564c4489a1c2 in execute_ex ()
#43 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#44 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215fb0) at ./build-8.1/src/base/base.c:779
#45 0x0000564c4489a1c2 in execute_ex ()
#46 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#47 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215ef0) at ./build-8.1/src/base/base.c:779
#48 0x0000564c4489a1c2 in execute_ex ()
#49 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#50 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215df0) at ./build-8.1/src/base/base.c:779
#51 0x0000564c4489a1c2 in execute_ex ()
#52 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#53 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215d50) at ./build-8.1/src/base/base.c:779
#54 0x0000564c4489a1c2 in execute_ex ()
#55 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#56 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215880) at ./build-8.1/src/base/base.c:779
#57 0x0000564c4489a1c2 in execute_ex ()
#58 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#59 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121215810) at ./build-8.1/src/base/base.c:779
#60 0x0000564c4489a1c2 in execute_ex ()
#61 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#62 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212155c0) at ./build-8.1/src/base/base.c:779
#63 0x0000564c4489a1c2 in execute_ex ()
#64 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#65 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214f90) at ./build-8.1/src/base/base.c:779
#66 0x0000564c4489a1c2 in execute_ex ()
#67 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#68 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214ef0) at ./build-8.1/src/base/base.c:779
#69 0x0000564c4489a1c2 in execute_ex ()
#70 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#71 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214e60) at ./build-8.1/src/base/base.c:779
#72 0x0000564c4489a1c2 in execute_ex ()
#73 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#74 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214d30) at ./build-8.1/src/base/base.c:779
#75 0x0000564c4489a1c2 in execute_ex ()
#76 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#77 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214a70) at ./build-8.1/src/base/base.c:779
#78 0x0000564c4489a1c2 in execute_ex ()
#79 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#80 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212149e0) at ./build-8.1/src/base/base.c:779
#81 0x0000564c4489a1c2 in execute_ex ()
#82 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#83 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212148f0) at ./build-8.1/src/base/base.c:779
#84 0x0000564c4489a1c2 in execute_ex ()
#85 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#86 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214850) at ./build-8.1/src/base/base.c:779
#87 0x0000564c4489a1c2 in execute_ex ()
#88 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#89 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214760) at ./build-8.1/src/base/base.c:779
#90 0x0000564c4489a1c2 in execute_ex ()
#91 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#92 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214640) at ./build-8.1/src/base/base.c:779
#93 0x0000564c4489a1c2 in execute_ex ()
#94 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#95 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214590) at ./build-8.1/src/base/base.c:779
#96 0x0000564c4489a1c2 in execute_ex ()
#97 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#98 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212144a0) at ./build-8.1/src/base/base.c:779
#99 0x0000564c4489a1c2 in execute_ex ()
#100 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#101 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214300) at ./build-8.1/src/base/base.c:779
#102 0x0000564c4489a1c2 in execute_ex ()
#103 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#104 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214190) at ./build-8.1/src/base/base.c:779
#105 0x0000564c4489a1c2 in execute_ex ()
#106 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#107 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214110) at ./build-8.1/src/base/base.c:779
#108 0x0000564c4489a1c2 in execute_ex ()
#109 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#110 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121214090) at ./build-8.1/src/base/base.c:779
#111 0x0000564c4489a1c2 in execute_ex ()
#112 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#113 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213fd0) at ./build-8.1/src/base/base.c:779
#114 0x0000564c4489a1c2 in execute_ex ()
#115 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#116 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213f20) at ./build-8.1/src/base/base.c:779
#117 0x0000564c4489a1c2 in execute_ex ()
#118 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#119 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213d90) at ./build-8.1/src/base/base.c:779
#120 0x0000564c4489a1c2 in execute_ex ()
#121 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#122 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213ad0) at ./build-8.1/src/base/base.c:779
#123 0x0000564c4489a1c2 in execute_ex ()
#124 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#125 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213990) at ./build-8.1/src/base/base.c:779
#126 0x0000564c4489a1c2 in execute_ex ()
#127 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#128 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212136d0) at ./build-8.1/src/base/base.c:779
#129 0x0000564c4489a1c2 in execute_ex ()
#130 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#131 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc1212135c0) at ./build-8.1/src/base/base.c:779
#132 0x0000564c4489a1c2 in execute_ex ()
#133 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#134 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213440) at ./build-8.1/src/base/base.c:779
#135 0x0000564c4489a1c2 in execute_ex ()
#136 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#137 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121213180) at ./build-8.1/src/base/base.c:779
#138 0x0000564c4489a1c2 in execute_ex ()
#139 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#140 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212e50) at ./build-8.1/src/base/base.c:779
#141 0x0000564c4489a1c2 in execute_ex ()
#142 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#143 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212b90) at ./build-8.1/src/base/base.c:779
#144 0x0000564c4489a1c2 in execute_ex ()
#145 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#146 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212aa0) at ./build-8.1/src/base/base.c:779
#147 0x0000564c4489a1c2 in execute_ex ()
#148 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#149 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212950) at ./build-8.1/src/base/base.c:779
#150 0x0000564c4489a1c2 in execute_ex ()
#151 0x00007fc12092aea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#152 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212800) at ./build-8.1/src/base/base.c:779
#153 0x0000564c4489a1c2 in execute_ex ()
#154 0x00007fc12092ae89 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#155 0x00007fc120ed5b52 in xdebug_execute_ex (execute_data=0x7fc121212020) at ./build-8.1/src/base/base.c:779
#156 0x0000564c4489b86d in zend_execute ()
#157 0x0000564c4482b995 in zend_execute_scripts ()
#158 0x0000564c447c878a in php_execute_script ()
#159 0x0000564c4466caed in ?? ()
#160 0x00007fc123601083 in __libc_start_main (main=0x564c4466bbc0, argc=4, argv=0x7ffd023cd0c8, init=, fini=, rtld_fini=,
stack_end=0x7ffd023cd0b8) at ../csu/libc-start.c:308
#161 0x0000564c4466df1e in _start ()

@yuzuofu
Copy link
Author

yuzuofu commented Feb 21, 2023

here is another call stack:
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055e82bc9a268 in _emalloc ()
(gdb) bt
#0 0x000055e82bc9a268 in _emalloc ()
#1 0x000055e82bcc5776 in add_assoc_string_ex ()
#2 0x00007f271b6db3d2 in ?? () from /usr/lib/php/20210902/curl.so
#3 0x00007f271b7d301a in skywalking_agent::execute::execute_internal () from /usr/lib/php/20210902/skywalking_agent.so
#4 0x00007f271bda11c1 in xdebug_execute_internal (current_execute_data=0x7f271c2181c0, return_value=0x7f271c218110) at ./build-8.1/src/base/base.c:895
#5 0x000055e82bd2f47f in execute_ex ()
#6 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#7 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217fd0) at ./build-8.1/src/base/base.c:779
#8 0x000055e82bd311c2 in execute_ex ()
#9 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#10 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217e40) at ./build-8.1/src/base/base.c:779
#11 0x000055e82bd311c2 in execute_ex ()
#12 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#13 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217cd0) at ./build-8.1/src/base/base.c:779
#14 0x000055e82bd311c2 in execute_ex ()
#15 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#16 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217bf0) at ./build-8.1/src/base/base.c:779
#17 0x000055e82bd311c2 in execute_ex ()
#18 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#19 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217b20) at ./build-8.1/src/base/base.c:779
#20 0x000055e82bd311c2 in execute_ex ()
#21 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#22 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217850) at ./build-8.1/src/base/base.c:779
#23 0x000055e82bd311c2 in execute_ex ()
#24 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#25 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c2176e0) at ./build-8.1/src/base/base.c:779
#26 0x000055e82bd311c2 in execute_ex ()
#27 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#28 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217510) at ./build-8.1/src/base/base.c:779
#29 0x000055e82bd311c2 in execute_ex ()
#30 0x00007f271b7d4ea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#31 0x00007f271bda0b52 in xdebug_execute_ex (execute_data=0x7f271c217430) at ./build-8.1/src/base/base.c:779
#32 0x000055e82bd311c2 in execute_ex ()

@jmjoy
Copy link
Member

jmjoy commented Feb 22, 2023

Please close xdebug to see if there are still problems.

@yuzuofu
Copy link
Author

yuzuofu commented Feb 23, 2023

I had closed xdebug,but the problem is not fixed.

@yuzuofu
Copy link
Author

yuzuofu commented Feb 23, 2023

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000559047641fad in zval_ptr_dtor ()
(gdb) bt
#0 0x0000559047641fad in zval_ptr_dtor ()
#1 0x00007f51872db4af in core::ops::function::FnOnce::call_once{{vtable-shim}} () from /usr/lib/php/20210902/skywalking_agent.so
#2 0x00007f518739e5f5 in skywalking_agent::util::catch_unwind_result () from /usr/lib/php/20210902/skywalking_agent.so
#3 0x00007f518725e318 in skywalking_agent::execute::execute_internal () from /usr/lib/php/20210902/skywalking_agent.so
#4 0x00005590476b1364 in execute_ex ()
#5 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#6 0x00005590476b31c2 in execute_ex ()
#7 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#8 0x00005590476b31c2 in execute_ex ()
#9 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#10 0x00005590476b31c2 in execute_ex ()
#11 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#12 0x00005590476b31c2 in execute_ex ()
#13 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#14 0x00005590476b31c2 in execute_ex ()
#15 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#16 0x00005590476b31c2 in execute_ex ()
#17 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#18 0x00005590476b31c2 in execute_ex ()
#19 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#20 0x00005590476b31c2 in execute_ex ()
#21 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#22 0x00005590476b31c2 in execute_ex ()
#23 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#24 0x00005590476b31c2 in execute_ex ()
#25 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#26 0x00005590476b31c2 in execute_ex ()
#27 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#28 0x00005590476b31c2 in execute_ex ()
#29 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#30 0x00005590476b31c2 in execute_ex ()
#31 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#32 0x00005590476b31c2 in execute_ex ()
--Type for more, q to quit, c to continue without paging--
#33 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#34 0x00005590476b31c2 in execute_ex ()
#35 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#36 0x00005590476b31c2 in execute_ex ()
#37 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#38 0x00005590476b31c2 in execute_ex ()
#39 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#40 0x00005590476b31c2 in execute_ex ()
#41 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#42 0x00005590476b31c2 in execute_ex ()
#43 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#44 0x00005590476b31c2 in execute_ex ()
#45 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#46 0x00005590476b31c2 in execute_ex ()
#47 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#48 0x000055904767f58a in ?? ()
#49 0x00005590476ab4af in execute_ex ()
#50 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#51 0x00005590476b31c2 in execute_ex ()
#52 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#53 0x00005590476b31c2 in execute_ex ()
#54 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#55 0x00005590476b4065 in execute_ex ()
#56 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#57 0x00005590476b4065 in execute_ex ()
#58 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#59 0x00005590476360fc in zend_call_function ()
#60 0x00005590476364cd in zend_call_known_function ()
#61 0x0000559047517bb3 in ?? ()
#62 0x00007f518725e009 in skywalking_agent::execute::execute_internal () from /usr/lib/php/20210902/skywalking_agent.so
#63 0x00005590476b147f in execute_ex ()
#64 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#65 0x00005590476b31c2 in execute_ex ()
--Type for more, q to quit, c to continue without paging--
#66 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#67 0x00005590476b31c2 in execute_ex ()
#68 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#69 0x00005590476b31c2 in execute_ex ()
#70 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#71 0x00005590476b31c2 in execute_ex ()
#72 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#73 0x00005590476b31c2 in execute_ex ()
#74 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#75 0x00005590476b31c2 in execute_ex ()
#76 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#77 0x00005590476b31c2 in execute_ex ()
#78 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#79 0x00005590476b31c2 in execute_ex ()
#80 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#81 0x00005590476b31c2 in execute_ex ()
#82 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#83 0x00005590476b31c2 in execute_ex ()
#84 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#85 0x00005590476b31c2 in execute_ex ()
#86 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#87 0x00005590476b31c2 in execute_ex ()
#88 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#89 0x00005590476b31c2 in execute_ex ()
#90 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#91 0x00005590476b31c2 in execute_ex ()
#92 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#93 0x00005590476b31c2 in execute_ex ()
#94 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#95 0x00005590476b31c2 in execute_ex ()
#96 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#97 0x00005590476b31c2 in execute_ex ()
#98 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
--Type for more, q to quit, c to continue without paging--
#99 0x00005590476b31c2 in execute_ex ()
#100 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#101 0x00005590476b31c2 in execute_ex ()
#102 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#103 0x00005590476b31c2 in execute_ex ()
#104 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#105 0x00005590476b31c2 in execute_ex ()
#106 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#107 0x00005590476b31c2 in execute_ex ()
#108 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#109 0x00005590476b31c2 in execute_ex ()
#110 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#111 0x00005590476b31c2 in execute_ex ()
#112 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#113 0x00005590476b31c2 in execute_ex ()
#114 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#115 0x00005590476b31c2 in execute_ex ()
#116 0x00007f518725fea3 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#117 0x00005590476b31c2 in execute_ex ()
#118 0x00007f518725fe89 in skywalking_agent::execute::execute_ex () from /usr/lib/php/20210902/skywalking_agent.so
#119 0x00005590476b486d in zend_execute ()
#120 0x0000559047644995 in zend_execute_scripts ()
#121 0x00005590475e178a in php_execute_script ()
#122 0x0000559047485aed in ?? ()
#123 0x00007f5189ee3083 in __libc_start_main (main=0x559047484bc0, argc=4, argv=0x7fffb0eb0d38, init=, fini=, rtld_fini=,
stack_end=0x7fffb0eb0d28) at ../csu/libc-start.c:308
#124 0x0000559047486f1e in _start ()

@jmjoy
Copy link
Member

jmjoy commented Feb 23, 2023

Please show your code? Or small demos that can be repeated the problem.

@yuzuofu
Copy link
Author

yuzuofu commented Feb 23, 2023

https://github.com/yuzuofu/skywalking_agent_test
here is the demo, use nginx+fpm to visit and will appear 502.

@yuzuofu
Copy link
Author

yuzuofu commented Feb 23, 2023

this is the demo's coredump on my machine

Reading symbols from /usr/sbin/php-fpm8.1...
(No debugging symbols found in /usr/sbin/php-fpm8.1)
[New LWP 74871]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055987803df90 in zend_hash_real_init_mixed ()
(gdb) bt
#0 0x000055987803df90 in zend_hash_real_init_mixed ()
#1 0x0000559878040655 in zend_hash_next_index_insert ()
#2 0x00007f3a11a2ad4e in phper_zend_hash_next_index_insert (ht=0x7f3a12a5d888,
pData=0x7fff34559620) at php_wrapper.c:114
#3 0x00007f3a118bfad6 in phper::arrays::ZArr::insert (self=0x7f3a12a5d888,
key=..., value=...)
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/phper-0.10.2/src/arrays.rs:155
#4 0x00007f3a11791bbf in skywalking_agent::plugin::plugin_curl::CurlPlugin::hook_curl_exec::{{closure}} (request_id=..., execute_data=0x7f3a12a120c0)
at src/plugin/plugin_curl.rs:167
#5 0x00007f3a11927bb3 in core::ops::function::FnOnce::call_once{{vtable-shim}} ()
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/ops/function.rs:248
#6 0x00007f3a1185a4c7 in <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once (self=..., args=...)
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/alloc/src/boxed.rs:1940
#7 0x00007f3a117a7fc9 in skywalking_agent::execute::execute_internal::{{closure}}
() at src/execute.rs:128
#8 0x00007f3a11794519 in <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once (self=..., _args=())
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/panic/unwind_safe.rs:271
#9 0x00007f3a117ba68d in std::panicking::try::do_call (data=0x7fff3455a958 "\001")
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:492
#10 0x00007f3a117bf2eb in __rust_try ()
from /usr/lib/php/20210902/skywalking_agent.so
#11 0x00007f3a117b7c5e in std::panicking::try (f=...)
at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:456
--Type for more, q to quit, c to continue without paging--

@jmjoy
Copy link
Member

jmjoy commented Mar 8, 2023

@yuzuofu Please try this PR apache/skywalking-php#55 weether fix this issue?

@yuzuofu
Copy link
Author

yuzuofu commented Mar 9, 2023

thanks, my problem is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and you are sure it's a bug! php PHP agent related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants