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 <j...@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/tr...@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