[Dovecot] Dovecot 1.2 beta1 in Solaris 10 for sparc, error reading maildir format?
Greetings, i have installed dovecot 1.2beta1. I get an error like (in folders from squirrelmail):
-* ERROR: Connection terminated by IMAP SERVER".*Query: SELECT "INBOX" -* ERROR: Connection terminated by IMAP SERVER** *Query: STATUS "INBOX" (MESSAGES UNSEEN RECENT)
in syslog i get:
acamail dovecot: [ID 583609 mail.error] child 3322 (imap) killed with signal 10
In happens with all mail (from dovecot 1.1 maildir) and with new mail.
For example, i have deleted all the maildirs folders, then i sent two mails, the first one, i am able to read the first one from Sent Folder, but when i sent the second one, the Sent Folder give me an error (and it can't be readed):
*-ERROR: Connection terminated by IMAP SERVER* Query: SELECT "Enviados"
(Sent Folder)
The problem is the same with outlook express.
Is there some bug related with this version?.
I will try 1.2 beta 2 and let you know how it goes.
Greetings,
--
Andrés Fernando Yacopino
Infraestructura - Dpto Sistemas
AcaSalud
Cooperativa de Prestaciones Médico Asistenciales Limitada
Tel: 0341-4208726
ayacopino@acasalud.com.ar
On Mar 17, 2009, at 9:08 AM, Andrés Yacopino wrote:
acamail dovecot: [ID 583609 mail.error] child 3322 (imap) killed
with signal 10
Can you get gdb (or dbx) backtrace? http://dovecot.org/bugreport.html
I guess i have done well the debug, here it goes:
-bash-3.00# gdb /usr/local/libexec/dovecot/imap ./core GNU gdb 6.8 Copyright (C) 2008 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 "sparc-sun-solaris2.10"... Reading symbols from /usr/local/lib/libiconv.so.2...done. Loaded symbols for /usr/local/lib/libiconv.so.2 Reading symbols from /lib/librt.so.1...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libsocket.so.1...done. Loaded symbols for /lib/libsocket.so.1 Reading symbols from /lib/libsendfile.so.1...done. Loaded symbols for /lib/libsendfile.so.1 Reading symbols from /lib/libc.so.1...done. Loaded symbols for /lib/libc.so.1 Reading symbols from /usr/sfw/lib/libgcc_s.so.1...done. Loaded symbols for /usr/sfw/lib/libgcc_s.so.1 Reading symbols from /lib/libaio.so.1...done. Loaded symbols for /lib/libaio.so.1 Reading symbols from /lib/libmd.so.1...done. Loaded symbols for /lib/libmd.so.1 Reading symbols from /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1...done. Loaded symbols for /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1 Reading symbols from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Reading symbols from /lib/librpcsvc.so.1...done. Loaded symbols for /lib/librpcsvc.so.1 Reading symbols from /platform/SUNW,Sun-Fire-280R/lib/libmd_psr.so.1...done. Loaded symbols for /platform/SUNW,Sun-Fire-280R/lib/libmd_psr.so.1 Reading symbols from /lib/libscf.so.1...done. Loaded symbols for /lib/libscf.so.1 Reading symbols from /lib/libdoor.so.1...done. Loaded symbols for /lib/libdoor.so.1 Reading symbols from /lib/libuutil.so.1...done. Loaded symbols for /lib/libuutil.so.1 Reading symbols from /lib/libgen.so.1...done. Loaded symbols for /lib/libgen.so.1 Reading symbols from /lib/libmp.so.2...done. Loaded symbols for /lib/libmp.so.2 Reading symbols from /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Reading symbols from /lib/ld.so.1...done. Loaded symbols for /lib/ld.so.1 Core was generated by `imap [ayacopino 127.0.0.1]'. Program terminated with signal 10, Bus error. [New process 88850 ] #0 0x000a0384 in mail_index_map () (gdb) bt full #0 0x000a0384 in mail_index_map () No symbol table info available. #1 0x0009c07c in mail_index_try_open () No symbol table info available. #2 0x0009c45c in mail_index_open () No symbol table info available. #3 0x000819d0 in index_storage_mailbox_open () No symbol table info available. #4 0x00081e9c in index_storage_mailbox_init () No symbol table info available. #5 0x00042330 in maildir_open () No symbol table info available. #6 0x00042654 in maildir_mailbox_open () No symbol table info available. #7 0xfefbb06c in quota_mailbox_open () from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so No symbol table info available. #8 0x0008f710 in mailbox_open () No symbol table info available. #9 0x0002a74c in cmd_select_full () No symbol table info available. #10 0x0002ac70 in cmd_select () No symbol table info available. ---Type <return> to continue, or q <return> to quit--- #11 0x0002d744 in client_command_input () No symbol table info available. #12 0x0002d9b4 in client_command_input () No symbol table info available. #13 0x0002eae8 in client_handle_input () No symbol table info available. #14 0x0002ecc4 in client_input () No symbol table info available. #15 0x000efad0 in io_loop_handler_run () No symbol table info available. #16 0x000eee20 in io_loop_run () No symbol table info available. #17 0x0003a290 in main () No symbol table info available
Thanks, greetings,
Andrés Fernando Yacopino
Infraestructura - Dpto Sistemas
AcaSalud
Cooperativa de Prestaciones Médico Asistenciales Limitada
Tel: 0341-4208726
ayacopino@acasalud.com.ar
Timo Sirainen escribió:
On Mar 17, 2009, at 9:08 AM, Andrés Yacopino wrote:
acamail dovecot: [ID 583609 mail.error] child 3322 (imap) killed with signal 10
Can you get gdb (or dbx) backtrace? http://dovecot.org/bugreport.html
On Wed, 2009-03-18 at 13:38 -0300, Andrés Yacopino wrote:
I guess i have done well the debug, here it goes:
Almost.
#0 0x000a0384 in mail_index_map () (gdb) bt full #0 0x000a0384 in mail_index_map ()
This gives some kind of an idea, but still there's a lot of code that makes it difficult to guess where the problem is without debugging symbols. Especially because I'm using Dovecot with Solaris 10 Sparc without problems.
Could you compile Dovecot without -O2 (or whatever optimization flags if you're using Sun CC) and without stripping debugging symbols from the binaries? For example with gcc I'd do:
CFLAGS="-g" ./configure
Timo, well i have change this (to erase optimization flags):
CFLAGS='-xtarget=ultra3 -xarch=v8plusa -fast' to this: CFLAGS='-xtarget=ultra3 -xarch=v8plusa -pipe'
Then recompile everything (dovecot 1.2beta2 with dovecot-1.2.beta1-managesieve-0.11.3.diff.gz patch, dovecot-1.2-sieve-0.1.3 and dovecot-1.2-managesieve-0.11.3.(same versions as before)
Now it is working right, can it be something is this optimization flag (-fast) that it is breaking something.
Thanks,
Andres.
Andrés Fernando Yacopino
Timo Sirainen escribió:
On Wed, 2009-03-18 at 13:38 -0300, Andrés Yacopino wrote:
I guess i have done well the debug, here it goes:
Almost.
#0 0x000a0384 in mail_index_map () (gdb) bt full #0 0x000a0384 in mail_index_map ()
This gives some kind of an idea, but still there's a lot of code that makes it difficult to guess where the problem is without debugging symbols. Especially because I'm using Dovecot with Solaris 10 Sparc without problems.
Could you compile Dovecot without -O2 (or whatever optimization flags if you're using Sun CC) and without stripping debugging symbols from the binaries? For example with gcc I'd do:
CFLAGS="-g" ./configure
On Mar 25, 2009, at 10:05 AM, Andrés Yacopino wrote:
Timo, well i have change this (to erase optimization flags):
CFLAGS='-xtarget=ultra3 -xarch=v8plusa -fast' to this: CFLAGS='-xtarget=ultra3 -xarch=v8plusa -pipe'
Then recompile everything (dovecot 1.2beta2 with dovecot-1.2.beta1- managesieve-0.11.3.diff.gz patch, dovecot-1.2-sieve-0.1.3 and
dovecot-1.2-managesieve-0.11.3.(same versions as before)Now it is working right, can it be something is this optimization
flag (-fast) that it is breaking something.
It wouldn't be the first time when Sun CC's optimizer bug has broken
Dovecot. I guess it might even be the same bug.
On Mar 25, 2009, at 12:35 PM, Timo Sirainen wrote:
Timo, well i have change this (to erase optimization flags):
CFLAGS='-xtarget=ultra3 -xarch=v8plusa -fast' to this: CFLAGS='-xtarget=ultra3 -xarch=v8plusa -pipe'
Then recompile everything (dovecot 1.2beta2 with dovecot-1.2.beta1- managesieve-0.11.3.diff.gz patch, dovecot-1.2-sieve-0.1.3 and
dovecot-1.2-managesieve-0.11.3.(same versions as before)Now it is working right, can it be something is this optimization
flag (-fast) that it is breaking something.It wouldn't be the first time when Sun CC's optimizer bug has
broken Dovecot. I guess it might even be the same bug.
"-fast" is a macro option that expands to several optimization
flags, and the flags to which it expands are dependent upon the
version of the compiler. When something like this happens, it is
useful to obtain the expansion of -fast from the compiler
documentation and try the options individually, and determine which
one is breaking the compiled code.
-Dave
-- Dave McGuire Port Charlotte, FL
I have to say that i am using gccfss (Gcc for Solaris Sparc):
gcc --version sparc-sun-solaris2.10-gcc (GCC) 4.2.0 (gccfss) Copyright (C) 2007 Free Software Foundation, Inc.
Then i realized that i was missing some libraries for gccfss in my LDFLAGS like:
-L/usr/local/gccfs/gcc/lib/gcc/sparc-sun-solaris2.10/4.2.0 -R/usr/local/gccfs/gcc/lib/gcc/sparc-sun-solaris2.10/4.2.0 -L/usr/local/gccfss/SUNW0scgfss/4.2.0/prod/lib -R/usr/local/gccfss/SUNW0scgfss/4.2.0/prod/lib
And some enviroment variables:
SUNW_SCGFSS_PATH=/usr/local/gccfss/SUNW0scgfss export SUNW_SCGFSS_PATH
After putting then, dovecot isn't compiling any more.
So i will stick with standard gcc. Sorry for your time, Greetings
Andrés Fernando Yacopino
Infraestructura - Dpto Sistemas
AcaSalud
Cooperativa de Prestaciones Médico Asistenciales Limitada
Tel: 0341-4208726
ayacopino@acasalud.com.ar
Timo Sirainen escribió:
On Mar 25, 2009, at 10:05 AM, Andrés Yacopino wrote:
Timo, well i have change this (to erase optimization flags):
CFLAGS='-xtarget=ultra3 -xarch=v8plusa -fast' to this: CFLAGS='-xtarget=ultra3 -xarch=v8plusa -pipe'
Then recompile everything (dovecot 1.2beta2 with dovecot-1.2.beta1-managesieve-0.11.3.diff.gz patch, dovecot-1.2-sieve-0.1.3 and dovecot-1.2-managesieve-0.11.3.(same versions as before)
Now it is working right, can it be something is this optimization flag (-fast) that it is breaking something.
It wouldn't be the first time when Sun CC's optimizer bug has broken Dovecot. I guess it might even be the same bug.
participants (3)
-
Andrés Yacopino
-
Dave McGuire
-
Timo Sirainen