-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Comments
Do you have coredump? |
here is core dump: |
here is another call stack: |
Please close |
I had closed xdebug,but the problem is not fixed. |
[Thread debugging using libthread_db enabled] |
Please show your code? Or small demos that can be repeated the problem. |
https://github.com/yuzuofu/skywalking_agent_test |
this is the demo's coredump on my machine Reading symbols from /usr/sbin/php-fpm8.1... |
@yuzuofu Please try this PR apache/skywalking-php#55 weether fix this issue? |
thanks, my problem is fixed |
Search before asking
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?
Code of Conduct
The text was updated successfully, but these errors were encountered: