<p>Hi Roger,</p>
<p>I remember this happening to me a while ago. Unfortunately, I don't have access to my code until the weekend, so this is from memory.</p>
<p>The direct issue you are seeing is that for some reason the log redirector wants to know which applications are running, but it's doing that while an application is shutting down. This creates a deadlock. But luckily you see this as timeout.</p>

<p>If I remember correctly, I worked around this by explicitly disabling the logging before stopping applications.</p>
<p>Maybe this will help you find your way a bit.</p>
<p>Robby</p>
<div class="gmail_quote">On May 7, 2014 4:05 PM, "Roger Lipscombe" <<a href="mailto:roger@differentpla.net">roger@differentpla.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm seeing the following when I run Common Test (via ct:run_test/1) .<br>
How can I diagnose/fix it?<br>
<br>
...stuff...<br>
<br>
=ERROR REPORT==== 7-May-2014::15:59:15 ===<br>
** gen_event handler cth_log_redirect crashed.<br>
** Was installed in error_logger<br>
** Last event was: {info_report,<0.30.0>,<br>
                                {<0.7.0>,std_info,<br>
                                 [{application,asn1},<br>
                                  {exited,stopped},<br>
                                  {type,temporary}]}}<br>
** When handler state == {eh_state,tc_log_async,imp_os_upgrade_SUITE,<br>
                                   undefined,factory_imp_upgrades,false,false}<br>
** Reason == {timeout,{gen_server,call,<br>
                                  [application_controller,<br>
                                   which_applications]}}<br>
<br>
=INFO REPORT==== 7-May-2014::15:59:15 ===<br>
    application: sasl<br>
    exited: stopped<br>
    type: temporary<br>
<br>
...more normal-looking stuff...<br>
<br>
...scary error report stuff, which I assume is caused by the crash in<br>
cth_log_redirect, rather than the cause of same...<br>
<br>
What would be causing application_controller:which_applications to timeout?<br>
<br>
Erlang R16B03, by the way.<br>
<br>
Thanks,<br>
Roger.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>