OK, got it (my fault, as always, put the LimitCORE in the wrong line). Here is the stack trace:
|
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007fe342b0942a in __GI_abort () at abort.c:89
#2 0x00007fe3419660ad in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007fe341964066 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007fe3419640b1 in std::terminate() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007fe3419642c9 in __cxa_throw () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fe3419647ec in operator new(unsigned long) () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007fe341ca748d in ?? () from /usr/lib/x86_64-linux-gnu/libxapian.so.30
#8 0x00007fe341ca9258 in
Xapian::Document::Internal::add_term(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int) () from
/usr/lib/x86_64-linux-gnu/libxapian.so.30
#9 0x00007fe341ca92f9 in
Xapian::Document::add_term(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int) () from
/usr/lib/x86_64-linux-gnu/libxapian.so.30
#10 0x00007fe3420709e6 in fts_backend_xapian_index_hdr (dbx=0x563011117b00,
uid=<optimized out>, field=<optimized out>, data=data@entry=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID", p=<optimized
out>, f=<optimized out>)
at fts-backend-xapian-functions.cpp:661
#11 0x00007fe3420745d6 in fts_backend_xapian_update_build_more
(_ctx=0x56301117e0a0, data=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID",
size=<optimized out>) at fts-backend-xapian.cpp:330
#12 0x00007fe3424859a8 in fts_build_data (ctx=ctx@entry=0x7ffeb9c7d3a0,
data=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID", size=53,
last=last@entry=true) at fts-build-mail.c:425
#13 0x00007fe3424861f7 in fts_build_unstructured_header (hdr=<optimized out>,
hdr=<optimized out>, ctx=0x7ffeb9c7d3a0) at fts-build-mail.c:103
#14 fts_build_mail_header (block=0x7ffeb9c7d330, block=0x7ffeb9c7d330,
ctx=0x7ffeb9c7d3a0) at fts-build-mail.c:178
#15 fts_build_mail_real (may_need_retry_r=0x7ffeb9c7d2e3,
retriable_err_msg_r=0x7ffeb9c7d2f0, mail=0x5630111b9a08,
update_ctx=0x56301117e0a0) at fts-build-mail.c:568
#16 fts_build_mail (update_ctx=0x56301117e0a0, mail=mail@entry=0x5630111b9a08)
at fts-build-mail.c:617
#17 0x00007fe34248d6c3 in fts_mail_index (_mail=0x5630111b9a08) at
fts-storage.c:538
#18 fts_mail_precache (_mail=0x5630111b9a08) at fts-storage.c:559
#19 0x00007fe343237d6a in mail_precache (mail=0x5630111b9a08) at mail.c:424
#20 0x000056300ff5a603 in index_mailbox_precache (conn=0x5630110e99e0,
box=0x563011113fc8) at master-connection.c:102
#21 index_mailbox (user=<optimized out>, user=<optimized out>, what=<optimized
out>, max_recent_msgs=<optimized out>, mailbox=<optimized out>,
conn=0x5630110e99e0) at master-connection.c:205
#22 master_connection_input_line (line=<optimized out>, conn=0x5630110e99e0) at
master-connection.c:247
#23 master_connection_input (conn=0x5630110e99e0) at master-connection.c:287
#24 0x00007fe342f5f5d5 in io_loop_call_io (io=0x5630110e9a20) at ioloop.c:698
#25 0x00007fe342f60fd9 in io_loop_handler_run_internal
(ioloop=ioloop@entry=0x5630110dec90) at ioloop-epoll.c:221
#26 0x00007fe342f5f6e6 in io_loop_handler_run (ioloop=<optimized out>) at
ioloop.c:750
#27 0x00007fe342f5f8f8 in io_loop_run (ioloop=0x5630110dec90) at ioloop.c:723
#28 0x00007fe342ed3d43 in master_service_run (service=0x5630110deb20,
callback=<optimized out>) at master-service.c:781
#29 0x000056300ff59fea in main (argc=<optimized out>, argv=<optimized out>) at
indexer-worker.c:77
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
set = {__val = {0, 51539607553, 0, 140732015298048, 3, 0,
7233170478761014387, 109330211561823, 140732015303136, 140732015302656,
140732015303144, 0, 140732015303160, 0, 0, 0}}
pid = <optimized out>
tid = <optimized out>
#1 0x00007fe342b0942a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x7fe342e6f520
<_IO_2_1_stderr_>, sa_sigaction = 0x7fe342e6f520 <_IO_2_1_stderr_>}, sa_mask =
{__val = {3432, 140614056716544, 140614056719424, 140614056736163,
140614053423970, 14, 1, 10, 0, 94764659026720, 50,
140732015300080, 140614053431513, 140614056736032,
140614053432547, 140614056736032}}, sa_flags = 1100362432, sa_restorer = 0x0}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007fe3419660ad in __gnu_cxx::__verbose_terminate_handler() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#3 0x00007fe341964066 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#4 0x00007fe3419640b1 in std::terminate() () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#5 0x00007fe3419642c9 in __cxa_throw () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#6 0x00007fe3419647ec in operator new(unsigned long) () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#7 0x00007fe341ca748d in ?? () from /usr/lib/x86_64-linux-gnu/libxapian.so.30
No symbol table info available.
#8 0x00007fe341ca9258 in
Xapian::Document::Internal::add_term(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int) () from
/usr/lib/x86_64-linux-gnu/libxapian.so.30
No symbol table info available.
#9 0x00007fe341ca92f9 in
Xapian::Document::add_term(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int) () from
/usr/lib/x86_64-linux-gnu/libxapian.so.30
No symbol table info available.
#10 0x00007fe3420709e6 in fts_backend_xapian_index_hdr (dbx=0x563011117b00,
uid=<optimized out>, field=<optimized out>, data=data@entry=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID", p=<optimized
out>, f=<optimized out>)
at fts-backend-xapian-functions.cpp:661
i = 128
u =
"xmi...@iwascoding.co\000m\000c\000\375\361\341\350/ZÈd#C\343\177\000\000\210\030/C\343\177\000\000\000\317ǹ\003\000\000\000\000\375\361\341\350/Z\310\370\316ǹ\376\177\000\000\370\316ǹ\376\177\000\000\237d#C\343\177\000\000P\031/C\343\177\000\000\200\321\027\021\060V\000\000\004\000\000\000\000\000\000\000\237d#C\343\177\000\000\022\352.C\343\177\000\000@\317ǹ\376\177\000\000\060\325\027\021\060V\000\000\237d#C\343\177\000\000\304Q-C\343\177\000\000t\230\232@\343\177\000\000\000\375\361\341\350/Z\310P\353\346B\342~`Z\000\375\361\341\350/ZÈd#C\343\177\000\000\213\031/C\343\177"...
docid = 1885
xhs = {size = 221, partial = 2, full = 20, data = 0x56301dd628b0}
xq = {size = 1, tsize = 1, hsize = 1, data = 0x56301dd3cf20, header =
0x56301dcc8770, terms = 0x56301dd3d850, hdrs = 0x56301dd3c5f0, is_and = false,
is_global = false, limit = 1}
result = <optimized out>
doc = {internal = {px = 0x56301dd6aab0}}
h = 0x7fe342077566 "XMID"
#11 0x00007fe3420745d6 in fts_backend_xapian_update_build_more
(_ctx=0x56301117e0a0, data=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID",
size=<optimized out>) at fts-backend-xapian.cpp:330
ctx = 0x56301117e0a0
backend = <optimized out>
s = 0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID"
#12 0x00007fe3424859a8 in fts_build_data (ctx=ctx@entry=0x7ffeb9c7d3a0,
data=0x56301cf420e0
"<a046ef4e-ac12-41ae-b671-40094a082...@iwascoding.com>MESSAGE-ID", size=53,
last=last@entry=true) at fts-build-mail.c:425
No locals.
#13 0x00007fe3424861f7 in fts_build_unstructured_header (hdr=<optimized out>,
hdr=<optimized out>, ctx=0x7ffeb9c7d3a0) at fts-build-mail.c:103
data = <optimized out>
buf = <optimized out>
i = <optimized out>
ret = <optimized out>
#14 fts_build_mail_header (block=0x7ffeb9c7d330, block=0x7ffeb9c7d330,
ctx=0x7ffeb9c7d3a0) at fts-build-mail.c:178
hdr = <optimized out>
key = {uid = 2037, type = FTS_BACKEND_BUILD_KEY_HDR, part =
0x5630110d8ee8, hdr_name = 0x56301cf42115 "MESSAGE-ID", body_content_type =
0x0, body_content_disposition = 0x0}
ret = <optimized out>
#15 fts_build_mail_real (may_need_retry_r=0x7ffeb9c7d2e3,
retriable_err_msg_r=0x7ffeb9c7d2f0, mail=0x5630111b9a08,
update_ctx=0x56301117e0a0) at fts-build-mail.c:568
block = {part = 0x5630110d8ee8, hdr = 0x56301dce6838, data =
0x7fe34323649f <__x86_return_thunk+5>
"\363\220\017\256\350\353\371H\215d$\b\303\017\037@", size = 0}
ret = <optimized out>
input = 0x56301d64cbe0
raw_block = {part = 0x5630110d8ee8, hdr = 0x56301dcc8f30, data = 0x0,
size = 0}
skip_body = <optimized out>
ctx = {mail = 0x5630111b9a08, update_ctx = 0x56301117e0a0, content_type
= 0x56301dcc8040 "multipart/signed", content_disposition = 0x0, body_parser =
0x0, word_buf = 0x0, pending_input = 0x0, cur_user_lang = 0x0}
prev_part = <optimized out>
parser = 0x56301d8007d8
decoder = 0x56301dce6820
parts = 0x56301dd4e790
body_part = <optimized out>
body_added = false
binary_body = <optimized out>
error = 0x7f5 <error: Cannot access memory at address 0x7f5>
#16 fts_build_mail (update_ctx=0x56301117e0a0, mail=mail@entry=0x5630111b9a08)
at fts-build-mail.c:617
_data_stack_cur_id = 6
attempts = 2
retriable_err_msg = 0x7fe34323649f <__x86_return_thunk+5>
"\363\220\017\256\350\353\371H\215d$\b\303\017\037@"
may_need_retry = false
#17 0x00007fe34248d6c3 in fts_mail_index (_mail=0x5630111b9a08) at
fts-storage.c:538
ft = 0x56301111eac0
flist = 0x5630110f85f8
pmail = 0x5630111b9a08
#18 fts_mail_precache (_mail=0x5630111b9a08) at fts-storage.c:559
_data_stack_cur_id = 5
mail = 0x5630111b9a08
fmail = <optimized out>
ft = 0x56301111eac0
__func__ = "fts_mail_precache"
#19 0x00007fe343237d6a in mail_precache (mail=0x5630111b9a08) at mail.c:424
_data_stack_cur_id = 4
p = 0x5630111b9a08
---Type <return> to continue, or q <return> to quit---
#20 0x000056300ff5a603 in index_mailbox_precache (conn=0x5630110e99e0,
box=0x563011113fc8) at master-connection.c:102
counter = 1884
max = 2986
percentage_sent = 60
storage = <optimized out>
status = {messages = 2986, recent = 0, unseen = 0, uidvalidity =
1451492221, uidnext = 3281, first_unseen_seq = 0, first_recent_uid = 3281,
last_cached_seq = 0, highest_modseq = 0, highest_pvt_modseq = 0, keywords =
0x0, permanent_flags = 0, flags = 0,
permanent_keywords = false, allow_new_keywords = false,
nonpermanent_modseqs = false, no_modseq_tracking = false, have_guids = true,
have_save_guids = true, have_only_guid128 = false}
uids = <optimized out>
username = 0x56301110b830 "p...@iwascoding.com"
first_uid = 1
percentage_str = "60\n"
percentage = <optimized out>
error = 32739
trans = 0x56301111eaf0
ctx = 0x56301117da00
last_uid = <optimized out>
ret = 0
box_vname = 0x5630111142f0 "sent"
errstr = <optimized out>
search_args = 0x0
mail = 0x5630111b9a08
metadata = {guid = '\000' <repeats 15 times>, virtual_size = 0,
physical_size = 0, first_save_date = 0, cache_fields = 0x0,
precache_fields = (MAIL_FETCH_STREAM_HEADER | MAIL_FETCH_STREAM_BODY
| MAIL_FETCH_RECEIVED_DATE | MAIL_FETCH_SAVE_DATE | MAIL_FETCH_PHYSICAL_SIZE |
MAIL_FETCH_VIRTUAL_SIZE | MAIL_FETCH_UIDL_BACKEND | MAIL_FETCH_GUID |
MAIL_FETCH_POP3_ORDER), backend_ns_prefix = 0x0,
backend_ns_type = (unknown: 0)}
seq = <optimized out>
#21 index_mailbox (user=<optimized out>, user=<optimized out>, what=<optimized
out>, max_recent_msgs=<optimized out>, mailbox=<optimized out>,
conn=0x5630110e99e0) at master-connection.c:205
box = 0x563011113fc8
status = {messages = 0, recent = 0, unseen = 0, uidvalidity = 0,
uidnext = 91, first_unseen_seq = 110, first_recent_uid = 0, last_cached_seq =
0, highest_modseq = 0, highest_pvt_modseq = 532575944823, keywords = 0x10,
permanent_flags = 1122429696, flags = 32739,
permanent_keywords = false, allow_new_keywords = false,
nonpermanent_modseqs = false, no_modseq_tracking = false, have_guids = true,
have_save_guids = true, have_only_guid128 = false}
errstr = <optimized out>
ret = 0
ns = <optimized out>
path = 0x5630110d83a8
"/var/spool/mail/iwascoding/paul/mdbox/mailboxes/sent/dbox-Mails"
error = 2986
sync_flags = <optimized out>
#22 master_connection_input_line (line=<optimized out>, conn=0x5630110e99e0) at
master-connection.c:247
str = <optimized out>
max_recent_msgs = 0
ret = <optimized out>
args = <optimized out>
input = {parent_event = 0x0, module = 0x56300ff5ae1f "mail", service =
0x56300ff5ae10 "indexer-worker", username = 0x5630110d6038
"p...@iwascoding.com", session_id = 0x0, session_id_prefix = 0x0,
session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__in6_u = {
__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0,
0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
remote_ip = {family = 0, u = {ip6 = {__in6_u = {__u6_addr8 = '\000' <repeats 15
times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0,
0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
local_port = 0, remote_port = 0, userdb_fields = 0x0, flags_override_add =
(unknown: 0), flags_override_remove = (unknown: 0), no_userdb_lookup = false,
debug = false, conn_secured = false,
conn_ssl_secured = false}
service_user = 0x5630110ec7d8
user = 0x56301110b718
error = 0x0
#23 master_connection_input (conn=0x5630110e99e0) at master-connection.c:287
_data_stack_cur_id = 3
line = <optimized out>
#24 0x00007fe342f5f5d5 in io_loop_call_io (io=0x5630110e9a20) at ioloop.c:698
ioloop = 0x5630110dec90
t_id = 2
__func__ = "io_loop_call_io"
#25 0x00007fe342f60fd9 in io_loop_handler_run_internal
(ioloop=ioloop@entry=0x5630110dec90) at ioloop-epoll.c:221
ctx = 0x5630110e0330
io = <optimized out>
tv = {tv_sec = 2147483, tv_usec = 0}
events_count = <optimized out>
msecs = <optimized out>
ret = 1
i = 0
j = <optimized out>
call = <optimized out>
__func__ = "io_loop_handler_run_internal"
#26 0x00007fe342f5f6e6 in io_loop_handler_run (ioloop=<optimized out>) at
ioloop.c:750
No locals.
#27 0x00007fe342f5f8f8 in io_loop_run (ioloop=0x5630110dec90) at ioloop.c:723
__func__ = "io_loop_run"
#28 0x00007fe342ed3d43 in master_service_run (service=0x5630110deb20,
callback=<optimized out>) at master-service.c:781
No locals.
#29 0x000056300ff59fea in main (argc=<optimized out>, argv=<optimized out>) at
indexer-worker.c:77
storage_service_flags = (MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP |
MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP |
MAIL_STORAGE_SERVICE_FLAG_NO_IDLE_TIMEOUT)
c = <optimized out>
Difficult to figure out without a coredump + gdb
I have also battled quite a lot to make sure dovecot can core dump on my Archlinux servers. I remember that the key point was putting fs.suid_dumpable=2 in /etc/sysctl.d/ conf files, LimitCORE=infinity in /etc/systemd/system/multi-user.target.wants/dovecot.service, and rebooting the server. My own coredumps are on /var/lib/systemd/coredump/
|
smime.p7s
Description: S/MIME cryptographic signature