[
https://issues.apache.org/jira/browse/COUCHDB-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819455#comment-13819455
]
Nathan Vander Wilt commented on COUCHDB-1915:
---------------------------------------------
Published the last 5000 lines of the level=debug log here:
https://gist.github.com/natevw/dcd4a9a973da01270735 (some personal info
replaced)
> stray unicode atom causes error_log to die
> ------------------------------------------
>
> Key: COUCHDB-1915
> URL: https://issues.apache.org/jira/browse/COUCHDB-1915
> Project: CouchDB
> Issue Type: Bug
> Components: Logging
> Affects Versions: 1.4.0
> Reporter: Nathan Vander Wilt
>
> Somehow error_log event handler gets sent data that causes an additional
> `unicode` atom from unicode:characters_to_binary, which is passed to
> io:put_char/3 which doesn't exist and ...boom.
> {quote}
> [info] [<0.31993.2>] 144.76.78.196 - - GET
> /public/_design/glob/_list/posts/by_date?descending=true&reduce=false&limit=5&include_docs=true&format=atom
> 200
> [info] [<0.31789.2>] 66.249.66.216 - - GET
> /public/_design/glob/_list/posts/by_path?key=%5B%222012%22%2C%2203%22%2C%22metakaolin_geojson_editor%22%5D&include_docs=true&path1=2012&path2=03&path3=metakaolin_geojson_editor
> 200
> =ERROR REPORT==== 31-Oct-2013::19:48:48 ===
> ** gen_event handler couch_log crashed.
> ** Was installed in error_logger
> ** Last event was: {couch_info,<<"[info] [<0.31789.2>] 66.249.66.216 - - GET
> /public/_design/glob/_list/posts/by_path?key=%5B%222012%22%2C%2203%22%2C%22metakaolin_geojson_editor%22%5D&include_docs=true&path1=2012&path2=03&path3=metakaolin_geojson_editor
> 200\n">>,
> <<"[Thu, 31 Oct 2013 19:48:48 GMT] [info]
> [<0.31789.2>] 66.249.66.216 - - GET
> /public/_design/glob/_list/posts/by_path?key=%5B%222012%22%2C%2203%22%2C%22metakaolin_geojson_editor%22%5D&include_docs=true&path1=2012&path2=03&path3=metakaolin_geojson_editor
> 200\n">>}
> ** When handler state == {state,<0.93.0>,2,true}
> ** Reason == {badarg,
> [{io,put_chars,
> [<0.93.0>,unicode,
> <<"[Thu, 31 Oct 2013 19:48:48 GMT] [info]
> [<0.31789.2>] 66.249.66.216 - - GET
> /public/_design/glob/_list/posts/by_path?key=%5B%222012%22%2C%2203%22%2C%22metakaolin_geojson_editor%22%5D&include_docs=true&path1=2012&path2=03&path3=metakaolin_geojson_editor
> 200\n">>],
> []},
> {couch_log,log,3,
> [{file,
>
> "/home/ubuntu/bc2/dependencies/couchdb/src/couchdb/couch_log.erl"},
> {line,208}]},
> {couch_log,handle_event,2,
> [{file,
>
> "/home/ubuntu/bc2/dependencies/couchdb/src/couchdb/couch_log.erl"},
> {line,173}]},
> {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,269}]},
> {proc_lib,init_p_do_apply,3,
> [{file,"proc_lib.erl"},{line,239}]}]}
> =ERROR REPORT==== 31-Oct-2013::19:48:48 ===
> ** Generic server couch_log terminating
> ** Last message in was {gen_event_EXIT,couch_log,
> {'EXIT',
> {badarg,
> [{io,put_chars,
> [<0.93.0>,unicode,
> <<"[Thu, 31 Oct 2013 19:48:48 GMT] [info]
> [<0.31789.2>] 66.249.66.216 - - GET
> /public/_design/glob/_list/posts/by_path?key=%5B%222012%22%2C%2203%22%2C%22metakaolin_geojson_editor%22%5D&include_docs=true&path1=2012&path2=03&path3=metakaolin_geojson_editor
> 200\n">>],
> []},
> {couch_log,log,3,
> [{file,
>
> "/home/ubuntu/bc2/dependencies/couchdb/src/couchdb/couch_log.erl"},
> {line,208}]},
> {couch_log,handle_event,2,
> [{file,
>
> "/home/ubuntu/bc2/dependencies/couchdb/src/couchdb/couch_log.erl"},
> {line,173}]},
> {gen_event,ser
> {quote}
--
This message was sent by Atlassian JIRA
(v6.1#6144)