Hello, >>> Lucene library is throwing an error, which crashes Dovecot. Maybe Dovecot >>> should catch the error, but it would still be broken. Try deleting the lucene indexes and rebuilding them? >> Deleting the indexes helped, but after they had been rebuilt, the error occurred again.
> Could you enable core dumps and run bt full in gdb? I attached the result. Regards Christoph
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "arm-linux-gnueabihf". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/dovecot/imap...Reading symbols from /usr/lib/debug//usr/lib/dovecot/imap...done. done. [New LWP 3223] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". Core was generated by `dovecot/imap'. Program terminated with signal SIGABRT, Aborted. #0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44 (gdb) bt full #0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44 No locals. #1 0xb6ca1ee6 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 _a1 = 0 _a3tmp = 6 _a1tmp = 0 _a3 = 6 _nametmp = 268 _a2tmp = 3223 _a2 = 3223 _name = 268 _sys_result = <optimized out> pd = 0xb6f41000 pid = 0 selftid = 3223 #2 0xb6ca2bee in __GI_abort () at abort.c:89 save_stage = 2 act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {3099947508, 3036704597, 12, 2, 3066870881, 2, 3067513328, 3067513328, 3039078548, 3066868915, 3099927080, 3067514384, 3099927232, 3037254609, 3100237568, 3065976447, 3099927168, 0, 3099927080, 2, 3099927168, 3099927048, 3037941156, 3067514384, 3099927232, 3037254609, 3100237568, 0, 3069284112, 2, 3099927048, 2}}, sa_flags = -1195040248, sa_restorer = 0xb5204d17 <__cxxabiv1::__cxa_end_catch()+6>} sigs = {__val = {32, 0 <repeats 31 times>}} #3 0xb5206cb8 in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95 terminating = true t = <optimized out> #4 0xb52056e4 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:47 No locals. #5 0xb520573a in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:57 No locals. #6 0xb520595a in __cxxabiv1::__cxa_throw (obj=0xb8c52280, tinfo=0xb51468f8 <typeinfo for CLuceneError>, dest=0xb508d3d1 <CLuceneError::~CLuceneError()>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:87 globals = <optimized out> #7 0xb51345fe in lucene::analysis::snowball::SnowballFilter::SnowballFilter (this=0xb8c58fa8, in=<optimized out>, normalizer=<optimized out>, language=0x1 <error: Cannot access memory at address 0x1>, deleteTS=true) at Snowball.cc:103 No locals. #8 0xb513469a in lucene::analysis::snowball::SnowballAnalyzer::tokenStream (this=<optimized out>, fieldName=<optimized out>, reader=<optimized out>, deleteReader=<optimized out>) at Snowball.cc:76 bufferedReader = <optimized out> result = 0xb8c521f0 #9 0xb513332a in getFieldQuery (fuzzy=false, queryText=0xb8c92330 L"dbsim", _field=0xb8c922f0 L"to", analyzer=0xb8c515a8) at lucene-wrapper.cc:1047 reader = <incomplete type> source = <optimized out> v = {<lucene::util::__CLList<lucene::analysis::Token*, std::vector<lucene::analysis::Token*, std::allocator<lucene::analysis::Token*> >, lucene::util::Deletor::Object<lucene::analysis::Token> >> = {<std::vector<lucene::analysis::Token*, std::allocator<lucene::analysis::Token*> >> = std::vector of length 766992923, capacity -1 = {<error reading variable> t = 0x1344 positionCount = <optimized out> severalTokensAtSamePosition = <optimized out> #10 lucene_get_query_str (index=index@entry=0xb8cf5ee0, key=0xb8c922f0 L"to", str=<optimized out>, fuzzy=<optimized out>) at lucene-wrapper.cc:1165 wvalue = 0xb8c92330 L"dbsim" analyzer = 0xb8c515a8 #11 0xb51339f0 in lucene_get_query (arg=0xb8d63108, key=<optimized out>, index=0xb8cf5ee0) at lucene-wrapper.cc:1172 No locals. #12 lucene_add_definite_query (index=index@entry=0xb8cf5ee0, queries=..., arg=arg@entry=0xb8d63108, flags=flags@entry=FTS_LOOKUP_FLAG_AND_ARGS) at lucene-wrapper.cc:1218 and_args = true q = <optimized out> lq = 0xb8cf5ee0 #13 0xb5133d1a in lucene_index_lookup (index=0xb8cf5ee0, args=args@entry=0xb8d63108, flags=flags@entry=FTS_LOOKUP_FLAG_AND_ARGS, result=result@entry=0xbeff18ac) at lucene-wrapper.cc:1387 have_definites = <optimized out> maybe_queries = {arr = {buffer = 0x63306632, element_size = 875651636}, v = 0x63306632, v_modifiable = 0x63306632} arg = 0xb8d63108 def_queries = {arr = {buffer = 0xb8c92218, element_size = 8}, v = 0xb8c92218, v_modifiable = 0xb8c92218} have_maybies = <optimized out> #14 0xb5130fa0 in fts_backend_lucene_lookup (_backend=0xb8cb1d48, box=<optimized out>, args=0xb8d63108, flags=FTS_LOOKUP_FLAG_AND_ARGS, result=0xbeff18ac) at fts-backend-lucene.c:486 _data_stack_cur_id = 5 backend = 0xb8cb1d48 ret = <optimized out> #15 0xb6b9a396 in fts_backend_lookup (backend=0xb8cb1d48, box=0xb8d00020, args=args@entry=0xb8d63108, flags=flags@entry=FTS_LOOKUP_FLAG_AND_ARGS, result=result@entry=0xbeff18ac) at fts-api.c:345 No locals. #16 0xb6b9d632 in fts_search_lookup_level_single (and_args=<optimized out>, args=0xb8d63108, fctx=0xb8cc0d00) at fts-search.c:51 flags = FTS_LOOKUP_FLAG_AND_ARGS level = 0x1 result = {box = 0x0, definite_uids = {arr = {buffer = 0xb8d67020, element_size = 8}, v = 0xb8d67020, v_modifiable = 0xb8d67020}, maybe_uids = {arr = {buffer = 0xb8d67140, element_size = 8}, v = 0xb8d67140, v_modifiable = 0xb8d67140}, scores = {arr = {buffer = 0xb8d67260, element_size = 8}, v = 0xb8d67260, v_modifiable = 0xb8d67260}, scores_sorted = false} #17 fts_search_lookup_level (fctx=fctx@entry=0xb8cc0d00, args=0xb8d63108, and_args=and_args@entry=true) at fts-search.c:213 _data_stack_cur_id = 4 ret = <optimized out> #18 0xb6b9dab2 in fts_search_lookup (fctx=fctx@entry=0xb8cc0d00) at fts-search.c:363 last_uid = 141 seq1 = 48 seq2 = 3500 __FUNCTION__ = "fts_search_lookup" #19 0xb6b9ef82 in fts_mailbox_search_init (t=0xb8cb1b28, args=0xb8d63020, sort_program=<optimized out>, wanted_fields=<optimized out>, wanted_headers=0x0) at fts-storage.c:238 ft = 0xb8c91cc0 fbox = <optimized out> flist = <optimized out> ctx = 0xb8cbd9a0 #20 0xb6f32062 in imap_search_start (ctx=ctx@entry=0xb8cf8100, sargs=0xb8d63020, sort_program=sort_program@entry=0x0) at imap-search.c:586 cmd = 0xb8cf8020 __FUNCTION__ = "imap_search_start" #21 0xb6f283a0 in cmd_search (cmd=0xb8cf8020) at cmd-search.c:48 sargs = 0xb8d63020 args = 0xb8cd3080 charset = 0xb8cd3140 "ISO-8859-1" ret = 1 #22 0xb6f2d18e in command_exec (cmd=cmd@entry=0xb8cf8020) at imap-commands.c:172 hook = 0xb8cb2fa0 finished = <optimized out> cmd_start_timeval = {tv_sec = 1467286919, tv_usec = 539746} cmd_start_bytes_in = 50 cmd_start_bytes_out = 775 __FUNCTION__ = "command_exec" #23 0xb6f2bcee in client_command_input (cmd=cmd@entry=0xb8cf8020) at imap-client.c:958 client = 0xb8cf7020 command = <optimized out> __FUNCTION__ = "client_command_input" #24 0xb6f2bd42 in client_command_input (cmd=0xb8cf8020) at imap-client.c:1018 client = 0xb8cf7020 command = <optimized out> __FUNCTION__ = "client_command_input" #25 0xb6f2bfba in client_handle_next_command (remove_io_r=<synthetic pointer>, client=0xb8cf7020) at imap-client.c:1058 No locals. #26 client_handle_input (client=0xb8cf7020) at imap-client.c:1070 _data_stack_cur_id = 3 remove_io = false handled_commands = <optimized out> client = 0xb8cf7020 #27 0xb6f2c3a4 in client_input (client=0xb8cf7020) at imap-client.c:1117 cmd = 0xb6d890ef <t_push_named+10> output = 0xb8cbdd58 bytes = 51 __FUNCTION__ = "client_input" #28 0xb6dd4472 in io_loop_call_io (io=0xb8cb9f18) at ioloop.c:559 ioloop = 0xb8caff78 t_id = 2 __FUNCTION__ = "io_loop_call_io" #29 0xb6dd5358 in io_loop_handler_run_internal (ioloop=ioloop@entry=0xb8caff78) at ioloop-epoll.c:220 ctx = 0xb8cb0e40 list = 0xb8c9df90 io = <optimized out> tv = {tv_sec = 1799, tv_usec = 999636} events_count = <optimized out> msecs = <optimized out> ret = 1 i = 0 j = <optimized out> call = <optimized out> __FUNCTION__ = "io_loop_handler_run_internal" #30 0xb6dd44ea in io_loop_handler_run (ioloop=ioloop@entry=0xb8caff78) at ioloop.c:607 No locals. #31 0xb6dd4642 in io_loop_run (ioloop=0xb8caff78) at ioloop.c:583 __FUNCTION__ = "io_loop_run" #32 0xb6d8cc12 in master_service_run (service=0xb8caef18, callback=<optimized out>) at master-service.c:640 No locals. #33 0xb6f235c2 in main (argc=1, argv=0xb8c4d030) at main.c:450 set_roots = {0xb6f4f3a0 <imap_setting_parser_info>, 0x0} login_set = {auth_socket_path = 0xb8c92028 "H ɸ", postlogin_socket_path = 0x0, postlogin_timeout_secs = 60, callback = 0xb6f355fd <login_client_connected>, failure_callback = 0xb6f35181 <login_client_failed>, request_auth_token = 1} service_flags = <optimized out> storage_service_flags = <optimized out> username = <optimized out> c = <optimized out> (gdb) quit