[Dovecot] dovecot 2 beta4 errors core dumps
Hi, While running imaptest with clients=50 seed=123 msgs=1 random secs=600, I got errors : Error: u...@domain.com[55]: Unexpected BYE: * BYE IMAP session state is inconsistent, please relogin.. dovecot.log : Apr 03 10:23:47 imap(u...@domain.com): Panic: file index- transaction.c: line 145 (index_transaction_rollback): assertion failed: (box-transaction_count 0 || box-view-transactions == 0) Apr 03 10:23:47 imap(u...@domain.com): Error: Raw backtrace: /usr/ local/dovecot2/lib/dovecot/libdovecot.so.0 [0xb7e9adc1] - /usr/local/ dovecot2/lib/dovecot/libdovecot.so.0 [0xb7e9ae3f] - /usr/local/ dovecot2/lib/dovecot/libdovecot.so.0(i_error+0) [0xb7e9b0f8] - /usr/ local/dovecot2/lib/dovecot/libdovecot-storage.so.0 [0xb7f3e9c2] - / usr/local/dovecot2/lib/dovecot/lib10_quota_plugin.so [0xb7cdaaea] - / usr/local/dovecot2/lib/dovecot/libdovecot-storage.so. 0(mailbox_transaction_rollback+0x20) [0xb7ef03f0] - /usr/local/ dovecot2/lib/dovecot/lib10_quota_plugin.so [0xb7cda323] - /usr/local/ dovecot2/lib/dovecot/lib10_quota_plugin.so [0xb7cda4df] - /usr/local/ dovecot2/lib/dovecot/libdovecot-storage.so.0(maildir_sync_index+0x897) [0xb7f52bb7] - /usr/local/dovecot2/lib/dovecot/libdovecot-storage.so. 0(maildir_transaction_save_commit_pre+0x710) [0xb7f50f70] - /usr/ local/dovecot2/lib/dovecot/libdovecot-storage.so.0 [0xb7f3ee27] - / usr/local/dovecot2/lib/dovecot/libdovecot-storage.so. 0(mail_index_transaction_commit_full+0x85) [0xb7f08ee5] - /usr/local/ dovecot2/lib/dovecot/libdovecot-storage.so.0(index_transaction_commit +0x83) [0xb7f3ea53] - /usr/local/dovecot2/lib/dovecot/ lib10_quota_plugin.so [0xb7cdab81] - /usr/local/dovecot2/lib/dovecot/ libdovecot-storage.so.0(mailbox_transaction_commit_get_changes+0x42) [0xb7ef0c72] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] [0x804eab2] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] [0x804e8cb] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] [0x804ed02] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] (cmd_append+0x1d9) [0x804f069] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] [0x80562dc] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] [0x8056379] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND] (client_handle_input+0x2d) [0x80564ed] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND](client_input+0x5f) [0x8056f0f] - / usr/local/dovecot2/lib/dovecot/libdovecot.so.0(io_loop_handler_run +0xf5) [0xb7ea7425] - /usr/local/dovecot2/lib/dovecot/libdovecot.so. 0(io_loop_run+0x30) [0xb7ea6470] - /usr/local/dovecot2/lib/dovecot/ libdovecot.so.0(master_service_run+0x2a) [0xb7e93eaa] - dovecot/imap [u...@domain.com 10.0.0.5 APPEND](main+0x2ad) [0x805f9ed] - /lib/i686/cmov/libc.so. 6(__libc_start_main+0xe5) [0xb7d0f455] Apr 03 10:23:47 master: Error: service(imap): child 27371 killed with signal 6 (core dumped) Apr 03 10:23:50 imap(u...@domain.com): Error: dotlock /var/mail/d/ domain.com/user/Maildir/dovecot-uidlist.lock was immediately deleted under us Apr 03 10:23:50 imap(u...@domain.com): Error: dotlock /var/mail/d/ domain.com/user/Maildir/dovecot-uidlist.lock was immediately deleted under us Apr 03 10:23:50 imap(u...@domain.com): Warning: Our dotlock file /var/ mail/d/domain.com/user/Maildir/dovecot-uidlist.lock was deleted (locked 0 secs ago, touched 0 secs ago) Apr 03 10:23:50 imap(u...@domain.com): Warning: Our dotlock file /var/ mail/d/domain.com/user/Maildir/dovecot-uidlist.lock was deleted (locked 0 secs ago, touched 0 secs ago) Apr 03 10:23:50 imap(u...@domain.com): Error: Log synchronization error at seq=2,offset=8188 for /var/mail/dovecot_indexes/d/domain.com/ user/.INBOX/dovecot.index: Append with UID 32, but next_uid = 33 Apr 03 10:23:50 imap(u...@domain.com): Warning: fscking index file / var/mail/dovecot_indexes/d/domain.com/user/.INBOX/dovecot.index Apr 03 10:23:50 imap(u...@domain.com): Error: Log synchronization error at seq=2,offset=8188 for /var/mail/dovecot_indexes/d/domain.com/ user/.INBOX/dovecot.index: Append with UID 32, but next_uid = 33 Apr 03 10:23:50 imap(u...@domain.com): Warning: fscking index file / var/mail/dovecot_indexes/d/domain.com/user/.INBOX/dovecot.index Apr 03 10:23:50 imap(u...@domain.com): Warning: Our dotlock file /var/ mail/d/domain.com/user/Maildir/dovecot-uidlist.lock was overridden (locked 0 secs ago, touched 0 secs ago) Apr 03 10:23:50 imap(u...@domain.com): Error: dotlock /var/mail/d/ domain.com/user/Maildir/dovecot-uidlist.lock was immediately recreated under us Apr 03 10:23:50 imap(u...@domain.com): Error: Log synchronization error at seq=2,offset=8188 for /var/mail/dovecot_indexes/d/domain.com/ user/.INBOX/dovecot.index: Append with UID 32, but next_uid = 33 Apr 03 10:23:50 imap(u...@domain.com): Warning: fscking index file / var/mail/dovecot_indexes/d/domain.com/user/.INBOX/dovecot.index The backtrace : Core was generated by `dovecot/imap'. Program terminated with signal 6, Aborted. [New process 27371] #0 0xb7f85424 in
[Dovecot] dovecot-2.0.beta4: compiler gets stuck making master-service-settings.o Mac OS X 10.6.2
dovecot-2.0.beta4 Environment: MacOS X 10.6.2, Xcode 3.2.1 (gcc-4.2) Problem: ./configure --sysconfdir=/usr/local/conf/ make [...] /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ -DSYSCONFDIR=\/usr/local/conf/dovecot\ -DBINDIR=\/usr/local/bin\ -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c -o master-service-settings.lo master-service-settings.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ -DSYSCONFDIR=\/usr/local/conf/dovecot\ -DBINDIR=\/usr/local/bin\ -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c master-service-settings.c -fno-common -DPIC -o .libs/master-service-settings.o never ends (well, I let it take over 3 minutes of cpu on a Xserve 2.26GHz Xeon and over 5 minutes on a Core 2 Duo before killing it). Any ideas? Thanks Giuliano
Re: [Dovecot] dovecot-2.0.beta4: compiler gets stuck making master-service-settings.o Mac OS X 10.6.2
Le 3 avr. 2010 à 15:02:47, Giuliano Gavazzi a écrit : dovecot-2.0.beta4 Environment: MacOS X 10.6.2, Xcode 3.2.1 (gcc-4.2) Problem: ./configure --sysconfdir=/usr/local/conf/ make [...] /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ -DSYSCONFDIR=\/usr/local/conf/dovecot\ -DBINDIR=\/usr/local/bin\ -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c -o master-service-settings.lo master-service-settings.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ -DSYSCONFDIR=\/usr/local/conf/dovecot\ -DBINDIR=\/usr/local/bin\ -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c master-service-settings.c -fno-common -DPIC -o .libs/master-service-settings.o never ends (well, I let it take over 3 minutes of cpu on a Xserve 2.26GHz Xeon and over 5 minutes on a Core 2 Duo before killing it). Hello Giuliano, You may want to add flag -fno-reorder-blocks to line 121 of src/lib-master/Makefile: CFLAGS = -std=gnu99 -g -O2 -fno-reorder-blocks -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 then run make. Otherwise, Timo devised those patches: http://hg.dovecot.org/dovecot-2.0/rev/ddbc6e8b2776 http://hg.dovecot.org/dovecot-2.0/rev/43f2452b7dd8 http://hg.dovecot.org/dovecot-2.0/rev/f483bbface26 which also are included in the current development tarball (http://hg.dovecot.org/dovecot-2.0/archive/tip.tar.gz). It is likeley that there a slight problem with Apple's implementation of GNU suite (bug report submitted). HTH, Axel
Re: [Dovecot] Question about SASL auth (Solved)
Mark Sapiro wrote: Timo Sirainen wrote: On 27.3.2010, at 6.43, Mark Sapiro wrote: Timo Sirainen wrote: =20 On Tue, 2010-03-23 at 09:28 -0700, Mark Sapiro wrote: Mar 6 07:06:20 sbh16 postfix/smtpd[30273]: warning: SASL: Connect to private/auth failed: Resource temporarily unavailable Ah, just realized. This should help: http://hg.dovecot.org/dovecot-2.0/rev/96496e1d3d12 Thanks Timo. I applied both http://hg.dovecot.org/dovecot-2.0/rev/96496e1d3d12 and http://hg.dovecot.org/dovecot-2.0/rev/aefa279e2c70 I'll report back. It's been over a week since I installed the above two patches and I have seen no more occurrences so I think the patches solved the problem. -- Mark Sapiro m...@msapiro.netThe highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan
Re: [Dovecot] 2.0.beta4, Panic: stream doesn't support seeking backwards
attached a backtrace from gdb for the crash. Hope this is helpful. Thanks Juergen -- Juergen Daubert | mailto:j...@jue.li Korb, Germany| http://jue.li/crux GNU gdb (GDB) 7.1 Copyright (C) 2010 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 i686-pc-linux-gnu. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/lib/dovecot/imap...done. Attaching to program: /usr/lib/dovecot/imap, process 3453 [New Thread 3453] Reading symbols from /usr/lib/dovecot/libdovecot-storage.so.0...done. Loaded symbols for /usr/lib/dovecot/libdovecot-storage.so.0 Reading symbols from /usr/lib/dovecot/libdovecot.so.0...done. Loaded symbols for /usr/lib/dovecot/libdovecot.so.0 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgcc_s.so.1 Core was generated by `dovecot/imap'. Program terminated with signal 6, Aborted. #0 0xb7502ca0 in raise () from /lib/libc.so.6 (gdb) bt full #0 0xb7502ca0 in raise () from /lib/libc.so.6 No symbol table info available. #1 0xb75041dc in abort () from /lib/libc.so.6 No symbol table info available. #2 0xb76572f7 in default_fatal_finish (type=LOG_TYPE_PANIC, status=0) at failures.c:164 backtrace = 0x80680b0 /usr/lib/dovecot/libdovecot.so.0 [0xb76572cf] - /usr/lib/dovecot/libdovecot.so.0 [0xb765801f] - /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0xb76574a1] - /usr/lib/dovecot/libdovecot.so.0 [0xb7661f... #3 0xb765801f in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0xb7682894 stream doesn't support seeking backwards, args=0xbfde1774 ) at failures.c:592 No locals. #4 0xb76574a1 in i_panic (format=0xb7682894 stream doesn't support seeking backwards) at failures.c:230 args = 0xbfde1774 #5 0xb7661f4b in i_stream_file_seek (stream=0x80856f0, v_offset=36055, mark=false) at istream-file.c:109 fstream = 0x80856f0 #6 0xb765f530 in i_stream_seek (stream=0x8085720, v_offset=36055) at istream.c:224 _stream = 0x80856f0 #7 0xb76622f5 in i_stream_limit_read (stream=0x8091b60) at istream-limit.c:40 lstream = 0x8091b60 left = 13213178234276937864 ret = 134764272 pos = 38030 __FUNCTION__ = i_stream_limit_read #8 0xb765ef5c in i_stream_read (stream=0x8091b90) at istream.c:115 _stream = 0x8091b60 old_size = 0 ret = -1217862860 __FUNCTION__ = i_stream_read #9 0xb765fb99 in i_stream_read_data (stream=0x8091b90, data_r=0xbfde18f0, size_r=0xbfde18ec, threshold=1) at istream.c:417 ret = 0 read_more = false __FUNCTION__ = i_stream_read_data #10 0xb7643f18 in message_parse_header_next (ctx=0x8093378, hdr_r=0xbfde1974) at message-header-parser.c:89 line = 0x8093378 msg = 0x0 i = 3219003688 size = 0 startpos = 0 colon_pos = 4294967295 parse_size = 134822896 value_pos = 0 ret = -1218096987 continued = false continues = false last_no_newline = 208 last_crlf = 59 no_newline = false crlf_newline = false __FUNCTION__ = message_parse_header_next #11 0xb763edc8 in read_header (mstream=0x8093648) at istream-header-filter.c:146 hdr = 0x0 highwater_offset = 13215427022242584968 pos = 134820696 ret = -1217862860 matched = 183 hdr_ret = -1217862860 __FUNCTION__ = read_header #12 0xb763f114 in i_stream_header_filter_read (stream=0x8093648) at istream-header-filter.c:285 mstream = 0x8093648 v_offset = 579050620660020672 ret = 134814560 #13 0xb765ef5c in i_stream_read (stream=0x8093678) at istream.c:115 _stream = 0x8093648 old_size = 0 ret = 0 __FUNCTION__ = i_stream_read #14 0xb763f398 in skip_header (mstream=0x8093648) at istream-header-filter.c:335 pos = 3077104436 #15 0xb763f48b in i_stream_header_filter_seek (stream=0x8093648, v_offset=1936, mark=false) at
Re: [Dovecot] dovecot-2.0.beta4: compiler gets stuck making master-service-settings.o Mac OS X 10.6.2
On 3 Apr, 2010, at 3:35 PM, Axel Luttgens wrote: Hello Giuliano, You may want to add flag -fno-reorder-blocks to line 121 of src/lib-master/Makefile: CFLAGS = -std=gnu99 -g -O2 -fno-reorder-blocks -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 then run make. [...] Thank you Axel! The Makefile mod worked. That was an experiment for me, I have then decided to compile and run 1.1.8 for this particular server as it is a production one, albeit just a fully backed up archive... Giuliano