I've run dovecot-sysreport -o <core> and generated a file - but it's a few gigs in size. Am I generating the core dump incorrectly? Should I do something different?
-- Daniel
On 7 December 2021 18.55.40 UTC, Daniel Miller dmiller@amfes.com wrote:
I've run dovecot-sysreport -o <core> and generated a file - but it's a few gigs in size. Am I generating the core dump incorrectly? Should I do something different?
-- Daniel
Hi!
Can you instead submit gdb bt full output and doveconf -n?
Aki
------ Original Message ------
Hi!
Can you instead submit gdb bt full output and doveconf -n?
Aki
Certainly - but I need to know how. The problem is during TCP replication.
Here is dovecot -n:
# 2.3.17.1 (476cd46418): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.17.1 (a1a0b892) # OS: Linux 5.4.0-91-generic x86_64 Ubuntu 18.04.6 LTS xfs # Hostname: bubba.amfes.lan auth_cache_size = 4 k auth_master_user_separator = * auth_mechanisms = plain login auth_policy_hash_nonce = # hidden, use -P to show it auth_policy_hash_truncate = 8 auth_policy_server_api_header = Authorization: Basic d2ZvcmNlOnVsdHJhLXNlY3JldC1zZWN1cmUtc2FmZQ auth_verbose = yes default_login_user = nobody default_vsz_limit = 2 G disable_plaintext_auth = no doveadm_password = # hidden, use -P to show it doveadm_port = 10993 imap_capability = +SPECIAL-USE listen = * login_trusted_networks = 192.168.0.0/24 mail_attachment_detection_options = add-flags mail_attachment_hash = %{sha512} mail_attribute_dict = file:/var/mail/attributes mail_gid = mail mail_location = sdbox:/var/mail/%d/%n/sdbox mail_plugins = fts fts_solr acl zlib virtual notify replication mailbox_alias mail_prefetch_count = 10 mail_shared_explicit_inbox = yes mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext mdbox_rotate_size = 20 M namespace archives { list = children location = mdbox:/var/mail/%d/%n/Archives/mdbox mailbox Unsorted { auto = no special_use = \Archive } prefix = INBOX/Archives/ separator = / subscriptions = no type = private } namespace inbox { alias_for = hidden = no inbox = yes list = yes location = mailbox "Deleted Messages" { auto = no autoexpunge = 30 days special_use = \Trash } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe autoexpunge = 30 days special_use = \Trash } prefix = INBOX/ separator = / subscriptions = no type = private } namespace lists { list = children location = mdbox:/var/mail/%d/%n/Lists/mdbox prefix = INBOX/Lists/ separator = / subscriptions = no type = private } namespace subscriptions { hidden = yes list = no location = prefix = separator = / subscriptions = yes type = private } namespace usershares { list = yes location = sdbox:/var/mail/%%d/%%n/sdbox:NO-NOSELECT prefix = INBOX/shared/%%d/%%n/ separator = / subscriptions = no type = shared } namespace virtual { list = children location = virtual:/var/mail/%d/%n/virtual mailbox Flagged { comment = All my flagged messages special_use = \Flagged } prefix = INBOX/virtual/ separator = / subscriptions = no } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = file:/var/mail/%d/shared-mailboxes fts = solr fts_autoindex = yes fts_autoindex_exclude = \Trash fts_autoindex_exclude2 = \Junk fts_autoindex_exclude3 = \Spam fts_enforced = no fts_index_timeout = 20s fts_solr = url=http://127.0.0.1:8983/solr/dovecot/ batch_size=2000 mail_replica = tcp:10.23.1.10 mailbox_alias_new3 = Deleted Messages mailbox_alias_old3 = Trash replication_sync_timeout = 2 sieve = file:~/sieve;active=~/.dovecot.sieve } protocols = imap lmtp sieve replication_dsync_parameters = -d -l 30 -U -n INBOX -n INBOX/Archives -n INBOX/Lists -x INBOX/virtual -x INBOX/shared replication_max_conns = 5 service aggregator { fifo_listener replication-notify-fifo { mode = 0600 user = vmail } unix_listener replication-notify { mode = 0600 user = vmail } } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0600 user = vmail } } service doveadm { inet_listener { port = 10993 } user = vmail } service imap-login { process_min_avail = 4 } service imap-postlogin { executable = script-login /etc/dovecot/post-login.sh user = $default_internal_user } service imap { executable = imap imap-postlogin vsz_limit = 4 G } service indexer-worker { user = vmail } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = mail mode = 0666 user = vmail } } service replicator { process_min_avail = 1 unix_listener replicator-doveadm { mode = 0600 user = vmail } } ssl_cert =
-- Daniel
On 7 December 2021 19.11.18 UTC, Daniel Miller dmiller@amfes.com wrote:
------ Original Message ------
Hi!
Can you instead submit gdb bt full output and doveconf -n?
Aki
Certainly - but I need to know how. The problem is during TCP replication.
-- Daniel
Use
gdb /path/to/replicator /path/to/core bt full
Aki
Use
gdb /path/to/replicator /path/to/core bt full
Aki
root@bubba:/var/core# gdb /usr/lib/dovecot/replicator
/var/core/11199.replicator
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 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 "x86_64-linux-gnu".
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/replicator...Reading symbols from
/usr/lib/debug/.build-id/63/bc9a0e025f7ecba8e4906abc177b978bf6c2ad.debug...done.
done.
[New LWP 11199]
Core was generated by `dovecot/replicator'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:51
set = {__val = {0, 1459, 1460, 94875967713912, 8,
140599001568843, 153, 140599001377356, 140727459487856, 120,
206158430224,
140727459488192, 140727459487984, 126291299233366272,
94875967713888, 140599001144598}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007fdfc13a58b1 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction =
0x0}, sa_mask = {__val = {94875967711840, 18446744073709551615,
1073741824, 94875967583248, 140599001120139,
140599004035360, 140599001098972, 140599004035360, 126291299233366272,
140599004035336, 140599001376562, 140727459488192,
140599004035360, 140727459488192, 140599001376953, 140599004035360}},
sa_flags = -1048313238, sa_restorer = 0x5}
sigs = {__val = {32, 0
On 7 December 2021 19.27.20 UTC, Daniel Miller - CLOUD dmiller@amfes.com wrote:
Use
gdb /path/to/replicator /path/to/core bt full
Aki
service replicator { vsz_limit = 2G }
Aki
service replicator { vsz_limit = 2G }
Aki
Tried that - got another one.
[New LWP 14072]
Core was generated by `dovecot/replicator'.
Program terminated with signal SIGABRT, Aborted.
---Type <return> to continue, or q <return> to quit---
#0 __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0 __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:51
set = {__val = {0, 1459, 1460, 94545983793224, 8,
140396720010827, 153, 140396719819340, 140727510797504, 120,
206158430224,
140727510797840, 140727510797632, 2471027943189898752,
94545983793200, 140396719586582}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007fb0a84eb8b1 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction =
0x0}, sa_mask = {__val = {94545983791152, 18446744073709551615,
1073741824, 94545983669264, 140396719562123,
140396722477344, 140396719540956, 140396722477344, 2471027943189898752,
140396722477320, 140396719818546, 140727510797840,
140396722477344, 140727510797840, 140396719818937, 140396722477344}},
sa_flags = -1466408342, sa_restorer = 0x5}
sigs = {__val = {32, 0
dovecot -n # 2.3.17.1 (476cd46418): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.17.1 (a1a0b892) # OS: Linux 5.4.0-91-generic x86_64 Ubuntu 18.04.6 LTS xfs # Hostname: bubba.amfes.lan auth_cache_size = 4 k auth_master_user_separator = * auth_mechanisms = plain login auth_policy_hash_nonce = # hidden, use -P to show it auth_policy_hash_truncate = 8 auth_policy_server_api_header = Authorization: Basic d2ZvcmNlOnVsdHJhLXNlY3JldC1zZWN1cmUtc2FmZQ auth_verbose = yes default_login_user = nobody default_vsz_limit = 2 G disable_plaintext_auth = no doveadm_password = # hidden, use -P to show it doveadm_port = 10993 imap_capability = +SPECIAL-USE listen = * login_trusted_networks = 192.168.0.0/24 mail_attachment_detection_options = add-flags mail_attachment_hash = %{sha512} mail_attribute_dict = file:/var/mail/attributes mail_gid = mail mail_location = sdbox:/var/mail/%d/%n/sdbox mail_plugins = fts fts_solr acl zlib virtual notify replication mailbox_alias mail_prefetch_count = 10 mail_shared_explicit_inbox = yes mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext mdbox_rotate_size = 20 M namespace archives { list = children location = mdbox:/var/mail/%d/%n/Archives/mdbox mailbox Unsorted { auto = no special_use = \Archive } prefix = INBOX/Archives/ separator = / subscriptions = no type = private } namespace inbox { alias_for = hidden = no inbox = yes list = yes location = mailbox "Deleted Messages" { auto = no autoexpunge = 30 days special_use = \Trash } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Sent { auto = subscribe special_use = \Sent } mailbox Trash { auto = subscribe autoexpunge = 30 days special_use = \Trash } prefix = INBOX/ separator = / subscriptions = no type = private } namespace lists { list = children location = mdbox:/var/mail/%d/%n/Lists/mdbox prefix = INBOX/Lists/ separator = / subscriptions = no type = private } namespace subscriptions { hidden = yes list = no location = prefix = separator = / subscriptions = yes type = private } namespace usershares { list = yes location = sdbox:/var/mail/%%d/%%n/sdbox:NO-NOSELECT prefix = INBOX/shared/%%d/%%n/ separator = / subscriptions = no type = shared } namespace virtual { list = children location = virtual:/var/mail/%d/%n/virtual mailbox Flagged { comment = All my flagged messages special_use = \Flagged } prefix = INBOX/virtual/ separator = / subscriptions = no } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { acl = vfile acl_shared_dict = file:/var/mail/%d/shared-mailboxes fts = solr fts_autoindex = yes fts_autoindex_exclude = \Trash fts_autoindex_exclude2 = \Junk fts_autoindex_exclude3 = \Spam fts_enforced = no fts_index_timeout = 20s fts_solr = url=http://127.0.0.1:8983/solr/dovecot/ batch_size=2000 mail_replica = tcp:10.23.1.10 mailbox_alias_new3 = Deleted Messages mailbox_alias_old3 = Trash replication_sync_timeout = 2 sieve = file:~/sieve;active=~/.dovecot.sieve } protocols = imap lmtp sieve replication_dsync_parameters = -d -l 30 -U -n INBOX -n INBOX/Archives -n INBOX/Lists -x INBOX/virtual -x INBOX/shared replication_max_conns = 5 service aggregator { fifo_listener replication-notify-fifo { mode = 0600 user = vmail } unix_listener replication-notify { mode = 0600 user = vmail } } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = mail mode = 0600 user = vmail } } service doveadm { inet_listener { port = 10993 } user = vmail } service imap-login { process_min_avail = 4 } service imap-postlogin { executable = script-login /etc/dovecot/post-login.sh user = $default_internal_user } service imap { executable = imap imap-postlogin vsz_limit = 4 G } service indexer-worker { user = vmail } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = mail mode = 0666 user = vmail } } service replicator { process_min_avail = 1 unix_listener replicator-doveadm { mode = 0600 user = vmail } vsz_limit = 2 G } ssl_cert =
-- Daniel
participants (3)
-
Aki Tuomi
-
Daniel Miller
-
Daniel Miller - CLOUD