[erlang-questions] gen_event handler error_logger_file_h crashed
Bogdan Andu
bog495@REDACTED
Wed May 6 13:20:31 CEST 2015
Hi,
The following line:
error_logger:info_msg("[~p]:~ts~n", [PPid, Doc])
prints (Doc is data from the wire - untouched):
[<0.99.0>]:<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<command>
<create>
<contact:create
xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
<contact:id>AUTO-1232</contact:id>
<contact:postalInfo type="int">
<contact:name>Nume
Det</contact:name>
<contact:org></contact:org>
<contact:addr>
<contact:street>Address
#1</contact:street>
<contact:street>Address #2
\276 \320 \350 \352 \353 </contact:street>
<contact:street>Address #3
- \403\356\342\x{219}\x{21B}\402\316\x{218}\x{21A}\302</contact:street>
<contact:city>City</contact:city>
<contact:sp>Province</contact:sp>
<contact:pc>102030</contact:pc>
<contact:cc>ro</contact:cc>
</contact:addr>
</contact:postalInfo>
<contact:voice>+40.233232313</contact:voice>
<contact:fax>+40.722565195</contact:fax>
<contact:email>bogdan@REDACTED
</contact:email>
<contact:authInfo>
<contact:pw></contact:pw>
</contact:authInfo>
</contact:create>
</create>
<clTRID>5549ee7e3a208</clTRID>
</command>
</epp>
it logs to the file log: /var/xpp/logs/error_log
and also to the stdout and then generates the error:
'gen_event handler error_logger_file_h crashed'
and logging is not performed anymore in file log,
only to stdout.
the app is running in shell mode
The full (lengthy) error follows (sorry for the length of error):
=ERROR REPORT==== 6-May-2015::13:37:39 ===
** gen_event handler error_logger_file_h crashed.
** Was installed in error_logger
** Last event was: {info_msg,<0.80.0>,
{<0.123.0>,"[~p]:~ts~n",
[<0.99.0>,
<<60,63,120,109,108,32,118,101,114,115,105,
111,110,61,34,49,46,48,34,32,101,110,99,
111,100,105,110,103,61,34,85,84,70,45,56,
34,63,62,10,60,101,112,112,32,120,109,108,
110,115,61,34,117,114,110,58,105,101,116,
102,58,112,97,114,97,109,115,58,120,109,
108,58,110,115,58,101,112,112,45,49,46,48,
34,32,120,109,108,110,115,58,120,115,105,
61,34,104,116,116,112,58,47,47,119,119,119,
46,119,51,46,111,114,103,47,50,48,48,49,47,
88,77,76,83,99,104,101,109,97,45,105,110,
115,116,97,110,99,101,34,10,9,120,115,105,
58,115,99,104,101,109,97,76,111,99,97,116,
105,111,110,61,34,117,114,110,58,105,101,
116,102,58,112,97,114,97,109,115,58,120,
109,108,58,110,115,58,101,112,112,45,49,46,
48,32,101,112,112,45,49,46,48,46,120,115,
100,34,62,10,9,60,99,111,109,109,97,110,
100,62,10,9,9,60,99,114,101,97,116,101,62,
10,9,9,9,60,99,111,110,116,97,99,116,58,99,
114,101,97,116,101,32,120,109,108,110,115,
58,99,111,110,116,97,99,116,61,34,117,114,
110,58,105,101,116,102,58,112,97,114,97,
109,115,58,120,109,108,58,110,115,58,99,
111,110,116,97,99,116,45,49,46,48,34,10,9,
9,9,9,120,115,105,58,115,99,104,101,109,97,
76,111,99,97,116,105,111,110,61,34,117,114,
110,58,105,101,116,102,58,112,97,114,97,
109,115,58,120,109,108,58,110,115,58,99,
111,110,116,97,99,116,45,49,46,48,32,99,
111,110,116,97,99,116,45,49,46,48,46,120,
115,100,34,62,10,9,9,9,9,60,99,111,110,116,
97,99,116,58,105,100,62,65,85,84,79,45,49,
50,51,50,60,47,99,111,110,116,97,99,116,58,
105,100,62,10,9,9,9,9,60,99,111,110,116,97,
99,116,58,112,111,115,116,97,108,73,110,
102,111,32,116,121,112,101,61,34,105,110,
116,34,62,10,9,9,9,9,9,60,99,111,110,116,
97,99,116,58,110,97,109,101,62,78,117,109,
101,32,68,101,116,60,47,99,111,110,116,97,
99,116,58,110,97,109,101,62,10,9,9,9,9,9,
60,99,111,110,116,97,99,116,58,111,114,103,
62,60,47,99,111,110,116,97,99,116,58,111,
114,103,62,10,9,9,9,9,9,60,99,111,110,116,
97,99,116,58,97,100,100,114,62,10,9,9,9,9,
9,9,60,99,111,110,116,97,99,116,58,115,116,
114,101,101,116,62,65,100,100,114,101,115,
115,32,35,49,60,47,99,111,110,116,97,99,
116,58,115,116,114,101,101,116,62,10,9,9,9,
9,9,9,60,99,111,110,116,97,99,116,58,115,
116,114,101,101,116,62,65,100,100,114,101,
115,115,32,35,50,32,194,190,32,195,144,32,
195,168,32,195,170,32,195,171,32,60,47,99,
111,110,116,97,99,116,58,115,116,114,101,
101,116,62,10,9,9,9,9,9,9,60,99,111,110,
116,97,99,116,58,115,116,114,101,101,116,
62,65,100,100,114,101,115,115,32,35,51,32,
45,32,196,131,195,174,195,162,200,153,200,
155,196,130,195,142,200,152,200,154,195,
130,60,47,99,111,110,116,97,99,116,58,115,
116,114,101,101,116,62,10,9,9,9,9,9,9,60,
99,111,110,116,97,99,116,58,99,105,116,121,
62,67,105,116,121,60,47,99,111,110,116,97,
99,116,58,99,105,116,121,62,10,9,9,9,9,9,9,
60,99,111,110,116,97,99,116,58,115,112,62,
80,114,111,118,105,110,99,101,60,47,99,111,
110,116,97,99,116,58,115,112,62,10,9,9,9,9,
9,9,60,99,111,110,116,97,99,116,58,112,99,
62,49,48,50,48,51,48,60,47,99,111,110,116,
97,99,116,58,112,99,62,10,9,9,9,9,9,9,60,
99,111,110,116,97,99,116,58,99,99,62,114,
111,60,47,99,111,110,116,97,99,116,58,99,
99,62,10,9,9,9,9,9,60,47,99,111,110,116,97,
99,116,58,97,100,100,114,62,10,9,9,9,9,60,
47,99,111,110,116,97,99,116,58,112,111,115,
116,97,108,73,110,102,111,62,10,9,9,9,9,60,
99,111,110,116,97,99,116,58,118,111,105,99,
101,62,43,52,48,46,50,51,51,50,51,50,51,49,
51,60,47,99,111,110,116,97,99,116,58,118,
111,105,99,101,62,10,9,9,9,9,60,99,111,110,
116,97,99,116,58,102,97,120,62,43,52,48,46,
55,50,50,53,54,53,49,57,53,60,47,99,111,
110,116,97,99,116,58,102,97,120,62,10,9,9,
9,9,60,99,111,110,116,97,99,116,58,101,109,
97,105,108,62,98,111,103,100,97,110,64,114,
111,116,108,100,46,114,111,60,47,99,111,
110,116,97,99,116,58,101,109,97,105,108,62,
10,9,9,9,9,60,99,111,110,116,97,99,116,58,
97,117,116,104,73,110,102,111,62,10,9,9,9,
9,9,60,99,111,110,116,97,99,116,58,112,119,
62,60,47,99,111,110,116,97,99,116,58,112,
119,62,10,9,9,9,9,60,47,99,111,110,116,97,
99,116,58,97,117,116,104,73,110,102,111,62,
10,9,9,9,60,47,99,111,110,116,97,99,116,58,
99,114,101,97,116,101,62,10,9,9,60,47,99,
114,101,97,116,101,62,10,9,9,60,101,120,
116,101,110,115,105,111,110,62,10,9,9,9,60,
114,111,116,108,100,58,101,120,116,32,120,
109,108,110,115,58,114,111,116,108,100,61,
34,104,116,116,112,58,47,47,119,119,119,46,
114,111,116,108,100,46,114,111,47,120,109,
108,47,101,112,112,47,114,111,116,108,100,
45,49,46,48,34,62,10,9,9,9,9,60,114,111,
116,108,100,58,99,114,101,97,116,101,62,10,
9,9,9,9,9,60,114,111,116,108,100,58,99,111,
110,116,97,99,116,62,10,9,9,9,9,9,9,60,114,
111,116,108,100,58,99,110,112,95,102,105,
115,99,97,108,95,99,111,100,101,62,49,51,
56,49,48,53,48,53,60,47,114,111,116,108,
100,58,99,110,112,95,102,105,115,99,97,108,
95,99,111,100,101,62,10,9,9,9,9,9,9,60,114,
111,116,108,100,58,114,101,103,105,115,116,
114,97,116,105,111,110,95,110,117,109,98,
101,114,62,55,47,80,74,47,49,55,46,48,49,
46,50,48,48,49,60,47,114,111,116,108,100,
58,114,101,103,105,115,116,114,97,116,105,
111,110,95,110,117,109,98,101,114,62,10,9,
9,9,9,9,9,60,114,111,116,108,100,58,112,
101,114,115,111,110,95,116,121,112,101,62,
99,60,47,114,111,116,108,100,58,112,101,
114,115,111,110,95,116,121,112,101,62,10,9,
9,9,9,9,60,47,114,111,116,108,100,58,99,
111,110,116,97,99,116,62,10,9,9,9,9,60,47,
114,111,116,108,100,58,99,114,101,97,116,
101,62,10,9,9,9,60,47,114,111,116,108,100,
58,101,120,116,62,10,9,9,60,47,101,120,116,
101,110,115,105,111,110,62,10,9,9,60,99,
108,84,82,73,68,62,53,53,52,57,101,101,55,
101,51,97,50,48,56,60,47,99,108,84,82,73,
68,62,10,9,60,47,99,111,109,109,97,110,100,
62,10,60,47,101,112,112,62>>]}}
** When handler state == {<0.46.0>,"/var/xpp/logs/error_log",[]}
** Reason == {no_translation,
[{io,format,
[<0.46.0>,
["\n",61,"INFO
REPORT",61,61,61,61,32,"6",45,"May",45,
"2015",58,58,"13",58,"37",58,"39",32,61,61,61,"\n",91,
"<0.99.0>",93,58,
[60,63,120,109,108,32,118,101,114,115,105,111,110,61,
34,49,46,48,34,32,101,110,99,111,100,105,110,103,61,
34,85,84,70,45,56,34,63,62,10,60,101,112,112,32,120,
109,108,110,115,61,34,117,114,110,58,105,101,116,102,
58,112,97,114,97,109,115,58,120,109,108,58,110,115,
58,101,112,112,45,49,46,48,34,32,120,109,108,110,115,
58,120,115,105,61,34,104,116,116,112,58,47,47,119,
119,119,46,119,51,46,111,114,103,47,50,48,48,49,47,
88,77,76,83,99,104,101,109,97,45,105,110,115,116,97,
110,99,101,34,10,9,120,115,105,58,115,99,104,101,109,
97,76,111,99,97,116,105,111,110,61,34,117,114,110,58,
105,101,116,102,58,112,97,114,97,109,115,58,120,109,
108,58,110,115,58,101,112,112,45,49,46,48,32,101,112,
112,45,49,46,48,46,120,115,100,34,62,10,9,60,99,111,
109,109,97,110,100,62,10,9,9,60,99,114,101,97,116,
101,62,10,9,9,9,60,99,111,110,116,97,99,116,58,99,
114,101,97,116,101,32,120,109,108,110,115,58,99,111,
110,116,97,99,116,61,34,117,114,110,58,105,101,116,
102,58,112,97,114,97,109,115,58,120,109,108,58,110,
115,58,99,111,110,116,97,99,116,45,49,46,48,34,10,9,
9,9,9,120,115,105,58,115,99,104,101,109,97,76,111,99,
97,116,105,111,110,61,34,117,114,110,58,105,101,116,
102,58,112,97,114,97,109,115,58,120,109,108,58,110,
115,58,99,111,110,116,97,99,116,45,49,46,48,32,99,
111,110,116,97,99,116,45,49,46,48,46,120,115,100,34,
62,10,9,9,9,9,60,99,111,110,116,97,99,116,58,105,100,
62,65,85,84,79,45,49,50,51,50,60,47,99,111,110,116,
97,99,116,58,105,100,62,10,9,9,9,9,60,99,111,110,116,
97,99,116,58,112,111,115,116,97,108,73,110,102,111,
32,116,121,112,101,61,34,105,110,116,34,62,10,9,9,9,
9,9,60,99,111,110,116,97,99,116,58,110,97,109,101,62,
78,117,109,101,32,68,101,116,60,47,99,111,110,116,97,
99,116,58,110,97,109,101,62,10,9,9,9,9,9,60,99,111,
110,116,97,99,116,58,111,114,103,62,60,47,99,111,110,
116,97,99,116,58,111,114,103,62,10,9,9,9,9,9,60,99,
111,110,116,97,99,116,58,97,100,100,114,62,10,9,9,9,
9,9,9,60,99,111,110,116,97,99,116,58,115,116,114,101,
101,116,62,65,100,100,114,101,115,115,32,35,49,60,47,
99,111,110,116,97,99,116,58,115,116,114,101,101,116,
62,10,9,9,9,9,9,9,60,99,111,110,116,97,99,116,58,115,
116,114,101,101,116,62,65,100,100,114,101,115,115,32,
35,50,32,190,32,208,32,232,32,234,32,235,32,60,47,99,
111,110,116,97,99,116,58,115,116,114,101,101,116,62,
10,9,9,9,9,9,9,60,99,111,110,116,97,99,116,58,115,
116,114,101,101,116,62,65,100,100,114,101,115,115,32,
35,51,32,45,32,259,238,226,537,539,258,206,536,538,
194,60,47,99,111,110,116,97,99,116,58,115,116,114,
101,101,116,62,10,9,9,9,9,9,9,60,99,111,110,116,97,
99,116,58,99,105,116,121,62,67,105,116,121,60,47,99,
111,110,116,97,99,116,58,99,105,116,121,62,10,9,9,9,
9,9,9,60,99,111,110,116,97,99,116,58,115,112,62,80,
114,111,118,105,110,99,101,60,47,99,111,110,116,97,
99,116,58,115,112,62,10,9,9,9,9,9,9,60,99,111,110,
116,97,99,116,58,112,99,62,49,48,50,48,51,48,60,47,
99,111,110,116,97,99,116,58,112,99,62,10,9,9,9,9,9,9,
60,99,111,110,116,97,99,116,58,99,99,62,114,111,60,
47,99,111,110,116,97,99,116,58,99,99,62,10,9,9,9,9,9,
60,47,99,111,110,116,97,99,116,58,97,100,100,114,62,
10,9,9,9,9,60,47,99,111,110,116,97,99,116,58,112,111,
115,116,97,108,73,110,102,111,62,10,9,9,9,9,60,99,
111,110,116,97,99,116,58,118,111,105,99,101,62,43,52,
48,46,50,51,51,50,51,50,51,49,51,60,47,99,111,110,
116,97,99,116,58,118,111,105,99,101,62,10,9,9,9,9,60,
99,111,110,116,97,99,116,58,102,97,120,62,43,52,48,
46,55,50,50,53,54,53,49,57,53,60,47,99,111,110,116,
97,99,116,58,102,97,120,62,10,9,9,9,9,60,99,111,110,
116,97,99,116,58,101,109,97,105,108,62,98,111,103,
100,97,110,64,114,111,116,108,100,46,114,111,60,47,
99,111,110,116,97,99,116,58,101,109,97,105,108,62,10,
9,9,9,9,60,99,111,110,116,97,99,116,58,97,117,116,
104,73,110,102,111,62,10,9,9,9,9,9,60,99,111,110,116,
97,99,116,58,112,119,62,60,47,99,111,110,116,97,99,
116,58,112,119,62,10,9,9,9,9,60,47,99,111,110,116,97,
99,116,58,97,117,116,104,73,110,102,111,62,10,9,9,9,
60,47,99,111,110,116,97,99,116,58,99,114,101,97,116,
101,62,10,9,9,60,47,99,114,101,97,116,101,62,10,9,9,
60,101,120,116,101,110,115,105,111,110,62,10,9,9,9,
60,114,111,116,108,100,58,101,120,116,32,120,109,108,
110,115,58,114,111,116,108,100,61,34,104,116,116,112,
58,47,47,119,119,119,46,114,111,116,108,100,46,114,
111,47,120,109,108,47,101,112,112,47,114,111,116,108,
100,45,49,46,48,34,62,10,9,9,9,9,60,114,111,116,108,
100,58,99,114,101,97,116,101,62,10,9,9,9,9,9,60,114,
111,116,108,100,58,99,111,110,116,97,99,116,62,10,9,
9,9,9,9,9,60,114,111,116,108,100,58,99,110,112,95,
102,105,115,99,97,108,95,99,111,100,101,62,49,51,56,
49,48,53,48,53,60,47,114,111,116,108,100,58,99,110,
112,95,102,105,115,99,97,108,95,99,111,100,101,62,10,
9,9,9,9,9,9,60,114,111,116,108,100,58,114,101,103,
105,115,116,114,97,116,105,111,110,95,110,117,109,98,
101,114,62,55,47,80,74,47,49,55,46,48,49,46,50,48,48,
49,60,47,114,111,116,108,100,58,114,101,103,105,115,
116,114,97,116,105,111,110,95,110,117,109,98,101,114,
62,10,9,9,9,9,9,9,60,114,111,116,108,100,58,112,101,
114,115,111,110,95,116,121,112,101,62,99,60,47,114,
111,116,108,100,58,112,101,114,115,111,110,95,116,
121,112,101,62,10,9,9,9,9,9,60,47,114,111,116,108,
100,58,99,111,110,116,97,99,116,62,10,9,9,9,9,60,47,
114,111,116,108,100,58,99,114,101,97,116,101,62,10,9,
9,9,60,47,114,111,116,108,100,58,101,120,116,62,10,9,
9,60,47,101,120,116,101,110,115,105,111,110,62,10,9,
9,60,99,108,84,82,73,68,62,53,53,52,57,101,101,55,
101,51,97,50,48,56,60,47,99,108,84,82,73,68,62,10,9,
60,47,99,111,109,109,97,110,100,62,10,60,47,101,112,
112,62],
"\n"],
[]],
[]},
{error_logger_file_h,handle_event,2,
[{file,"error_logger_file_h.erl"},{line,63}]},
{gen_event,server_update,4,
[{file,"gen_event.erl"},{line,525}]},
{gen_event,server_notify,4,
[{file,"gen_event.erl"},{line,507}]},
{gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,248}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,237}]}]}
------END-OF-ERROR--------
it seems error_logger is unable to
interpret romanian diacritics.
without t modifier from "[~p]:~ts~n"
the crash does not happens.
What can be done to at least make
error_logger log to the file log again
after this crash occurs?
Bogdan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150506/c21f246b/attachment.htm>
More information about the erlang-questions
mailing list