couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Vander Wilt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1915) stray unicode atom causes error_log to die
Date Fri, 01 Nov 2013 16:43:24 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811428#comment-13811428
] 

Nathan Vander Wilt commented on COUCHDB-1915:
---------------------------------------------

My system details:
Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-41-virtual x86_64)
Erlang R16B01
CouchDB 1.4.0
[build-couchdb at 8ddd81c22179667c77146b2ec96d543fb95c804]

> 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)

Mime
View raw message