Danny Thuering created COUCHDB-2981:
---------------------------------------
Summary: Crash: exception error: bad argument
Key: COUCHDB-2981
URL: https://issues.apache.org/jira/browse/COUCHDB-2981
Project: CouchDB
Issue Type: Bug
Reporter: Danny Thuering
Hi,
please help me to identify the cause of this crash. We are getting it all the
time.
Thanks
danny
{code}
[error] [emulator] Error in process <0.1719.0> with exit value:
{function_clause,
[{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},{line,67}]},
{couch_file,pread_term,2,[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},{line,166}]}]}
[Wed, 06 Apr 2016 07:55:00 GMT] [error] [emulator] Error in process <0.1719.0>
with exit value:
{function_clause,
[{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},{line,67}]},
{couch_file,pread_term,2,[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},{line,166}]}]}
=ERROR REPORT==== 6-Apr-2016::07:55:00 ===
Error in process <0.1719.0> with exit value:
{function_clause,
[{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},{line,67}]},
{couch_file,pread_term,2,[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},{line,166}]}]}
[error] [<0.1676.0>] {error_report,<0.31.0>,
{<0.1676.0>,crash_report,
[[{initial_call,
{mochiweb_acceptor,init,
['Argument__1','Argument__2','Argument__3']}},
{pid,<0.1676.0>},
{registered_name,[]},
{error_info,
{error,badarg,
[{erlang,list_to_binary,
[[{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},{line,67}]},
{couch_file,pread_term,2,
[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,
[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,
[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,
[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},
{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},
{line,166}]}]],
[]},
{couch_httpd,error_info,1,
[{file,"couch_httpd.erl"},{line,818}]},
{couch_httpd,send_error,2,
[{file,"couch_httpd.erl"},{line,925}]},
{couch_httpd,handle_request_int,5,
[{file,"couch_httpd.erl"},{line,353}]},
{mochiweb_http,headers,5,
[{file,"mochiweb_http.erl"},{line,94}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}},
{ancestors,
[couch_httpd,couch_secondary_services,
couch_server_sup,<0.32.0>]},
{messages,[]},
{links,[<0.98.0>,#Port<0.3980>]},
{dictionary,
[{mochiweb_request_qs,[{"limit","30"}]},
{couch_rewrite_count,0},
{mochiweb_request_cookie,[]}]},
{trap_exit,false},
{status,running},
{heap_size,6772},
{stack_size,27},
{reductions,7995}],
[]]}}
[Wed, 06 Apr 2016 07:55:00 GMT] [error] [<0.1676.0>] {error_report,<0.31.0>,
{<0.1676.0>,crash_report,
[[{initial_call,
{mochiweb_acceptor,init,
['Argument__1','Argument__2','Argument__3']}},
{pid,<0.1676.0>},
{registered_name,[]},
{error_info,
{error,badarg,
[{erlang,list_to_binary,
[[{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},{line,67}]},
{couch_file,pread_term,2,
[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,
[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,
[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,
[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},
{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},
{line,166}]}]],
[]},
{couch_httpd,error_info,1,
[{file,"couch_httpd.erl"},{line,818}]},
{couch_httpd,send_error,2,
[{file,"couch_httpd.erl"},{line,925}]},
{couch_httpd,handle_request_int,5,
[{file,"couch_httpd.erl"},{line,353}]},
{mochiweb_http,headers,5,
[{file,"mochiweb_http.erl"},{line,94}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}},
{ancestors,
[couch_httpd,couch_secondary_services,
couch_server_sup,<0.32.0>]},
{messages,[]},
{links,[<0.98.0>,#Port<0.3980>]},
{dictionary,
[{mochiweb_request_qs,[{"limit","30"}]},
{couch_rewrite_count,0},
{mochiweb_request_cookie,[]}]},
{trap_exit,false},
{status,running},
{heap_size,6772},
{stack_size,27},
{reductions,7995}],
[]]}}
=CRASH REPORT==== 6-Apr-2016::07:55:00 ===
crasher:
initial call: mochiweb_acceptor:init/3
pid: <0.1676.0>
registered_name: []
exception error: bad argument
in function list_to_binary/1
called as list_to_binary([{couch_compress,decompress,
[<<>>],
[{file,"couch_compress.erl"},
{line,67}]},
{couch_file,pread_term,2,
[{file,"couch_file.erl"},{line,135}]},
{couch_btree,get_node,2,
[{file,"couch_btree.erl"},{line,349}]},
{couch_btree,modify_node,4,
[{file,"couch_btree.erl"},{line,309}]},
{couch_btree,query_modify,4,
[{file,"couch_btree.erl"},{line,196}]},
{couch_mrview_updater,write_kvs,4,
[{file,"src/couch_mrview_updater.erl"},
{line,225}]},
{couch_mrview_updater,write_results,2,
[{file,"src/couch_mrview_updater.erl"},
{line,166}]}])
in call from couch_httpd:error_info/1 (couch_httpd.erl, line 818)
in call from couch_httpd:send_error/2 (couch_httpd.erl, line 925)
in call from couch_httpd:handle_request_int/5 (couch_httpd.erl, line 353)
in call from mochiweb_http:headers/5 (mochiweb_http.erl, line 94)
ancestors: [couch_httpd,couch_secondary_services,couch_server_sup,
<0.32.0>]
messages: []
links: [<0.98.0>,#Port<0.3980>]
dictionary: [{mochiweb_request_qs,[{"limit","30"}]},
{couch_rewrite_count,0},
{mochiweb_request_cookie,[]}]
trap_exit: false
status: running
heap_size: 6772
stack_size: 27
reductions: 7995
neighbours:
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)