You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Brian Candler <B....@pobox.com> on 2009/08/18 14:37:09 UTC
Test suite problem with Hardy + 12.b.5
Now that couchdb trunk requires 12.b.5 I updated a Ubuntu Hardy box using
the Erlang from Jaunty, pulled in the latest Couchdb from git (*), and
compiled it.
It seems to start, but a lot of the tests fail, including the "basics" test.
The backtrace is attached below.
Any thoughts?
The backtrace is hard to read, but appears to be something to do with
_temp_view. The SpiderMonkey version I have installed is
libmozjs-dev 1.8.1.18+nobinonly.b308.cvs20090331t155113-0ubuntu0.8.04.1
and a quick test suggests it's OK:
$ /usr/local/bin/couchjs -
print("Hello");
^D
Hello
$
Cheers,
Brian.
(*) HEAD is:
commit f6c359e412ae3793de363ce23fdf34a09fd7107d
Author: jan <ja...@13f79535-47bb-0310-9956-ffa450edef68>
Date: Tue Aug 18 10:03:43 2009 +0000
add Dirkjan Ochtman to THANKS file
git-svn-id: http://svn.apache.org/repos/asf/couchdb/trunk@805340 13f79535-47bb-0310-9956-ffa450edef68
----- This is the log from running the "basics" test -----
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' / 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'DELETE' /test_suite_db/ 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'DELETE' /test_suite_db/ 404
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/ 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/ 412
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'DELETE' /test_suite_db 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'DELETE' /test_suite_db%2Fwith_slashes 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db%2Fwith_slashes 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' /test_suite_db/ 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' /test_suite_db/ 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/0 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' /test_suite_db/0?revs_info=true 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' /test_suite_db/0?local_seq=true 200
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/1 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/2 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'PUT' /test_suite_db/3 201
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'GET' /test_suite_db/ 200
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.716.0>] {error_report,<0.22.0>,
{<0.716.0>,crash_report,
[[{pid,<0.716.0>},
{registered_name,[]},
{error_info,
{exit,
{bad_return_value,{os_process_error,{exit_status,2}}},
[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
{initial_call,{couch_os_process,init,['Argument__1']}},
{ancestors,
[couch_query_servers,couch_secondary_services,couch_server_sup,
<0.1.0>]},
{messages,[]},
{links,[<0.555.0>]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,610},
{stack_size,23},
{reductions,217}],
[]]}}
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [emulator] Error in process <0.714.0> with exit value: {{nocatch,{'EXIT',{{badmatch,{error,{bad_return_value,{os_process_error,{exit_status,2}}}}},[{couch_query_servers,new_process,2},{couch_query_servers,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply...
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.555.0>] ** Generic server couch_query_servers terminating
** Last message in was {'EXIT',<0.716.0>,
{bad_return_value,
{os_process_error,{exit_status,2}}}}
** When Server state == {213021,217120,221217,225305}
** Reason for termination ==
** {bad_return_value,{os_process_error,{exit_status,2}}}
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.555.0>] {error_report,<0.22.0>,
{<0.555.0>,crash_report,
[[{pid,<0.555.0>},
{registered_name,couch_query_servers},
{error_info,
{exit,
{bad_return_value,{os_process_error,{exit_status,2}}},
[{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
{initial_call,{couch_query_servers,init,['Argument__1']}},
{ancestors,[couch_secondary_services,couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.415.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,377},
{stack_size,23},
{reductions,271}],
[]]}}
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.415.0>] {error_report,<0.22.0>,
{<0.415.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,child_terminated},
{reason,{bad_return_value,{os_process_error,{exit_status,2}}}},
{offender,[{pid,<0.555.0>},
{name,query_servers},
{mfa,{couch_query_servers,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.710.0>] ** Generic server <0.710.0> terminating
** Last message in was {'EXIT',<0.714.0>,
{{nocatch,
{'EXIT',
{{badmatch,
{error,
{bad_return_value,
{os_process_error,{exit_status,2}}}}},
[{couch_query_servers,new_process,2},
{couch_query_servers,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}}},
[{couch_query_servers,get_os_process,1},
{couch_query_servers,start_doc_map,2},
{couch_view_updater,view_compute,2},
{couch_view_updater,update,2}]}}
** When Server state == {group_state,undefined,<<"test_suite_db">>,
{"/usr/local/var/lib/couchdb",<<"test_suite_db">>,
{group,
<<68,132,180,92,203,90,112,239,127,92,212,225,110,
234,229,122>>,
{db,<0.700.0>,<0.701.0>,nil,
<<"1250598345676632">>,<0.698.0>,<0.702.0>,
{db_header,4,0,0,nil,nil,nil,0,nil,nil,1000},
0,
{btree,<0.698.0>,
{1079,{4,0}},
#Fun<couch_db_updater.8.117532479>,
#Fun<couch_db_updater.9.105507025>,
#Fun<couch_db_updater.7.32442936>,
#Fun<couch_db_updater.10.43662179>},
{btree,<0.698.0>,
{1335,4},
#Fun<couch_db_updater.11.41695917>,
#Fun<couch_db_updater.12.6934644>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.13.28245598>},
{btree,<0.698.0>,nil,
#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
4,<<"test_suite_db">>,
"/usr/local/var/lib/couchdb/test_suite_db.couch",
[],[],nil,
{user_ctx,null,[]},
#Ref<0.0.0.13450>,1000,
[before_header,after_header,on_file_open]},
nil,<<"_temp">>,<<"javascript">>,[],
[{view,0,
[<<"_temp">>],
<<"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})">>,
nil,[]}],
nil,0,0,nil,nil}},
{group,
<<68,132,180,92,203,90,112,239,127,92,212,225,110,
234,229,122>>,
{db,<0.700.0>,<0.701.0>,nil,<<"1250598345676632">>,
<0.698.0>,<0.702.0>,
{db_header,4,0,0,nil,nil,nil,0,nil,nil,1000},
0,
{btree,<0.698.0>,
{1079,{4,0}},
#Fun<couch_db_updater.8.117532479>,
#Fun<couch_db_updater.9.105507025>,
#Fun<couch_db_updater.7.32442936>,
#Fun<couch_db_updater.10.43662179>},
{btree,<0.698.0>,
{1335,4},
#Fun<couch_db_updater.11.41695917>,
#Fun<couch_db_updater.12.6934644>,
#Fun<couch_btree.5.124754102>,
#Fun<couch_db_updater.13.28245598>},
{btree,<0.698.0>,nil,#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
4,<<"test_suite_db">>,
"/usr/local/var/lib/couchdb/test_suite_db.couch",
[],[],nil,
{user_ctx,null,[]},
#Ref<0.0.0.13450>,1000,
[before_header,after_header,on_file_open]},
<0.712.0>,<<"_temp">>,<<"javascript">>,[],
[{view,0,
[<<"_temp">>],
<<"(function (doc) {if (doc.a == 4) {emit(null, doc.b);}})">>,
{btree,<0.712.0>,nil,
#Fun<couch_btree.3.83553141>,
#Fun<couch_btree.4.30790806>,
#Fun<couch_view.less_json_keys.2>,
#Fun<couch_view_group.11.46347864>},
[]}],
{btree,<0.712.0>,nil,#Fun<couch_btree.0.83553141>,
#Fun<couch_btree.1.30790806>,
#Fun<couch_btree.2.124754102>,nil},
0,0,nil,nil},
<0.714.0>,nil,false,
[{{<0.485.0>,#Ref<0.0.0.13616>},4}],
<0.715.0>}
** Reason for termination ==
** {'EXIT',
{{badmatch,
{error,{bad_return_value,{os_process_error,{exit_status,2}}}}},
[{couch_query_servers,new_process,2},
{couch_query_servers,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}}
[Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.710.0>] {error_report,<0.22.0>,
{<0.710.0>,crash_report,
[[{pid,<0.710.0>},
{registered_name,[]},
{error_info,
{exit,
{'EXIT',
{{badmatch,
{error,
{bad_return_value,
{os_process_error,{exit_status,2}}}}},
[{couch_query_servers,new_process,2},
{couch_query_servers,handle_call,3},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,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.1.0>]},
{messages,[]},
{links,[<0.712.0>,<0.416.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,1597},
{stack_size,23},
{reductions,506}],
[{neighbour,
[{pid,<0.715.0>},
{registered_name,[]},
{initial_call,{couch_ref_counter,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.710.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.712.0>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,233},
{stack_size,9},
{reductions,54}]},
{neighbour,
[{pid,<0.712.0>},
{registered_name,[]},
{initial_call,{couch_file,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[<0.710.0>,couch_view,couch_secondary_services,
couch_server_sup,<0.1.0>]},
{messages,[]},
{links,[<0.710.0>,<0.715.0>,#Port<0.1393>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,987},
{stack_size,9},
{reductions,1960}]}]]}}
[Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - - 'POST' /test_suite_db/_temp_view 500
Re: Test suite problem with Hardy + 12.b.5
Posted by Jan Lehnardt <ja...@apache.org>.
On 18 Aug 2009, at 15:23, Brian Candler wrote:
> On Tue, Aug 18, 2009 at 02:48:00PM +0200, Jan Lehnardt wrote:
>> We can't support third party distributions (yeah, I know, sounds
>> silly :)
>
> Even if they are SHA1-identical to what's in SVN? Grr.
It's all about removing variables to check for and the limited time
we all have. Sorry :/
>> can you try running couchjs by hand and write `["reset"]`? into
>> stdin?
>
> If it happens again, I'll try this, thanks.
>
> But I just upgraded another Hardy box in the same way, and this one
> worked
> first time without problems.
That's great to hear!
Cheers
Jan
--
Re: Test suite problem with Hardy + 12.b.5
Posted by Brian Candler <B....@pobox.com>.
On Tue, Aug 18, 2009 at 02:48:00PM +0200, Jan Lehnardt wrote:
> We can't support third party distributions (yeah, I know, sounds silly :)
Even if they are SHA1-identical to what's in SVN? Grr.
> can you try running couchjs by hand and write `["reset"]`? into
> stdin?
If it happens again, I'll try this, thanks.
But I just upgraded another Hardy box in the same way, and this one worked
first time without problems.
Regards,
Brian.
Re: Test suite problem with Hardy + 12.b.5
Posted by Jan Lehnardt <ja...@apache.org>.
Hi Brian,
thanks for the report. Just for our sanity, can use the SVN checkout?
We can't support third party distributions (yeah, I know, sounds
silly :)
The backtrace looks as if the build or link phase of couchjs fails.
can you try running couchjs by hand and write `["reset"]`? into
stdin?
> src/couchdb/couchjs share/server/main.js
["reset"]
true
And can you try following http://wiki.apache.org/couchdb/Troubleshooting?
Cheers
Jan
--
On 18 Aug 2009, at 14:37, Brian Candler wrote:
> Now that couchdb trunk requires 12.b.5 I updated a Ubuntu Hardy box
> using
> the Erlang from Jaunty, pulled in the latest Couchdb from git (*), and
> compiled it.
>
> It seems to start, but a lot of the tests fail, including the
> "basics" test.
> The backtrace is attached below.
>
> Any thoughts?
>
> The backtrace is hard to read, but appears to be something to do with
> _temp_view. The SpiderMonkey version I have installed is
> libmozjs-dev
> 1.8.1.18+nobinonly.b308.cvs20090331t155113-0ubuntu0.8.04.1
> and a quick test suggests it's OK:
>
> $ /usr/local/bin/couchjs -
> print("Hello");
> ^D
> Hello
> $
>
> Cheers,
>
> Brian.
>
> (*) HEAD is:
> commit f6c359e412ae3793de363ce23fdf34a09fd7107d
> Author: jan <ja...@13f79535-47bb-0310-9956-ffa450edef68>
> Date: Tue Aug 18 10:03:43 2009 +0000
>
> add Dirkjan Ochtman to THANKS file
>
> git-svn-id: http://svn.apache.org/repos/asf/couchdb/trunk@805340
> 13f79535-47bb-0310-9956-ffa450edef68
>
> ----- This is the log from running the "basics" test -----
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' / 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'DELETE' /test_suite_db/ 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'DELETE' /test_suite_db/ 404
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/ 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/ 412
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'DELETE' /test_suite_db 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'DELETE' /test_suite_db%2Fwith_slashes 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db%2Fwith_slashes 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' /test_suite_db/ 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' /test_suite_db/ 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/0 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' /test_suite_db/0?revs_info=true 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' /test_suite_db/0?local_seq=true 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/1 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/2 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'PUT' /test_suite_db/3 201
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'GET' /test_suite_db/ 200
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.716.0>]
> {error_report,<0.22.0>,
> {<0.716.0>,crash_report,
> [[{pid,<0.716.0>},
> {registered_name,[]},
> {error_info,
> {exit,
> {bad_return_value,{os_process_error,{exit_status,2}}},
> [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
> {initial_call,{couch_os_process,init,['Argument__1']}},
> {ancestors,
>
> [couch_query_servers,couch_secondary_services,couch_server_sup,
> <0.1.0>]},
> {messages,[]},
> {links,[<0.555.0>]},
> {dictionary,[]},
> {trap_exit,false},
> {status,running},
> {heap_size,610},
> {stack_size,23},
> {reductions,217}],
> []]}}
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [emulator] Error in process
> <0.714.0> with exit value: {{nocatch,{'EXIT',{{badmatch,{error,
> {bad_return_value,{os_process_error,{exit_status,2}}}}},
> [{couch_query_servers,new_process,2},
> {couch_query_servers,handle_call,3},{gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply...
>
>
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.555.0>] ** Generic
> server couch_query_servers terminating
> ** Last message in was {'EXIT',<0.716.0>,
> {bad_return_value,
> {os_process_error,{exit_status,2}}}}
> ** When Server state == {213021,217120,221217,225305}
> ** Reason for termination ==
> ** {bad_return_value,{os_process_error,{exit_status,2}}}
>
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.555.0>]
> {error_report,<0.22.0>,
> {<0.555.0>,crash_report,
> [[{pid,<0.555.0>},
> {registered_name,couch_query_servers},
> {error_info,
> {exit,
> {bad_return_value,{os_process_error,{exit_status,2}}},
> [{gen_server,terminate,6},{proc_lib,init_p_do_apply,
> 3}]}},
> {initial_call,{couch_query_servers,init,['Argument__1']}},
> {ancestors,[couch_secondary_services,couch_server_sup,<0.1.0>]},
> {messages,[]},
> {links,[<0.415.0>]},
> {dictionary,[]},
> {trap_exit,true},
> {status,running},
> {heap_size,377},
> {stack_size,23},
> {reductions,271}],
> []]}}
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.415.0>]
> {error_report,<0.22.0>,
> {<0.415.0>,supervisor_report,
> [{supervisor,{local,couch_secondary_services}},
> {errorContext,child_terminated},
> {reason,{bad_return_value,{os_process_error,
> {exit_status,2}}}},
> {offender,[{pid,<0.555.0>},
> {name,query_servers},
> {mfa,{couch_query_servers,start_link,[]}},
> {restart_type,permanent},
> {shutdown,brutal_kill},
> {child_type,worker}]}]}}
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.710.0>] ** Generic
> server <0.710.0> terminating
> ** Last message in was {'EXIT',<0.714.0>,
> {{nocatch,
> {'EXIT',
> {{badmatch,
> {error,
> {bad_return_value,
> {os_process_error,{exit_status,2}}}}},
> [{couch_query_servers,new_process,2},
> {couch_query_servers,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]}}},
> [{couch_query_servers,get_os_process,1},
> {couch_query_servers,start_doc_map,2},
> {couch_view_updater,view_compute,2},
> {couch_view_updater,update,2}]}}
> ** When Server state == {group_state,undefined,<<"test_suite_db">>,
> {"/usr/local/var/lib/
> couchdb",<<"test_suite_db">>,
> {group,
>
> <<68,132,180,92,203,90,112,239,127,92,212,225,110,
> 234,229,122>>,
> {db,<0.700.0>,<0.701.0>,nil,
> <<"1250598345676632">>,<0.698.0>,<0.702.0>,
> {db_header,4,0,0,nil,nil,nil,0,nil,nil,
> 1000},
> 0,
> {btree,<0.698.0>,
> {1079,{4,0}},
> #Fun<couch_db_updater.8.117532479>,
> #Fun<couch_db_updater.9.105507025>,
> #Fun<couch_db_updater.7.32442936>,
> #Fun<couch_db_updater.10.43662179>},
> {btree,<0.698.0>,
> {1335,4},
> #Fun<couch_db_updater.11.41695917>,
> #Fun<couch_db_updater.12.6934644>,
> #Fun<couch_btree.5.124754102>,
> #Fun<couch_db_updater.13.28245598>},
> {btree,<0.698.0>,nil,
> #Fun<couch_btree.0.83553141>,
> #Fun<couch_btree.1.30790806>,
> #Fun<couch_btree.2.124754102>,nil},
> 4,<<"test_suite_db">>,
> "/usr/local/var/lib/couchdb/
> test_suite_db.couch",
> [],[],nil,
> {user_ctx,null,[]},
> #Ref<0.0.0.13450>,1000,
> [before_header,after_header,on_file_open]},
> nil,<<"_temp">>,<<"javascript">>,[],
> [{view,0,
> [<<"_temp">>],
> <<"(function (doc) {if (doc.a == 4)
> {emit(null, doc.b);}})">>,
> nil,[]}],
> nil,0,0,nil,nil}},
> {group,
>
> <<68,132,180,92,203,90,112,239,127,92,212,225,110,
> 234,229,122>>,
>
> {db,<0.700.0>,<0.701.0>,nil,<<"1250598345676632">>,
> <0.698.0>,<0.702.0>,
> {db_header,4,0,0,nil,nil,nil,0,nil,nil,
> 1000},
> 0,
> {btree,<0.698.0>,
> {1079,{4,0}},
> #Fun<couch_db_updater.8.117532479>,
> #Fun<couch_db_updater.9.105507025>,
> #Fun<couch_db_updater.7.32442936>,
> #Fun<couch_db_updater.10.43662179>},
> {btree,<0.698.0>,
> {1335,4},
> #Fun<couch_db_updater.11.41695917>,
> #Fun<couch_db_updater.12.6934644>,
> #Fun<couch_btree.5.124754102>,
> #Fun<couch_db_updater.13.28245598>},
> {btree,<0.698.0>,nil,#Fun<couch_btree.
> 0.83553141>,
> #Fun<couch_btree.1.30790806>,
> #Fun<couch_btree.2.124754102>,nil},
> 4,<<"test_suite_db">>,
> "/usr/local/var/lib/couchdb/
> test_suite_db.couch",
> [],[],nil,
> {user_ctx,null,[]},
> #Ref<0.0.0.13450>,1000,
> [before_header,after_header,on_file_open]},
> <0.712.0>,<<"_temp">>,<<"javascript">>,[],
> [{view,0,
> [<<"_temp">>],
> <<"(function (doc) {if (doc.a == 4)
> {emit(null, doc.b);}})">>,
> {btree,<0.712.0>,nil,
> #Fun<couch_btree.3.83553141>,
> #Fun<couch_btree.4.30790806>,
> #Fun<couch_view.less_json_keys.2>,
> #Fun<couch_view_group.11.46347864>},
> []}],
> {btree,<0.712.0>,nil,#Fun<couch_btree.
> 0.83553141>,
> #Fun<couch_btree.1.30790806>,
> #Fun<couch_btree.2.124754102>,nil},
> 0,0,nil,nil},
> <0.714.0>,nil,false,
> [{{<0.485.0>,#Ref<0.0.0.13616>},4}],
> <0.715.0>}
> ** Reason for termination ==
> ** {'EXIT',
> {{badmatch,
> {error,{bad_return_value,{os_process_error,{exit_status,
> 2}}}}},
> [{couch_query_servers,new_process,2},
> {couch_query_servers,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,3}]}}
>
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [error] [<0.710.0>]
> {error_report,<0.22.0>,
> {<0.710.0>,crash_report,
> [[{pid,<0.710.0>},
> {registered_name,[]},
> {error_info,
> {exit,
> {'EXIT',
> {{badmatch,
> {error,
> {bad_return_value,
> {os_process_error,{exit_status,2}}}}},
> [{couch_query_servers,new_process,2},
> {couch_query_servers,handle_call,3},
> {gen_server,handle_msg,5},
> {proc_lib,init_p_do_apply,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.1.0>]},
> {messages,[]},
> {links,[<0.712.0>,<0.416.0>]},
> {dictionary,[]},
> {trap_exit,true},
> {status,running},
> {heap_size,1597},
> {stack_size,23},
> {reductions,506}],
> [{neighbour,
> [{pid,<0.715.0>},
> {registered_name,[]},
> {initial_call,{couch_ref_counter,init,['Argument__1']}},
> {current_function,{gen_server,loop,6}},
> {ancestors,
> [<0.710.0>,couch_view,couch_secondary_services,
> couch_server_sup,<0.1.0>]},
> {messages,[]},
> {links,[<0.712.0>]},
> {dictionary,[]},
> {trap_exit,false},
> {status,waiting},
> {heap_size,233},
> {stack_size,9},
> {reductions,54}]},
> {neighbour,
> [{pid,<0.712.0>},
> {registered_name,[]},
> {initial_call,{couch_file,init,['Argument__1']}},
> {current_function,{gen_server,loop,6}},
> {ancestors,
> [<0.710.0>,couch_view,couch_secondary_services,
> couch_server_sup,<0.1.0>]},
> {messages,[]},
> {links,[<0.710.0>,<0.715.0>,#Port<0.1393>]},
> {dictionary,[]},
> {trap_exit,false},
> {status,waiting},
> {heap_size,987},
> {stack_size,9},
> {reductions,1960}]}]]}}
>
> [Tue, 18 Aug 2009 12:25:45 GMT] [info] [<0.485.0>] 127.0.0.1 - -
> 'POST' /test_suite_db/_temp_view 500
>
Re: Test suite problem with Hardy + 12.b.5
Posted by Jan Lehnardt <ja...@apache.org>.
On 18 Aug 2009, at 15:02, Brian Candler wrote:
> Supplementary info: I found the whole test suite was OK if I
> recompiled at
> commit a38260e61a94ce51aa91088b65043c60c97e3cb1. So I did a git-bisect
> between the two. All very clever, but then I recompiled back at
> HEAD, and it
> now works fine there too :-(
>
> I have been doing exactly the same every time I compile:
>
> ./bootstrap && ./configure && make && sudo make install && sudo /
> usr/local/etc/init.d/couchdb restart
I'll have a `sudo make local clean` before the bootstrap. Maybe that
helps?
> Not sure what the solution is.
We don't support git, you're on your own :D (just teasing, if somebody
knows the solution, that'd be great)
Cheers
Jan
--
Re: Test suite problem with Hardy + 12.b.5
Posted by Brian Candler <B....@pobox.com>.
Supplementary info: I found the whole test suite was OK if I recompiled at
commit a38260e61a94ce51aa91088b65043c60c97e3cb1. So I did a git-bisect
between the two. All very clever, but then I recompiled back at HEAD, and it
now works fine there too :-(
I have been doing exactly the same every time I compile:
./bootstrap && ./configure && make && sudo make install && sudo /usr/local/etc/init.d/couchdb restart
followed by a shift-reload in the browser on couch_tests.js
Back at HEAD, I've done a 'make clean' followed by the above line again and
it still works.
So I guess this is a non-problem. It would be nice to know why it didn't
work in the first place though.
Regards,
Brian.
P.S. Minor problem when working with git: there is a
src/couchdb/priv/couchspawnkillable file lying around which causes problems
when switching between revisions using git checkout or git bisect. e.g.
$ git-bisect bad
Bisecting: 0 revisions left to test after this
error: Untracked working tree file 'src/couchdb/priv/couchspawnkillable' would be overwritten by merge.
$ rm src/couchdb/priv/couchspawnkillable
$ git bisect bad
Bisecting: 0 revisions left to test after this
[ce8fb60c59e97ff0c960eb8b4819b53dd0eb18fd] allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446
$
Not sure what the solution is.
P.P.S. FWIW, here's the bisect log, although it's a red herring since HEAD
now runs fine on my machine.
$ git bisect log
git-bisect start
# bad: [f6c359e412ae3793de363ce23fdf34a09fd7107d] add Dirkjan Ochtman to THANKS file
git-bisect bad f6c359e412ae3793de363ce23fdf34a09fd7107d
# good: [a38260e61a94ce51aa91088b65043c60c97e3cb1] Introduces native Erlang query servers. Closes COUCHDB-377
git-bisect good a38260e61a94ce51aa91088b65043c60c97e3cb1
# good: [1dec07a650ee33364d74e61ebebfa09433fdfeb3] Make POST's reflect a provided _id member.
git-bisect good 1dec07a650ee33364d74e61ebebfa09433fdfeb3
# good: [013a44367ad8142c0fa5ccb5f0d862bc7ffd0b7e] Updated license.skip. Added license to test/run_native_process.es
git-bisect good 013a44367ad8142c0fa5ccb5f0d862bc7ffd0b7e
# bad: [b67be9966bf4acb34e5833c0cadb3b00896ae374] Minor issue with make install not installing couchspawnkillable.
git-bisect bad b67be9966bf4acb34e5833c0cadb3b00896ae374
# bad: [9e673e51ee0ce10963da49ce60eeaad0b7fee60c] Applying markh's Windows build patch.
git-bisect bad 9e673e51ee0ce10963da49ce60eeaad0b7fee60c
# bad: [9e673e51ee0ce10963da49ce60eeaad0b7fee60c] Applying markh's Windows build patch.
git-bisect bad 9e673e51ee0ce10963da49ce60eeaad0b7fee60c
# good: [ce8fb60c59e97ff0c960eb8b4819b53dd0eb18fd] allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446
git-bisect good ce8fb60c59e97ff0c960eb8b4819b53dd0eb18fd
--------------------------------------------------------------------------
9e673e51ee0ce10963da49ce60eeaad0b7fee60c is first bad commit
commit 9e673e51ee0ce10963da49ce60eeaad0b7fee60c
Author: davisp <da...@13f79535-47bb-0310-9956-ffa450edef68>
Date: Tue Aug 18 01:27:03 2009 +0000
Applying markh's Windows build patch.
Fixes COUCHDB-406
git-svn-id: http://svn.apache.org/repos/asf/couchdb/trunk@805243 13f79535-47bb-0310-9956-ffa450edef68
--------------------------------------------------------------------------