Henrik,

I'm not familiar with riaktant but it looks like an invalid query is being
passed in.  I.e. an empty query.  This empty query causes and error in the
query parser and then it appears a segfault in the js driver.

E.g. here I replicate the error at the console:

(riak@127.0.0.1)5> search:search(<<"bucket">>, <<>>).
** exception error: no match of right hand side value
{error,{lucene_parse,"syntax error before: "}}
     in function  riak_search_client:parse_query/3
     in call from search:search/3

-Ryan

On Mon, Sep 12, 2011 at 4:09 PM, Henrik Johansen <hen...@myunix.dk> wrote:

> Hello list,
>
> I have been playing with single node riak-1.0.0pre2 cluster & riaktant
> today and somehow I managed to get riak to segfault every time I tried using
> the MapReduce functions in riaktant.
>
> Riak-1.0.0pre2 was installed using the 64-bit Debian package on my
> Ubuntu 11.04 laptop - riaktant was pulled form GitHub.
>
> I have gathered some relevant info below - if I can assist in any way
> please let me know ...
>
> dmesg :
> [10488.941750] beam.smp[1496]: segfault at 7f4d61d73ff8 ip 00007f4d5ea7a83e
> sp 00007f4d61d74000 error 6 in erlang_js_drv.so[7f4d5ea35000+**e6000]
> [10944.335495] beam.smp[4681]: segfault at 7fcda9892ff8 ip 00007fcda386783e
> sp 00007fcda9893000 error 6 in erlang_js_drv.so[7fcda3822000+**e6000]
> [11658.589251] beam.smp[6604]: segfault at 7fee7166eff8 ip 00007fee6dc4983e
> sp 00007fee7166f000 error 6 in erlang_js_drv.so[7fee6dc04000+**e6000]
>
> crash.log :
> 2011-09-12 21:49:03 =SUPERVISOR REPORT====
>     Supervisor: {local,riak_pipe_builder_sup}
>     Context:    child_terminated
>     Reason:
>     {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
>     error before:
>     "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
>     Offender:
>     [{pid,<0.1556.0>},{name,**undefined},{mfargs,{riak_pipe_**
> builder,start_link,undefined}}**,{restart_type,temporary},{**
> shutdown,brutal_kill},{child_**type,worker}]
>
> 2011-09-12 21:49:03 =SUPERVISOR REPORT====
>     Supervisor: {local,riak_pipe_fitting_sup}
>     Context:    child_terminated
>     Reason:
>     {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
>     error before:
>     "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
>     Offender:
>     [{pid,<0.1558.0>},{name,**undefined},{mfargs,{riak_pipe_**
> fitting,start_link,undefined}}**,{restart_type,temporary},{**
> shutdown,2000},{child_type,**worker}]
>
> 2011-09-12 21:49:03 =SUPERVISOR REPORT====
>     Supervisor: {local,riak_pipe_fitting_sup}
>     Context:    child_terminated
>     Reason:
>     {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
>     error before:
>     "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
>     Offender:
>     [{pid,<0.1559.0>},{name,**undefined},{mfargs,{riak_pipe_**
> fitting,start_link,undefined}}**,{restart_type,temporary},{**
> shutdown,2000},{child_type,**worker}]
>
> 2011-09-12 21:49:03 =SUPERVISOR REPORT====
>     Supervisor: {local,riak_pipe_fitting_sup}
>     Context:    child_terminated
>     Reason:
>     {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
>     error before:
>     "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
>     Offender:
>     [{pid,<0.1557.0>},{name,**undefined},{mfargs,{riak_pipe_**
> fitting,start_link,undefined}}**,{restart_type,temporary},{**
> shutdown,2000},{child_type,**worker}]
>
> error.log :
> 2011-09-12 21:49:03.025 [error] <0.132.0> Supervisor riak_pipe_builder_sup
> had child at module undefined at <0.1556.0> exit with reason
> {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
> error before:
> "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
> in context child_terminated
> 2011-09-12 21:49:03.028 [error] <0.133.0> Supervisor riak_pipe_fitting_sup
> had child at module undefined at <0.1558.0> exit with reason
> {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
> error before:
> "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
> in context child_terminated
> 2011-09-12 21:49:03.031 [error] <0.133.0> Supervisor riak_pipe_fitting_sup
> had child at module undefined at <0.1559.0> exit with reason
> {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
> error before:
> "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
> in context child_terminated
> 2011-09-12 21:49:03.033 [error] <0.133.0> Supervisor riak_pipe_fitting_sup
> had child at module undefined at <0.1557.0> exit with reason
> {{modfun,riak_search,mapred_**search,[<<"syslog">>,<<>>]},**
> error,{badmatch,{error,{**lucene_parse,"syntax
> error before:
> "}}},[{riak_search_client,**parse_query,3},{riak_search,**
> parse_query,3},{riak_search,**mapred_search,3},{riak_kv_mrc_**
> pipe,send_inputs,3},{riak_kv_**mrc_pipe,'-send_inputs_async/**
> 3-fun-0-',3}]}
> in context child_terminated
>
> /HenrikJ
>
> ______________________________**_________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/**mailman/listinfo/riak-users_**lists.basho.com<http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to