couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Lockard (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-856) reduce_builtin fails
Date Tue, 17 Aug 2010 16:19:16 GMT
reduce_builtin fails
--------------------

                 Key: COUCHDB-856
                 URL: https://issues.apache.org/jira/browse/COUCHDB-856
             Project: CouchDB
          Issue Type: Bug
          Components: Test Suite
    Affects Versions: 1.0.1
         Environment: CentOS 5.5
            Reporter: Daniel Lockard


reduce_builtin fails in the Futon test suite, with this error: {"message":"JSON.parse","fileName":"http://10.3.0.20:5984/_utils/script/couch.js?0.11.0","lineNumber":165,"stack":"(\"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})\",\"_stats\")@http://10.3.0.20:5984/_utils/script/couch.js?0.11.0:165\u000a((void 0))@http://10.3.0.20:5984/_utils/script/couch_test_runner.js?0.11.0:54\u000arun(0)@http://10.3.0.20:5984/_utils/script/couch_test_runner.js?0.11.0:84\u000a"}

i get this dump in the logs

http://pastebin.com/gSfZyXt8

Or: 

[error] [<0.144.0>] ** Generic server <0.144.0> terminating 
** Last message in was {'EXIT',<0.148.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {group_state,undefined,<<"test_suite_db">>,
                         {"/usr/local/var/lib/couchdb",<<"test_suite_db">>,
                          {group,
                           <<3,83,134,243,145,137,46,176,194,211,132,124,106,
                             32,233,59>>,
                           {db,<0.118.0>,<0.119.0>,nil,
                            <<"1282061287074150">>,<0.116.0>,<0.120.0>,
                            {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                            0,
                            {btree,<0.116.0>,
                             {67650,{500,0}},
                             #Fun<couch_db_updater.7.69395062>,
                             #Fun<couch_db_updater.8.86519079>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.9.24674233>},
                            {btree,<0.116.0>,
                             {97633,500},
                             #Fun<couch_db_updater.10.90337910>,
                             #Fun<couch_db_updater.11.13595824>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.12.34906778>},
                            {btree,<0.116.0>,nil,
                             #Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},
                            500,<<"test_suite_db">>,
                            "/usr/local/var/lib/couchdb/test_suite_db.couch",
                            [],[],nil,
                            {user_ctx,null,[],undefined},
                            #Ref<0.0.0.1416>,1000,
                            [before_header,after_header,on_file_open],
                            false},
                           nil,<<"_temp">>,<<"javascript">>,[],
                           [{view,0,
                             [<<"_temp">>],
                             <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                             nil,
                             [{<<"_temp">>,<<"_stats">>}],
                             []}],
                           nil,0,0,nil,nil}},
                         {group,
                          <<3,83,134,243,145,137,46,176,194,211,132,124,106,32,
                            233,59>>,
                          {db,<0.118.0>,<0.119.0>,nil,<<"1282061287074150">>,
                           <0.116.0>,<0.120.0>,
                           {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                           0,
                           {btree,<0.116.0>,
                            {67650,{500,0}},
                            #Fun<couch_db_updater.7.69395062>,
                            #Fun<couch_db_updater.8.86519079>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.9.24674233>},
                           {btree,<0.116.0>,
                            {97633,500},
                            #Fun<couch_db_updater.10.90337910>,
                            #Fun<couch_db_updater.11.13595824>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.12.34906778>},
                           {btree,<0.116.0>,nil,#Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},
                           500,<<"test_suite_db">>,
                           "/usr/local/var/lib/couchdb/test_suite_db.couch",
                           [],[],nil,
                           {user_ctx,null,[],undefined},
                           #Ref<0.0.0.1416>,1000,
                           [before_header,after_header,on_file_open],
                           false},
                          <0.146.0>,<<"_temp">>,<<"javascript">>,[],
                          [{view,0,
                            [<<"_temp">>],
                            <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                            {btree,<0.146.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_ids.2>,
                             #Fun<couch_view_group.10.120246376>},
                            [{<<"_temp">>,<<"_stats">>}],
                            []}],
                          {btree,<0.146.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
                         <0.148.0>,nil,false,
                         [{{<0.94.0>,#Ref<0.0.0.4680>},500}],
                         <0.149.0>}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}


=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
** Generic server <0.144.0> terminating 
** Last message in was {'EXIT',<0.148.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {group_state,undefined,<<"test_suite_db">>,
                         {"/usr/local/var/lib/couchdb",<<"test_suite_db">>,
                          {group,
                           <<3,83,134,243,145,137,46,176,194,211,132,124,106,
                             32,233,59>>,
                           {db,<0.118.0>,<0.119.0>,nil,
                            <<"1282061287074150">>,<0.116.0>,<0.120.0>,
                            {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                            0,
                            {btree,<0.116.0>,
                             {67650,{500,0}},
                             #Fun<couch_db_updater.7.69395062>,
                             #Fun<couch_db_updater.8.86519079>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.9.24674233>},
                            {btree,<0.116.0>,
                             {97633,500},
                             #Fun<couch_db_updater.10.90337910>,
                             #Fun<couch_db_updater.11.13595824>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.12.34906778>},
                            {btree,<0.116.0>,nil,
                             #Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},
                            500,<<"test_suite_db">>,
                            "/usr/local/var/lib/couchdb/test_suite_db.couch",
                            [],[],nil,
                            {user_ctx,null,[],undefined},
                            #Ref<0.0.0.1416>,1000,
                            [before_header,after_header,on_file_open],
                            false},
                           nil,<<"_temp">>,<<"javascript">>,[],
                           [{view,0,
                             [<<"_temp">>],
                             <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                             nil,
                             [{<<"_temp">>,<<"_stats">>}],
                             []}],
                           nil,0,0,nil,nil}},
                         {group,
                          <<3,83,134,243,145,137,46,176,194,211,132,124,106,32,
                            233,59>>,
                          {db,<0.118.0>,<0.119.0>,nil,<<"1282061287074150">>,
                           <0.116.0>,<0.120.0>,
                           {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                           0,
                           {btree,<0.116.0>,
                            {67650,{500,0}},
                            #Fun<couch_db_updater.7.69395062>,
                            #Fun<couch_db_updater.8.86519079>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.9.24674233>},
                           {btree,<0.116.0>,
                            {97633,500},
                            #Fun<couch_db_updater.10.90337910>,
                            #Fun<couch_db_updater.11.13595824>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.12.34906778>},
                           {btree,<0.116.0>,nil,#Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},
                           500,<<"test_suite_db">>,
                           "/usr/local/var/lib/couchdb/test_suite_db.couch",
                           [],[],nil,
                           {user_ctx,null,[],undefined},
                           #Ref<0.0.0.1416>,1000,
                           [before_header,after_header,on_file_open],
                           false},
                          <0.146.0>,<<"_temp">>,<<"javascript">>,[],
                          [{view,0,
                            [<<"_temp">>],
                            <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                            {btree,<0.146.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_ids.2>,
                             #Fun<couch_view_group.10.120246376>},
                            [{<<"_temp">>,<<"_stats">>}],
                            []}],
                          {btree,<0.146.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
                         <0.148.0>,nil,false,
                         [{{<0.94.0>,#Ref<0.0.0.4680>},500}],
                         <0.149.0>}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
[error] [<0.144.0>] {error_report,<0.29.0>,
    {<0.144.0>,crash_report,
     [[{pid,<0.144.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {undef,
                   [{erlang,min,[1,1]},
                    {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                    {lists,foldl,3},
                    {couch_query_servers,builtin_stats,2},
                    {couch_query_servers,builtin_reduce,4},
                    {couch_query_servers,reduce,3},
                    {couch_view_group,'-init_group/4-fun-0-',4},
                    {couch_btree,'-write_node/3-lc$^0/1-0-',3}]},
               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {initial_call,{couch_view_group,init,['Argument__1']}},
       {ancestors,
           [couch_view,couch_secondary_services,couch_server_sup,<0.30.0>]},
       {messages,[]},
       {links,[<0.146.0>,<0.84.0>]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,1597},
       {stack_size,23},
       {reductions,437}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.144.0>
    registered_name: []
    exception exit: {undef,[{erlang,min,[1,1]},
                            {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                            {lists,foldl,3},
                            {couch_query_servers,builtin_stats,2},
                            {couch_query_servers,builtin_reduce,4},
                            {couch_query_servers,reduce,3},
                            {couch_view_group,'-init_group/4-fun-0-',4},
                            {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
      in function  gen_server:terminate/6
    initial call: couch_view_group:init/1
    ancestors: [couch_view,couch_secondary_services,couch_server_sup,
                  <0.30.0>]
    messages: []
    links: [<0.146.0>,<0.84.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1597
    stack_size: 23
    reductions: 437
  neighbours:
[error] [<0.94.0>] {error_report,<0.29.0>,
    {<0.94.0>,crash_report,
     [[{pid,<0.94.0>},
       {registered_name,[]},
       {error_info,
           {error,badarg,
               [{erlang,list_to_binary,
                    [[{erlang,min,[1,1]},
                      {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                      {lists,foldl,3},
                      {couch_query_servers,builtin_stats,2},
                      {couch_query_servers,builtin_reduce,4},
                      {couch_query_servers,reduce,3},
                      {couch_view_group,'-init_group/4-fun-0-',4},
                      {couch_btree,'-write_node/3-lc$^0/1-0-',3}]]},
                {couch_httpd,error_info,1},
                {couch_httpd,send_error,2},
                {couch_httpd,handle_request_int,5},
                {mochiweb_http,headers,5},
                {proc_lib,init_p_do_apply,3}]}},
       {initial_call,{mochiweb_socket_server,acceptor_loop,['Argument__1']}},
       {ancestors,
           [couch_httpd,couch_secondary_services,couch_server_sup,<0.30.0>]},
       {messages,[]},
       {links,[<0.93.0>,#Port<0.1818>]},
       {dictionary,
           [{mochiweb_request_body,
                <<"{\"language\":\"javascript\",\"map\":\"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})\",\"reduce\":\"_stats\"}">>},
            {mochiweb_request_qs,[]},
            {mochiweb_request_recv,true},
            {jsonp,undefined},
            {mochiweb_request_cookie,[{"AuthSession",[]}]}]},
       {trap_exit,false},
       {status,running},
       {heap_size,17711},
       {stack_size,23},
       {reductions,239378}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.94.0>
    registered_name: []
    exception error: bad argument
      in function  list_to_binary/1
         called as list_to_binary([{erlang,min,[1,1]},
                                   {couch_query_servers,
                                       '-builtin_stats/2-fun-0-',2},
                                   {lists,foldl,3},
                                   {couch_query_servers,builtin_stats,2},
                                   {couch_query_servers,builtin_reduce,4},
                                   {couch_query_servers,reduce,3},
                                   {couch_view_group,'-init_group/4-fun-0-',4},
                                   {couch_btree,'-write_node/3-lc$^0/1-0-',
                                       3}])
      in call from couch_httpd:error_info/1
      in call from couch_httpd:send_error/2
      in call from couch_httpd:handle_request_int/5
      in call from mochiweb_http:headers/5
    initial call: mochiweb_socket_server:acceptor_loop/1
    ancestors: [couch_httpd,couch_secondary_services,couch_server_sup,
                  <0.30.0>]
    messages: []
    links: [<0.93.0>,#Port<0.1818>]
    dictionary: [{mochiweb_request_body,
                      <<"{\"language\":\"javascript\",\"map\":\"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})\",\"reduce\":\"_stats\"}">>},
                  {mochiweb_request_qs,[]},
                  {mochiweb_request_recv,true},
                  {jsonp,undefined},
                  {mochiweb_request_cookie,[{"AuthSession",[]}]}]
    trap_exit: false
    status: running
    heap_size: 17711
    stack_size: 23
    reductions: 239378
  neighbours:
[error] [<0.93.0>] {error_report,<0.29.0>,
              {<0.93.0>,std_error,
               {mochiweb_socket_server,235,{child_error,badarg}}}}

=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
{mochiweb_socket_server,235,{child_error,badarg}}
[error] [<0.146.0>] ** Generic server <0.146.0> terminating 
** Last message in was {'EXIT',<0.144.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.1967>,16}},
                              0,143}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}


=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
** Generic server <0.146.0> terminating 
** Last message in was {'EXIT',<0.144.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.1967>,16}},
                              0,143}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
[error] [<0.146.0>] {error_report,<0.29.0>,
    {<0.146.0>,crash_report,
     [[{pid,<0.146.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {undef,
                   [{erlang,min,[1,1]},
                    {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                    {lists,foldl,3},
                    {couch_query_servers,builtin_stats,2},
                    {couch_query_servers,builtin_reduce,4},
                    {couch_query_servers,reduce,3},
                    {couch_view_group,'-init_group/4-fun-0-',4},
                    {couch_btree,'-write_node/3-lc$^0/1-0-',3}]},
               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {initial_call,{couch_file,init,['Argument__1']}},
       {ancestors,
           [<0.144.0>,couch_view,couch_secondary_services,couch_server_sup,
            <0.30.0>]},
       {messages,[{'EXIT',<0.149.0>,shutdown}]},
       {links,[#Port<0.1967>]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,610},
       {stack_size,23},
       {reductions,1840}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.146.0>
    registered_name: []
    exception exit: {undef,[{erlang,min,[1,1]},
                            {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                            {lists,foldl,3},
                            {couch_query_servers,builtin_stats,2},
                            {couch_query_servers,builtin_reduce,4},
                            {couch_query_servers,reduce,3},
                            {couch_view_group,'-init_group/4-fun-0-',4},
                            {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
      in function  gen_server:terminate/6
    initial call: couch_file:init/1
    ancestors: [<0.144.0>,couch_view,couch_secondary_services,
                  couch_server_sup,<0.30.0>]
    messages: [{'EXIT',<0.149.0>,shutdown}]
    links: [#Port<0.1967>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 610
    stack_size: 23
    reductions: 1840
  neighbours:
[error] [emulator] Error in process <0.163.0> with exit value: {undef,[{erlang,min,[1,1]},{couch_query_servers,'-builtin_stats/2-fun-0-',2},{lists,foldl,3},{couch_query_servers,builtin_stats,2},{couch_query_servers,builtin_reduce,4},{couch_query_servers,reduce,3},{couch_view_group... 



=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
Error in process <0.163.0> with exit value: {undef,[{erlang,min,[1,1]},{couch_query_servers,'-builtin_stats/2-fun-0-',2},{lists,foldl,3},{couch_query_servers,builtin_stats,2},{couch_query_servers,builtin_reduce,4},{couch_query_servers,reduce,3},{couch_view_group... 

[error] [<0.155.0>] ** Generic server <0.155.0> terminating 
** Last message in was {'EXIT',<0.158.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {group_state,undefined,<<"test_suite_db">>,
                         {"/usr/local/var/lib/couchdb",<<"test_suite_db">>,
                          {group,
                           <<3,83,134,243,145,137,46,176,194,211,132,124,106,
                             32,233,59>>,
                           {db,<0.118.0>,<0.119.0>,nil,
                            <<"1282061287074150">>,<0.116.0>,<0.120.0>,
                            {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                            0,
                            {btree,<0.116.0>,
                             {67650,{500,0}},
                             #Fun<couch_db_updater.7.69395062>,
                             #Fun<couch_db_updater.8.86519079>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.9.24674233>},
                            {btree,<0.116.0>,
                             {97633,500},
                             #Fun<couch_db_updater.10.90337910>,
                             #Fun<couch_db_updater.11.13595824>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.12.34906778>},
                            {btree,<0.116.0>,nil,
                             #Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},
                            500,<<"test_suite_db">>,
                            "/usr/local/var/lib/couchdb/test_suite_db.couch",
                            [],[],nil,
                            {user_ctx,null,[],undefined},
                            #Ref<0.0.0.1416>,1000,
                            [before_header,after_header,on_file_open],
                            false},
                           nil,<<"_temp">>,<<"javascript">>,[],
                           [{view,0,
                             [<<"_temp">>],
                             <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                             nil,
                             [{<<"_temp">>,<<"_stats">>}],
                             []}],
                           nil,0,0,nil,nil}},
                         {group,
                          <<3,83,134,243,145,137,46,176,194,211,132,124,106,32,
                            233,59>>,
                          {db,<0.118.0>,<0.119.0>,nil,<<"1282061287074150">>,
                           <0.116.0>,<0.120.0>,
                           {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                           0,
                           {btree,<0.116.0>,
                            {67650,{500,0}},
                            #Fun<couch_db_updater.7.69395062>,
                            #Fun<couch_db_updater.8.86519079>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.9.24674233>},
                           {btree,<0.116.0>,
                            {97633,500},
                            #Fun<couch_db_updater.10.90337910>,
                            #Fun<couch_db_updater.11.13595824>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.12.34906778>},
                           {btree,<0.116.0>,nil,#Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},
                           500,<<"test_suite_db">>,
                           "/usr/local/var/lib/couchdb/test_suite_db.couch",
                           [],[],nil,
                           {user_ctx,null,[],undefined},
                           #Ref<0.0.0.1416>,1000,
                           [before_header,after_header,on_file_open],
                           false},
                          <0.156.0>,<<"_temp">>,<<"javascript">>,[],
                          [{view,0,
                            [<<"_temp">>],
                            <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                            {btree,<0.156.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_ids.2>,
                             #Fun<couch_view_group.10.120246376>},
                            [{<<"_temp">>,<<"_stats">>}],
                            []}],
                          {btree,<0.156.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
                         <0.158.0>,nil,false,
                         [{{<0.113.0>,#Ref<0.0.0.5767>},500}],
                         <0.159.0>}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}


=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
** Generic server <0.155.0> terminating 
** Last message in was {'EXIT',<0.158.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {group_state,undefined,<<"test_suite_db">>,
                         {"/usr/local/var/lib/couchdb",<<"test_suite_db">>,
                          {group,
                           <<3,83,134,243,145,137,46,176,194,211,132,124,106,
                             32,233,59>>,
                           {db,<0.118.0>,<0.119.0>,nil,
                            <<"1282061287074150">>,<0.116.0>,<0.120.0>,
                            {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                            0,
                            {btree,<0.116.0>,
                             {67650,{500,0}},
                             #Fun<couch_db_updater.7.69395062>,
                             #Fun<couch_db_updater.8.86519079>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.9.24674233>},
                            {btree,<0.116.0>,
                             {97633,500},
                             #Fun<couch_db_updater.10.90337910>,
                             #Fun<couch_db_updater.11.13595824>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.12.34906778>},
                            {btree,<0.116.0>,nil,
                             #Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},
                            500,<<"test_suite_db">>,
                            "/usr/local/var/lib/couchdb/test_suite_db.couch",
                            [],[],nil,
                            {user_ctx,null,[],undefined},
                            #Ref<0.0.0.1416>,1000,
                            [before_header,after_header,on_file_open],
                            false},
                           nil,<<"_temp">>,<<"javascript">>,[],
                           [{view,0,
                             [<<"_temp">>],
                             <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                             nil,
                             [{<<"_temp">>,<<"_stats">>}],
                             []}],
                           nil,0,0,nil,nil}},
                         {group,
                          <<3,83,134,243,145,137,46,176,194,211,132,124,106,32,
                            233,59>>,
                          {db,<0.118.0>,<0.119.0>,nil,<<"1282061287074150">>,
                           <0.116.0>,<0.120.0>,
                           {db_header,5,0,0,nil,nil,nil,0,nil,nil,1000},
                           0,
                           {btree,<0.116.0>,
                            {67650,{500,0}},
                            #Fun<couch_db_updater.7.69395062>,
                            #Fun<couch_db_updater.8.86519079>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.9.24674233>},
                           {btree,<0.116.0>,
                            {97633,500},
                            #Fun<couch_db_updater.10.90337910>,
                            #Fun<couch_db_updater.11.13595824>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.12.34906778>},
                           {btree,<0.116.0>,nil,#Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},
                           500,<<"test_suite_db">>,
                           "/usr/local/var/lib/couchdb/test_suite_db.couch",
                           [],[],nil,
                           {user_ctx,null,[],undefined},
                           #Ref<0.0.0.1416>,1000,
                           [before_header,after_header,on_file_open],
                           false},
                          <0.156.0>,<<"_temp">>,<<"javascript">>,[],
                          [{view,0,
                            [<<"_temp">>],
                            <<"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})">>,
                            {btree,<0.156.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_ids.2>,
                             #Fun<couch_view_group.10.120246376>},
                            [{<<"_temp">>,<<"_stats">>}],
                            []}],
                          {btree,<0.156.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
                         <0.158.0>,nil,false,
                         [{{<0.113.0>,#Ref<0.0.0.5767>},500}],
                         <0.159.0>}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
[error] [<0.155.0>] {error_report,<0.29.0>,
    {<0.155.0>,crash_report,
     [[{pid,<0.155.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {undef,
                   [{erlang,min,[1,1]},
                    {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                    {lists,foldl,3},
                    {couch_query_servers,builtin_stats,2},
                    {couch_query_servers,builtin_reduce,4},
                    {couch_query_servers,reduce,3},
                    {couch_view_group,'-init_group/4-fun-0-',4},
                    {couch_btree,'-write_node/3-lc$^0/1-0-',3}]},
               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {initial_call,{couch_view_group,init,['Argument__1']}},
       {ancestors,
           [couch_view,couch_secondary_services,couch_server_sup,<0.30.0>]},
       {messages,[]},
       {links,[<0.156.0>,<0.84.0>]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,1597},
       {stack_size,23},
       {reductions,372}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.155.0>
    registered_name: []
    exception exit: {undef,[{erlang,min,[1,1]},
                            {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                            {lists,foldl,3},
                            {couch_query_servers,builtin_stats,2},
                            {couch_query_servers,builtin_reduce,4},
                            {couch_query_servers,reduce,3},
                            {couch_view_group,'-init_group/4-fun-0-',4},
                            {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
      in function  gen_server:terminate/6
    initial call: couch_view_group:init/1
    ancestors: [couch_view,couch_secondary_services,couch_server_sup,
                  <0.30.0>]
    messages: []
    links: [<0.156.0>,<0.84.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 1597
    stack_size: 23
    reductions: 372
  neighbours:
[error] [<0.113.0>] {error_report,<0.29.0>,
    {<0.113.0>,crash_report,
     [[{pid,<0.113.0>},
       {registered_name,[]},
       {error_info,
           {error,badarg,
               [{erlang,list_to_binary,
                    [[{erlang,min,[1,1]},
                      {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                      {lists,foldl,3},
                      {couch_query_servers,builtin_stats,2},
                      {couch_query_servers,builtin_reduce,4},
                      {couch_query_servers,reduce,3},
                      {couch_view_group,'-init_group/4-fun-0-',4},
                      {couch_btree,'-write_node/3-lc$^0/1-0-',3}]]},
                {couch_httpd,error_info,1},
                {couch_httpd,send_error,2},
                {couch_httpd,handle_request_int,5},
                {mochiweb_http,headers,5},
                {proc_lib,init_p_do_apply,3}]}},
       {initial_call,{mochiweb_socket_server,acceptor_loop,['Argument__1']}},
       {ancestors,
           [couch_httpd,couch_secondary_services,couch_server_sup,<0.30.0>]},
       {messages,[]},
       {links,[<0.93.0>,#Port<0.1978>]},
       {dictionary,
           [{mochiweb_request_body,
                <<"{\"language\":\"javascript\",\"map\":\"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})\",\"reduce\":\"_stats\"}">>},
            {mochiweb_request_qs,[]},
            {mochiweb_request_recv,true},
            {mochiweb_request_cookie,[{"AuthSession",[]}]}]},
       {trap_exit,false},
       {status,running},
       {heap_size,4181},
       {stack_size,23},
       {reductions,3782}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.113.0>
    registered_name: []
    exception error: bad argument
      in function  list_to_binary/1
         called as list_to_binary([{erlang,min,[1,1]},
                                   {couch_query_servers,
                                       '-builtin_stats/2-fun-0-',2},
                                   {lists,foldl,3},
                                   {couch_query_servers,builtin_stats,2},
                                   {couch_query_servers,builtin_reduce,4},
                                   {couch_query_servers,reduce,3},
                                   {couch_view_group,'-init_group/4-fun-0-',4},
                                   {couch_btree,'-write_node/3-lc$^0/1-0-',
                                       3}])
      in call from couch_httpd:error_info/1
      in call from couch_httpd:send_error/2
      in call from couch_httpd:handle_request_int/5
      in call from mochiweb_http:headers/5
    initial call: mochiweb_socket_server:acceptor_loop/1
    ancestors: [couch_httpd,couch_secondary_services,couch_server_sup,
                  <0.30.0>]
    messages: []
    links: [<0.93.0>,#Port<0.1978>]
    dictionary: [{mochiweb_request_body,
                      <<"{\"language\":\"javascript\",\"map\":\"(function (doc) {emit(doc.integer, doc.integer);emit(doc.integer, doc.integer);})\",\"reduce\":\"_stats\"}">>},
                  {mochiweb_request_qs,[]},
                  {mochiweb_request_recv,true},
                  {mochiweb_request_cookie,[{"AuthSession",[]}]}]
    trap_exit: false
    status: running
    heap_size: 4181
    stack_size: 23
    reductions: 3782
  neighbours:
[error] [<0.93.0>] {error_report,<0.29.0>,
              {<0.93.0>,std_error,
               {mochiweb_socket_server,235,{child_error,badarg}}}}

=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
{mochiweb_socket_server,235,{child_error,badarg}}
[error] [<0.156.0>] ** Generic server <0.156.0> terminating 
** Last message in was {'EXIT',<0.155.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.1980>,18}},
                              0,235}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}


=ERROR REPORT==== 17-Aug-2010::11:08:07 ===
** Generic server <0.156.0> terminating 
** Last message in was {'EXIT',<0.155.0>,
                           {undef,
                               [{erlang,min,[1,1]},
                                {couch_query_servers,
                                    '-builtin_stats/2-fun-0-',2},
                                {lists,foldl,3},
                                {couch_query_servers,builtin_stats,2},
                                {couch_query_servers,builtin_reduce,4},
                                {couch_query_servers,reduce,3},
                                {couch_view_group,'-init_group/4-fun-0-',4},
                                {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.1980>,18}},
                              0,235}
** Reason for termination == 
** {'function not exported',[{erlang,min,[1,1]},
                             {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                             {lists,foldl,3},
                             {couch_query_servers,builtin_stats,2},
                             {couch_query_servers,builtin_reduce,4},
                             {couch_query_servers,reduce,3},
                             {couch_view_group,'-init_group/4-fun-0-',4},
                             {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
[error] [<0.156.0>] {error_report,<0.29.0>,
    {<0.156.0>,crash_report,
     [[{pid,<0.156.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {undef,
                   [{erlang,min,[1,1]},
                    {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                    {lists,foldl,3},
                    {couch_query_servers,builtin_stats,2},
                    {couch_query_servers,builtin_reduce,4},
                    {couch_query_servers,reduce,3},
                    {couch_view_group,'-init_group/4-fun-0-',4},
                    {couch_btree,'-write_node/3-lc$^0/1-0-',3}]},
               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {initial_call,{couch_file,init,['Argument__1']}},
       {ancestors,
           [<0.155.0>,couch_view,couch_secondary_services,couch_server_sup,
            <0.30.0>]},
       {messages,[{'EXIT',<0.159.0>,shutdown}]},
       {links,[#Port<0.1980>]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,987},
       {stack_size,23},
       {reductions,1733}],
      []]}}

=CRASH REPORT==== 17-Aug-2010::11:08:07 ===
  crasher:
    pid: <0.156.0>
    registered_name: []
    exception exit: {undef,[{erlang,min,[1,1]},
                            {couch_query_servers,'-builtin_stats/2-fun-0-',2},
                            {lists,foldl,3},
                            {couch_query_servers,builtin_stats,2},
                            {couch_query_servers,builtin_reduce,4},
                            {couch_query_servers,reduce,3},
                            {couch_view_group,'-init_group/4-fun-0-',4},
                            {couch_btree,'-write_node/3-lc$^0/1-0-',3}]}
      in function  gen_server:terminate/6
    initial call: couch_file:init/1
    ancestors: [<0.155.0>,couch_view,couch_secondary_services,
                  couch_server_sup,<0.30.0>]
    messages: [{'EXIT',<0.159.0>,shutdown}]
    links: [#Port<0.1980>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 23
    reductions: 1733
  neighbours:

if you don't want to go to pastebin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message