6eFpPOtTaaSRiXEvaUEmrZ changeset

Changeset366438306564 (b)
ParentNone (a)
ab
0+My filter:
0+"filters": {
0+       "foo": "fun({Doc},Req) -> true end."
0+   }
0+   
0+Error report:
0+1> [info] [<0.22796.0>] 127.0.0.1 - - 'GET' /mytemp/_changes?filter=erl/foo 200
0+1> [error] [<0.22800.0>] ** Generic server <0.22800.0> terminating
0+** Last message in was {prompt,
0+                           [<<"ddoc">>,<<"_design/erl">>,
0+                            [<<"filters">>,<<"foo">>],
0+                            [[{[{<<"_id">>,
0+                                 <<"854d5890751755bddd7c7d3b58000dcc">>},
0+                                {<<"_rev">>,
0+                                 <<"1-cd90201763f897aa0178b7ff05eb80cb">>},
0+                                {<<"x">>,1},
0+                                {<<"y">>,2},
0+                                {<<"_revisions">>,
0+                                 {[{<<"start">>,1},
0+                                   {<<"ids">>,
0+                                    [<<"cd90201763f897aa0178b7ff05eb80cb">>]}]}}]}],
0+                             {[{<<"info">>,
0+                                {[{db_name,<<"mytemp">>},
0+                                  {doc_count,19},
0+                                  {doc_del_count,0},
0+                                  {update_seq,46},
0+                                  {purge_seq,0},
0+                                  {compact_running,false},
0+                                  {disk_size,208987},
0+                                  {instance_start_time,<<"1271350757823718">>},
0+                                  {disk_format_version,5}]}},
0+                               {<<"id">>,null},
0+                               {<<"method">>,'GET'},
0+                               {<<"path">>,[<<"mytemp">>,<<"_changes">>]},
0+                               {<<"query">>,{[{<<"filter">>,<<"erl/foo">>}]}},
0+                               {<<"headers">>,
0+                                {[{<<"Accept">>,<<"*/*">>},
0+                                  {<<"Host">>,<<"localhost:5984">>},
0+                                  {<<"User-Agent">>,
0+                                   <<"curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3">>}]}},
0+                               {<<"body">>,undefined},
0+                               {<<"peer">>,<<"127.0.0.1">>},
0+                               {<<"form">>,{[]}},
0+                               {<<"cookie">>,{[]}},
0+                               {<<"userCtx">>,
0+                                {[{<<"db">>,<<"mytemp">>},
0+                                  {<<"name">>,null},
0+                                  {<<"roles">>,[<<"_admin">>]}]}}]},
0+                             {[{<<"db">>,<<"mytemp">>},
0+                               {<<"name">>,null},
0+                               {<<"roles">>,[<<"_admin">>]}]}]]}
0+** When Server state == {evstate,
0+                            {dict,1,16,16,8,80,48,
0+                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
0+                                 []},
0+                                {{[],[],[],[],[],[],[],[],
0+                                  [[<<"_design/erl">>|
0+                                    {[{<<"_id">>,<<"_design/erl">>},
0+                                      {<<"_rev">>,
0+                                       <<"21-a01ff617a71f03ba67dad709e4737258">>},
0+                                      {<<"language">>,<<"erlang">>},
0+                                      {<<"filters">>,
0+                                       {[{<<"foo">>,
0+                                          <<"fun({Doc},Req) -> true end.">>}]}}]}]],
0+                                  [],[],[],[],[],[],[]}}},
0+                            [],
0+                            {[{<<"reduce_limit">>,true}]},
0+                            nil,5000}
0+** Reason for termination ==
0+** {function_clause,[{couch_native_process,ddoc,4},
0+                     {couch_native_process,handle_call,3},
0+                     {crypto,sha,1}]}
0+
0+1>
0+=ERROR REPORT==== 15-Apr-2010::15:57:51 ===
0+** Generic server <0.22800.0> terminating
0+** Last message in was {prompt,
0+                           [<<"ddoc">>,<<"_design/erl">>,
0+                            [<<"filters">>,<<"foo">>],
0+                            [[{[{<<"_id">>,
0+                                 <<"854d5890751755bddd7c7d3b58000dcc">>},
0+                                {<<"_rev">>,
0+                                 <<"1-cd90201763f897aa0178b7ff05eb80cb">>},
0+                                {<<"x">>,1},
0+                                {<<"y">>,2},
0+                                {<<"_revisions">>,
0+                                 {[{<<"start">>,1},
0+                                   {<<"ids">>,
0+                                    [<<"cd90201763f897aa0178b7ff05eb80cb">>]}]}}]}],
0+                             {[{<<"info">>,
0+                                {[{db_name,<<"mytemp">>},
0+                                  {doc_count,19},
0+                                  {doc_del_count,0},
0+                                  {update_seq,46},
0+                                  {purge_seq,0},
0+                                  {compact_running,false},
0+                                  {disk_size,208987},
0+                                  {instance_start_time,<<"1271350757823718">>},
0+                                  {disk_format_version,5}]}},
0+                               {<<"id">>,null},
0+                               {<<"method">>,'GET'},
0+                               {<<"path">>,[<<"mytemp">>,<<"_changes">>]},
0+                               {<<"query">>,{[{<<"filter">>,<<"erl/foo">>}]}},
0+                               {<<"headers">>,
0+                                {[{<<"Accept">>,<<"*/*">>},
0+                                  {<<"Host">>,<<"localhost:5984">>},
0+                                  {<<"User-Agent">>,
0+                                   <<"curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3">>}]}},
0+                               {<<"body">>,undefined},
0+                               {<<"peer">>,<<"127.0.0.1">>},
0+                               {<<"form">>,{[]}},
0+                               {<<"cookie">>,{[]}},
0+                               {<<"userCtx">>,
0+                                {[{<<"db">>,<<"mytemp">>},
0+                                  {<<"name">>,null},
0+                                  {<<"roles">>,[<<"_admin">>]}]}}]},
0+                             {[{<<"db">>,<<"mytemp">>},
0+                               {<<"name">>,null},
0+                               {<<"roles">>,[<<"_admin">>]}]}]]}
0+** When Server state == {evstate,
0+                            {dict,1,16,16,8,80,48,
0+                                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
0+                                 []},
0+                                {{[],[],[],[],[],[],[],[],
0+                                  [[<<"_design/erl">>|
0+                                    {[{<<"_id">>,<<"_design/erl">>},
0+                                      {<<"_rev">>,
0+                                       <<"21-a01ff617a71f03ba67dad709e4737258">>},
0+                                      {<<"language">>,<<"erlang">>},
0+                                      {<<"filters">>,
0+                                       {[{<<"foo">>,
0+                                          <<"fun({Doc},Req) -> true end.">>}]}}]}]],
0+                                  [],[],[],[],[],[],[]}}},
0+                            [],
0+                            {[{<<"reduce_limit">>,true}]},
0+                            nil,5000}
0+** Reason for termination ==
0+** {function_clause,[{couch_native_process,ddoc,4},
0+                     {couch_native_process,handle_call,3},
0+                     {crypto,sha,1}]}
0+1> [error] [<0.22800.0>] {error_report,<0.34.0>,
0+    {<0.22800.0>,crash_report,
0+     [[{initial_call,{couch_native_process,init,['Argument__1']}},
0+       {pid,<0.22800.0>},
0+       {registered_name,[]},
0+       {error_info,
0+           {exit,
0+               {function_clause,
0+                   [{couch_native_process,ddoc,4},
0+                    {couch_native_process,handle_call,3},
0+                    {crypto,sha,1}]},
0+               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
0+       {ancestors,
0+           [couch_query_servers,couch_secondary_services,couch_server_sup,
0+            <0.35.0>]},
0+       {messages,[]},
0+       {links,[<0.91.0>,<0.22796.0>]},
0+       {dictionary,[]},
0+       {trap_exit,false},
0+       {status,running},
0+       {heap_size,987},
0+       {stack_size,24},
0+       {reductions,8725}],
0+      [{neighbour,
0+           [{pid,<0.22796.0>},
0+            {registered_name,[]},
0+            {initial_call,
0+                {mochiweb_socket_server,acceptor_loop,['Argument__1']}},
0+            {current_function,{gen,wait_resp_mon,3}},
0+            {ancestors,
0+                [couch_httpd,couch_secondary_services,couch_server_sup,
0+                 <0.35.0>]},
0+            {messages,[]},
0+            {links,[<0.97.0>,<0.22800.0>,#Port<0.2438>]},
0+            {dictionary,
0+                [{mochiweb_request_body,undefined},
0+                 {mochiweb_request_qs,[{"filter","erl/foo"}]},
0+                 {jsonp,no_jsonp},
0+                 {mochiweb_request_cookie,[]}]},
0+            {trap_exit,false},
0+            {status,waiting},
0+            {heap_size,6765},
0+            {stack_size,12},
0+            {reductions,10665}]}]]}}
0+1>
0+=CRASH REPORT==== 15-Apr-2010::15:57:51 ===
0+  crasher:
0+    initial call: couch_native_process:init/1
0+    pid: <0.22800.0>
0+    registered_name: []
0+    exception exit: {function_clause,[{couch_native_process,ddoc,4},
0+                                      {couch_native_process,handle_call,3},
0+                                      {crypto,sha,1}]}
0+      in function  gen_server:terminate/6
0+    ancestors: [couch_query_servers,couch_secondary_services,
0+                  couch_server_sup,<0.35.0>]
0+    messages: []
0+    links: [<0.91.0>,<0.22796.0>]
0+    dictionary: []
0+    trap_exit: false
0+    status: running
0+    heap_size: 987
0+    stack_size: 24
0+    reductions: 8725
0+  neighbours:
0+    neighbour: [{pid,<0.22796.0>},
0+                  {registered_name,[]},
0+                  {initial_call,
0+                      {mochiweb_socket_server,acceptor_loop,['Argument__1']}},
0+                  {current_function,{gen,wait_resp_mon,3}},
0+                  {ancestors,
0+                      [couch_httpd,couch_secondary_services,couch_server_sup,
0+                       <0.35.0>]},
0+                  {messages,[]},
0+                  {links,[<0.97.0>,<0.22800.0>,#Port<0.2438>]},
0+                  {dictionary,
0+                      [{mochiweb_request_body,undefined},
0+                       {mochiweb_request_qs,[{"filter","erl/foo"}]},
0+                       {jsonp,no_jsonp},
0+                       {mochiweb_request_cookie,[]}]},
0+                  {trap_exit,false},
0+                  {status,waiting},
0+                  {heap_size,6765},
0+                  {stack_size,12},
0+                  {reductions,10665}]
0+1> [error] [<0.97.0>] {error_report,<0.34.0>,
0+    {<0.97.0>,std_error,
0+     {mochiweb_socket_server,235,
0+         {child_error,
0+             {function_clause,
0+                 [{couch_native_process,ddoc,4},
0+                  {couch_native_process,handle_call,3},
0+                  {crypto,sha,1}]}}}}}
0+1>
0+=ERROR REPORT==== 15-Apr-2010::15:57:51 ===
0+{mochiweb_socket_server,235,
0+    {child_error,
0+        {function_clause,
0+            [{couch_native_process,ddoc,4},
0+             {couch_native_process,handle_call,3},
0+             {crypto,sha,1}]}}}
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
--- Revision None
+++ Revision 366438306564
@@ -0,0 +1,241 @@
+My filter:
+"filters": {
+ "foo": "fun({Doc},Req) -> true end."
+ }
+
+Error report:
+1> [info] [<0.22796.0>] 127.0.0.1 - - 'GET' /mytemp/_changes?filter=erl/foo 200
+1> [error] [<0.22800.0>] ** Generic server <0.22800.0> terminating
+** Last message in was {prompt,
+ [<<"ddoc">>,<<"_design/erl">>,
+ [<<"filters">>,<<"foo">>],
+ [[{[{<<"_id">>,
+ <<"854d5890751755bddd7c7d3b58000dcc">>},
+ {<<"_rev">>,
+ <<"1-cd90201763f897aa0178b7ff05eb80cb">>},
+ {<<"x">>,1},
+ {<<"y">>,2},
+ {<<"_revisions">>,
+ {[{<<"start">>,1},
+ {<<"ids">>,
+ [<<"cd90201763f897aa0178b7ff05eb80cb">>]}]}}]}],
+ {[{<<"info">>,
+ {[{db_name,<<"mytemp">>},
+ {doc_count,19},
+ {doc_del_count,0},
+ {update_seq,46},
+ {purge_seq,0},
+ {compact_running,false},
+ {disk_size,208987},
+ {instance_start_time,<<"1271350757823718">>},
+ {disk_format_version,5}]}},
+ {<<"id">>,null},
+ {<<"method">>,'GET'},
+ {<<"path">>,[<<"mytemp">>,<<"_changes">>]},
+ {<<"query">>,{[{<<"filter">>,<<"erl/foo">>}]}},
+ {<<"headers">>,
+ {[{<<"Accept">>,<<"*/*">>},
+ {<<"Host">>,<<"localhost:5984">>},
+ {<<"User-Agent">>,
+ <<"curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3">>}]}},
+ {<<"body">>,undefined},
+ {<<"peer">>,<<"127.0.0.1">>},
+ {<<"form">>,{[]}},
+ {<<"cookie">>,{[]}},
+ {<<"userCtx">>,
+ {[{<<"db">>,<<"mytemp">>},
+ {<<"name">>,null},
+ {<<"roles">>,[<<"_admin">>]}]}}]},
+ {[{<<"db">>,<<"mytemp">>},
+ {<<"name">>,null},
+ {<<"roles">>,[<<"_admin">>]}]}]]}
+** When Server state == {evstate,
+ {dict,1,16,16,8,80,48,
+ {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
+ []},
+ {{[],[],[],[],[],[],[],[],
+ [[<<"_design/erl">>|
+ {[{<<"_id">>,<<"_design/erl">>},
+ {<<"_rev">>,
+ <<"21-a01ff617a71f03ba67dad709e4737258">>},
+ {<<"language">>,<<"erlang">>},
+ {<<"filters">>,
+ {[{<<"foo">>,
+ <<"fun({Doc},Req) -> true end.">>}]}}]}]],
+ [],[],[],[],[],[],[]}}},
+ [],
+ {[{<<"reduce_limit">>,true}]},
+ nil,5000}
+** Reason for termination ==
+** {function_clause,[{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]}
+
+1>
+=ERROR REPORT==== 15-Apr-2010::15:57:51 ===
+** Generic server <0.22800.0> terminating
+** Last message in was {prompt,
+ [<<"ddoc">>,<<"_design/erl">>,
+ [<<"filters">>,<<"foo">>],
+ [[{[{<<"_id">>,
+ <<"854d5890751755bddd7c7d3b58000dcc">>},
+ {<<"_rev">>,
+ <<"1-cd90201763f897aa0178b7ff05eb80cb">>},
+ {<<"x">>,1},
+ {<<"y">>,2},
+ {<<"_revisions">>,
+ {[{<<"start">>,1},
+ {<<"ids">>,
+ [<<"cd90201763f897aa0178b7ff05eb80cb">>]}]}}]}],
+ {[{<<"info">>,
+ {[{db_name,<<"mytemp">>},
+ {doc_count,19},
+ {doc_del_count,0},
+ {update_seq,46},
+ {purge_seq,0},
+ {compact_running,false},
+ {disk_size,208987},
+ {instance_start_time,<<"1271350757823718">>},
+ {disk_format_version,5}]}},
+ {<<"id">>,null},
+ {<<"method">>,'GET'},
+ {<<"path">>,[<<"mytemp">>,<<"_changes">>]},
+ {<<"query">>,{[{<<"filter">>,<<"erl/foo">>}]}},
+ {<<"headers">>,
+ {[{<<"Accept">>,<<"*/*">>},
+ {<<"Host">>,<<"localhost:5984">>},
+ {<<"User-Agent">>,
+ <<"curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3">>}]}},
+ {<<"body">>,undefined},
+ {<<"peer">>,<<"127.0.0.1">>},
+ {<<"form">>,{[]}},
+ {<<"cookie">>,{[]}},
+ {<<"userCtx">>,
+ {[{<<"db">>,<<"mytemp">>},
+ {<<"name">>,null},
+ {<<"roles">>,[<<"_admin">>]}]}}]},
+ {[{<<"db">>,<<"mytemp">>},
+ {<<"name">>,null},
+ {<<"roles">>,[<<"_admin">>]}]}]]}
+** When Server state == {evstate,
+ {dict,1,16,16,8,80,48,
+ {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
+ []},
+ {{[],[],[],[],[],[],[],[],
+ [[<<"_design/erl">>|
+ {[{<<"_id">>,<<"_design/erl">>},
+ {<<"_rev">>,
+ <<"21-a01ff617a71f03ba67dad709e4737258">>},
+ {<<"language">>,<<"erlang">>},
+ {<<"filters">>,
+ {[{<<"foo">>,
+ <<"fun({Doc},Req) -> true end.">>}]}}]}]],
+ [],[],[],[],[],[],[]}}},
+ [],
+ {[{<<"reduce_limit">>,true}]},
+ nil,5000}
+** Reason for termination ==
+** {function_clause,[{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]}
+1> [error] [<0.22800.0>] {error_report,<0.34.0>,
+ {<0.22800.0>,crash_report,
+ [[{initial_call,{couch_native_process,init,['Argument__1']}},
+ {pid,<0.22800.0>},
+ {registered_name,[]},
+ {error_info,
+ {exit,
+ {function_clause,
+ [{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]},
+ [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
+ {ancestors,
+ [couch_query_servers,couch_secondary_services,couch_server_sup,
+ <0.35.0>]},
+ {messages,[]},
+ {links,[<0.91.0>,<0.22796.0>]},
+ {dictionary,[]},
+ {trap_exit,false},
+ {status,running},
+ {heap_size,987},
+ {stack_size,24},
+ {reductions,8725}],
+ [{neighbour,
+ [{pid,<0.22796.0>},
+ {registered_name,[]},
+ {initial_call,
+ {mochiweb_socket_server,acceptor_loop,['Argument__1']}},
+ {current_function,{gen,wait_resp_mon,3}},
+ {ancestors,
+ [couch_httpd,couch_secondary_services,couch_server_sup,
+ <0.35.0>]},
+ {messages,[]},
+ {links,[<0.97.0>,<0.22800.0>,#Port<0.2438>]},
+ {dictionary,
+ [{mochiweb_request_body,undefined},
+ {mochiweb_request_qs,[{"filter","erl/foo"}]},
+ {jsonp,no_jsonp},
+ {mochiweb_request_cookie,[]}]},
+ {trap_exit,false},
+ {status,waiting},
+ {heap_size,6765},
+ {stack_size,12},
+ {reductions,10665}]}]]}}
+1>
+=CRASH REPORT==== 15-Apr-2010::15:57:51 ===
+ crasher:
+ initial call: couch_native_process:init/1
+ pid: <0.22800.0>
+ registered_name: []
+ exception exit: {function_clause,[{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]}
+ in function gen_server:terminate/6
+ ancestors: [couch_query_servers,couch_secondary_services,
+ couch_server_sup,<0.35.0>]
+ messages: []
+ links: [<0.91.0>,<0.22796.0>]
+ dictionary: []
+ trap_exit: false
+ status: running
+ heap_size: 987
+ stack_size: 24
+ reductions: 8725
+ neighbours:
+ neighbour: [{pid,<0.22796.0>},
+ {registered_name,[]},
+ {initial_call,
+ {mochiweb_socket_server,acceptor_loop,['Argument__1']}},
+ {current_function,{gen,wait_resp_mon,3}},
+ {ancestors,
+ [couch_httpd,couch_secondary_services,couch_server_sup,
+ <0.35.0>]},
+ {messages,[]},
+ {links,[<0.97.0>,<0.22800.0>,#Port<0.2438>]},
+ {dictionary,
+ [{mochiweb_request_body,undefined},
+ {mochiweb_request_qs,[{"filter","erl/foo"}]},
+ {jsonp,no_jsonp},
+ {mochiweb_request_cookie,[]}]},
+ {trap_exit,false},
+ {status,waiting},
+ {heap_size,6765},
+ {stack_size,12},
+ {reductions,10665}]
+1> [error] [<0.97.0>] {error_report,<0.34.0>,
+ {<0.97.0>,std_error,
+ {mochiweb_socket_server,235,
+ {child_error,
+ {function_clause,
+ [{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]}}}}}
+1>
+=ERROR REPORT==== 15-Apr-2010::15:57:51 ===
+{mochiweb_socket_server,235,
+ {child_error,
+ {function_clause,
+ [{couch_native_process,ddoc,4},
+ {couch_native_process,handle_call,3},
+ {crypto,sha,1}]}}}