Closed elazar closed 10 years ago
@wyrihaximus I'm hoping 853c8ae3d8f4093c141c97569cbf905b9a810a6c has resolved this. Can you confirm?
The referenced commit didn't affect the issue; the same stack trace was found. There is a pattern present therein:
{main}() phergie-irc-bot-react/bin/phergie:0
Phergie\Irc\Bot\React\Bot->run() phergie-irc-bot-react/bin/phergie:28
Phergie\Irc\Client\React\Client->run() phergie-irc-bot-react/src/Bot.php:248
React\EventLoop\LibEventLoop->run() phergie-irc-client-react/src/Client.php:465
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:344
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:468
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Evenement\EventEmitter->emit() phergie-irc-client-react/src/Client.php:293
Phergie\Irc\Bot\React\Bot->processClientEvent() phergie-irc-bot-react/src/Bot.php:464
Phergie\Irc\Bot\React\Bot->processOutgoingEvents() phergie-irc-bot-react/src/Bot.php:496
call_user_func_array() phergie-irc-bot-react/src/Bot.php:532
Phergie\Irc\Client\React\WriteStream->ircPrivmsg() phergie-irc-bot-react/src/Bot.php:532
Evenement\EventEmitter->emit() phergie-irc-client-react/src/WriteStream.php:343
Monolog\Logger->debug() phergie-irc-client-react/src/Client.php:192
Test case
Enable this plugin, then issue this command:
!dns nu.nl google.nl xs4all.nl fok.nl blog.wyrihaximus.net wyrihaximus.net wyrimaps.net blog.wyrimaps.net tweakers.net google.com amazon.co.uk eu.battle.net
With one small change to the test case plugin, I was unable to replicate this issue. The command referenced above works without issue.
So just for reference those are my stack traces and I use xdebug locally during development. xdebug throws a fatal error if the nesting level reaches 100. While PHP itself doesn't have a hard limit I always found it good practice to follow xdebug's limit.
PHP Version: 5.4.27 Xdebug Version: 2.2.3
I've installed the PHP and Xdebug versions you specified and I still can't replicate this issue. I checked that xdebug.max_nesting_level
is not overridden and has the default value of 100
. Any other ideas on what might be different between my environment and yours such that you can replicate the issue and I can't? Are you certain that your clones of phergie-irc-bot-react and phergie-irc-client-react are current with HEAD on master?
@WyriHaximus If this is no longer an issue or you have no new information to provide, I'd like to close this in anticipation of a stable release.
@elazar I don't have new information to provide. Also can't currently reproduce it.
Going to go ahead and call this issue resolved. Feel free to file another if you find you're able to reproduce it later. Thanks for the report.
Something like this in an event handler method appears to cause problems:
Possibly because queued events are only processed when another event is sent or received.
Example backtrace: