[erlang-questions] Possibly bug in cth_log_redirect?

Loïc Hoguin essen@REDACTED
Sun Aug 11 15:19:37 CEST 2013


On 08/09/2013 10:12 PM, Max Lapshin wrote:
> When tests are running in parallel, LogFun in cth_log_redirect is
> changed to ct_log:
>
> https://github.com/erlang/otp/blob/3021fca734f71f8bae966ab67f1400d37f8927bc/lib/common_test/src/cth_log_redirect.erl#L49
>
> Problem is that it must be not ct_log, but tc_log:
>
> https://github.com/erlang/otp/blob/3021fca734f71f8bae966ab67f1400d37f8927bc/lib/common_test/src/ct_logs.erl#L44

I am also hit by this issue.

Full error message:

=ERROR REPORT==== 11-Aug-2013::15:16:09 ===
** gen_event handler cth_log_redirect crashed.
** Was installed in error_logger
** Last event was: {error,<0.390.0>,
                           {emulator,"~s~n",
                                     ["Error in process <0.620.0> on 
node 'ct@REDACTED' with exit value: {{<<18 
bytes>>,{stacktrace,[{http_errors,handle,2,[{file,\"test/http_SUITE_data/http_errors.erl\"},{line,37}]},{cowboy_handler,handler_handle,4,[{file,\"src/cowboy_handler.erl\"},{line,115}]},{cowboy_protocol,execute,4,[{file,\"src/cowbo... 
\n"]}}
** When handler state == ct_log
** Reason == {'function not exported',
                  [{ct_logs,ct_log,
                       [error_logger,50,"System",
                        ["\n",61,"ERROR 
REPORT",61,61,61,61,32,"11",45,"Aug",
 
45,"2013",58,58,"17",58,"16",58,"09",32,61,61,61,"\n",
                         "Error in process <0.620.0> on node 
'ct@REDACTED' with exit value: {{<<18 
bytes>>,{stacktrace,[{http_errors,handle,2,[{file,\"test/http_SUITE_data/http_errors.erl\"},{line,37}]},{cowboy_handler,handler_handle,4,[{file,\"src/cowboy_handler.erl\"},{line,115}]},{cowboy_protocol,execute,4,[{file,\"src/cowbo... 
\n",
                         "\n"],
                        []],
                       []},
                   {cth_log_redirect,handle_event,2,
                       [{file,"cth_log_redirect.erl"},{line,91}]},
                   {gen_event,server_update,4,
                       [{file,"gen_event.erl"},{line,522}]},
                   {gen_event,server_notify,4,
                       [{file,"gen_event.erl"},{line,504}]},
 
{gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,266}]},
                   {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,239}]}]}


-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list