Mailing List Archive

dbmail-3.2.1 3 problems with dbmail-imapd
Hi.

I Try to install dbmail-3.2.1 on test mailserver.

Please help to resolve 3 troubles.
Is this centos problems or dbmail bugs?

All three troubles present in dbmail-3.2.1, dbmail-3.2.0 and dbmail-3.1.17.

I have server with dbmail-2.2.12 on CentOS 5 x86_64 - this server works
properly.
(without second and third troubles).



OS - Centos 7 x86_64 (minimal) + all needed for dbmail software (only
epel repo)
mhash - 0.9.9.9 compile from source (sourceforge).


dbmail-3.2.1 from source
../configure --prefix=/opt/dbmail-3.2.1 --with-zdb=/usr --with-sieve
--with-pic --with-check --with-jemalloc=/usr
make

I have 3 troubles:


(1)First:

make check

Dbmail Imap
94%: Checks: 17, Failures: 1, Errors: 0


Running suite(s): Dbmail Common
100%: Checks: 3, Failures: 0, Errors: 0
PASS: check_dbmail_common
Running suite(s): Dbmail Server
100%: Checks: 2, Failures: 0, Errors: 0
PASS: check_dbmail_server
Running suite(s): Dbmail Delivery
100%: Checks: 34, Failures: 0, Errors: 0
PASS: check_dbmail_deliver
Running suite(s): Dbmail Imap
94%: Checks: 17, Failures: 1, Errors: 0
check_dbmail_imapd.c:448:F:ImapSession:test_imap_get_envelope_koi:0:
encode/decode/encode loop failed
[.("Thu, 01 Jan 1970 00:00:00 +0000" "test"
(("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru"))
(("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru"))
(("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru")) ((NIL NIL
"nobody" "foo.ru")) NIL NIL NIL NIL)] !=
[.("Thu, 01 Jan 1970 00:00:00 +0000" "test"
(("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru"))
(("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru"))
(("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru")) ((NIL NIL
"nobody" "foo.ru")) NIL NIL NIL NIL)]
FAIL: check_dbmail_imapd
Running suite(s): Dbmail Message
100%: Checks: 25, Failures: 0, Errors: 0
PASS: check_dbmail_message
Running suite(s): Dbmail Mailbox
100%: Checks: 10, Failures: 0, Errors: 0
PASS: check_dbmail_mailbox
Running suite(s): Dbmail MailboxState
100%: Checks: 3, Failures: 0, Errors: 0
PASS: check_dbmail_mailboxstate
Running suite(s): Dbmail Auth
100%: Checks: 2, Failures: 0, Errors: 0
PASS: check_dbmail_auth
Running suite(s): Dbmail Misc
100%: Checks: 20, Failures: 0, Errors: 0
PASS: check_dbmail_misc
Running suite(s): Dbmail List
100%: Checks: 11, Failures: 0, Errors: 0
PASS: check_dbmail_list
Running suite(s): Dbmail Mempool
100%: Checks: 3, Failures: 0, Errors: 0
PASS: check_dbmail_mempool
Running suite(s): Dbmail User
testadduser:x:11:0:0.00:0.00:
testfailuser:x:8:0:0.00:0.00:
100%: Checks: 6, Failures: 0, Errors: 0
PASS: check_dbmail_user
Running suite(s): Dbmail Util
100%: Checks: 2, Failures: 0, Errors: 0
PASS: check_dbmail_util
Running suite(s): Dbmail User Resolution and DSN Functions
100%: Checks: 10, Failures: 0, Errors: 0
PASS: check_dbmail_dsn
Running suite(s): Dbmail Capa
100%: Checks: 4, Failures: 0, Errors: 0
PASS: check_dbmail_capa
Running suite(s): Dbmail Sset
100%: Checks: 7, Failures: 0, Errors: 0
PASS: check_dbmail_sset
Running suite(s): Dbmail String
100%: Checks: 9, Failures: 0, Errors: 0
PASS: check_dbmail_string
Running suite(s): Dbmail Basic Database Functions
100%: Checks: 11, Failures: 0, Errors: 0
PASS: check_dbmail_db
==================================
1 of 18 tests failed
Please report to dbmail@dbmail.org
==================================


(2)Second:
Sometimes dbmail-imapd crashed with message:
(some clients try reload informaition)
kernel: pool[18542]: segfault at 38 ip 000000000041552d sp
00007f06f9ffad80 error 6 in dbmail-imapd[400000+7b000]


(3)Third:
I try add user with '-p md5-hash' option

dbmail-users -a tesuser@example.com -s tesuser@example.com -w 12345 -p
md5-hash

Then connect to imap, dbmail-imapd crashed with message

kernel: pool[1009]: segfault at 8 ip 00007f17537287e1 sp
00007f1747ffe168 error 4 in libc-2.17.so[7f17536a2000+1b6000]


_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: dbmail-3.2.1 3 problems with dbmail-imapd [ In reply to ]
On 18-11-14 12:38, Anatoly wrote:

> 94%: Checks: 17, Failures: 1, Errors: 0
> check_dbmail_imapd.c:448:F:ImapSession:test_imap_get_envelope_koi:0:
> encode/decode/encode loop failed
> [.("Thu, 01 Jan 1970 00:00:00 +0000" "test"
> (("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru"))
> (("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru"))
> (("=?koi8-r?b?4c7Uz84g7sXIz9LP28nI?=" NIL "bad" "foo.ru")) ((NIL NIL
> "nobody" "foo.ru")) NIL NIL NIL NIL)] !=
> [.("Thu, 01 Jan 1970 00:00:00 +0000" "test"
> (("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru"))
> (("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru"))
> (("=?iso-8859-5?b?sN3i3t0gvdXl3uDe6Njl?=" NIL "bad" "foo.ru")) ((NIL NIL
> "nobody" "foo.ru")) NIL NIL NIL NIL)]

I think you can safely ignore that one. Looks like that test should be
updated to accept both iso-8859-5 of koi8-r encoded results. Not sure
why my systems always return 8859-5 though...


> (2)Second:
> Sometimes dbmail-imapd crashed with message:
> (some clients try reload informaition)
> kernel: pool[18542]: segfault at 38 ip 000000000041552d sp
> 00007f06f9ffad80 error 6 in dbmail-imapd[400000+7b000]

I've seen more reports like this (horde?). I'd love to see the IMAP
command that triggers this, or a GDB backtrace.

> (3)Third:
> I try add user with '-p md5-hash' option
>
> dbmail-users -a tesuser@example.com -s tesuser@example.com -w 12345 -p
> md5-hash
>
> Then connect to imap, dbmail-imapd crashed with message
>
> kernel: pool[1009]: segfault at 8 ip 00007f17537287e1 sp
> 00007f1747ffe168 error 4 in libc-2.17.so[7f17536a2000+1b6000]

Works for me. But it should be real easy to provide a gdb backtrace for
this one.



--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail