[erlang-questions] cth_log_redirect crashes with timeout in application_controller?
Robert Raschke
rtrlists@REDACTED
Wed May 7 17:37:19 CEST 2014
Hi Roger,
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.
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.
If I remember correctly, I worked around this by explicitly disabling the
logging before stopping applications.
Maybe this will help you find your way a bit.
Robby
On May 7, 2014 4:05 PM, "Roger Lipscombe" <roger@REDACTED> wrote:
> I'm seeing the following when I run Common Test (via ct:run_test/1) .
> How can I diagnose/fix it?
>
> ...stuff...
>
> =ERROR REPORT==== 7-May-2014::15:59:15 ===
> ** gen_event handler cth_log_redirect crashed.
> ** Was installed in error_logger
> ** Last event was: {info_report,<0.30.0>,
> {<0.7.0>,std_info,
> [{application,asn1},
> {exited,stopped},
> {type,temporary}]}}
> ** When handler state == {eh_state,tc_log_async,imp_os_upgrade_SUITE,
>
> undefined,factory_imp_upgrades,false,false}
> ** Reason == {timeout,{gen_server,call,
> [application_controller,
> which_applications]}}
>
> =INFO REPORT==== 7-May-2014::15:59:15 ===
> application: sasl
> exited: stopped
> type: temporary
>
> ...more normal-looking stuff...
>
> ...scary error report stuff, which I assume is caused by the crash in
> cth_log_redirect, rather than the cause of same...
>
> What would be causing application_controller:which_applications to timeout?
>
> Erlang R16B03, by the way.
>
> Thanks,
> Roger.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140507/2cc04a72/attachment.htm>
More information about the erlang-questions
mailing list