-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting SIGSEGV on doveadm index #21
Comments
Hi |
Hello, Thanks for your answer! I'm indeed using the git version. I've updated git, ran make clean, make and make install. Problem line seems the same, other line position, so surely the new code. Regards,
|
I don't see why assigning a string to a std::string would cause a core dump. Maybe memory limit ? Do you have "default_vsz_limit = 2GB // or above" in your dovecot config ? Can you share the doveconf -n output ? |
That's indeed the first thing I thought. This is the output of the doveconf command:
|
I made a slight change in the code, to figure out maybe better who is
the culprit
Can you git pull again ?
|
Just tried this, it's again the assignment line. I can't think of anything besides: not null terminated string, not enough memory, unintialized pointer or having a dereferenced pointer. Here's the backtrace:
|
Actually the plugin works in production on my own servers without any coredump.
So, maybe we should look into the difference between your setup and mine.
in the configuration file you sent , it says "2 G" , instead of "2G" ,
maybe remove the space to make sure the memory allocated is really 2giga
and not 2 bytes
|
Agreed, it’s the Ubuntu 14.04 machines that have the problem. I have the plugin running on Ubuntu 18.04 without issues. Dovecot is the same version. |
maybe a "apt-get update / upgrade" on the Ubuntu 14.04 will solve it ?
|
Now trying to upgrade away from 14.04, that will probably solve the issue, thanks! |
Problem solved ? |
We’re running the plugin with 18.04 in production already. So let’s consider it solved, thanks! |
Hello,
This happens upon indexing a mailbox, but also with dovecot running indices itself:
2019-07-02T13:04:11.970270+00:00 g02ms01 dovecot: indexer-worker(some@email.com)<7994>srt6YbKMdtZU8cwR:eZiUOUtWG106HwAADIg0GQ: Fatal: master: service(indexer-worker): child 7994 killed with signal 11 (core dumps disabled - https://dovecot.org/bugreport.html#coredumps)
After this I ran an individual index of the mailbox and here too I received a SIGSEGV.
Below is the backtrace.
Kind Regards,
Tom
OS: Ubuntu 14.04
Dovecot 2.3.6 (7eab80676)
Here is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff49309eb in std::string::assign(char const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt full
#0 0x00007ffff49309eb in std::string::assign(char const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#1 0x00007ffff52f1536 in assign (__s=0x555555823980 "return-path", this=0x5555558468c8) at /usr/include/c++/4.8/bits/basic_string.h:1131
No locals.
#2 operator= (__s=0x555555823980 "return-path", this=0x5555558468c8) at /usr/include/c++/4.8/bits/basic_string.h:555
No locals.
#3 fts_backend_xapian_update_set_build_key (_ctx=0x5555558468a0, key=0x7fffffffde10) at fts-backend-xapian.cpp:307
ctx = 0x5555558468a0
i =
f2 = 0x555555823980 "return-path"
backend =
j = 11
field = 0x555555846e26 "RETURN-PATH"
#4 0x00007ffff65a8064 in fts_backend_update_set_build_key () from /usr/lib/dovecot/modules/lib20_fts_plugin.so
No symbol table info available.
#5 0x00007ffff65a9377 in fts_build_mail () from /usr/lib/dovecot/modules/lib20_fts_plugin.so
No symbol table info available.
#6 0x00007ffff65afae2 in ?? () from /usr/lib/dovecot/modules/lib20_fts_plugin.so
No symbol table info available.
#7 0x00007ffff767816e in mail_precache () from /usr/lib/dovecot/libdovecot-storage.so.0
No symbol table info available.
#8 0x0000555555584eaf in ?? ()
No symbol table info available.
#9 0x0000555555585400 in ?? ()
No symbol table info available.
#10 0x000055555557f7d7 in ?? ()
No symbol table info available.
#11 0x0000555555580318 in ?? ()
No symbol table info available.
#12 0x000055555558115d in doveadm_cmd_ver2_to_mail_cmd_wrapper ()
No symbol table info available.
#13 0x00005555555911ca in doveadm_cmd_run_ver2 ()
No symbol table info available.
#14 0x00005555555912f7 in doveadm_cmd_try_run_ver2 ()
---Type to continue, or q to quit---
No symbol table info available.
#15 0x000055555557050c in main ()
No symbol table info available.
The text was updated successfully, but these errors were encountered: