swoole-src: Error WARNING ReactorEpoll::add()
I encountered an issue when using a coroutine to send data to AWS SNS within my application. The error occurs at runtime with the following message:
WARNING ReactorEpoll::add(): failed to add events[fd=26#0, type=27, events=512], Error: Bad file descriptor[9]
This happens when executing the coroutine using co(function () { ... })
Environment Details:
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 7
- Comments: 18 (9 by maintainers)
@jilcimar Please test with the latest code from the GitHub master branch, setting the
print_backtrace_on_erroroption totrue. This option will print the call stack when an unknown error occurs. This is an unknown error, and I cannot currently think of the circumstances under which this issue might arise.@iamrafaelmelo Please execute the following command to update swoole-src and recompile, ensuring that the cache is cleared.
Check the output of
php --ri swooleor look atconfig.hto see ifboost stacktraceorexecinfo.his enabled.@matyhtf I achieve install
boost-devon Alpine Linux, and works, on enableprint_backtrace_on_erroroption we have been this resultsAlpine
Swoole informations
PHP version and extensions
I have the same problem too