http://xi.rename-it.nl 2.2.16-1~auto+10/11/12/13: segfault /var/lib/dovecot/auth OR (db_ldap_connect_delayed):

2015-03-17 Thread Denny Fuchs
hi,

I testing around with Kolab with LDAP and have some strange problems, with the 
auto generated packages for Wheezy.

On my first test VM, I have 2:2.2.16~rc1-1~auto+4 installed, and everything 
works as expected. On  a new VM I have 2.2.16-1~auto+13_amd64.deb packages and 
if I include LDAP backend, I get a segmentation fault on /usr/lib/dovecot/auth:

root@kolab:/etc/dovecot/conf.d# /usr/lib/dovecot/auth
Segmentation fault

with auto+12 and auto+13

If I downgrade to auto+11 or auto+10 I get:

Mar 17 14:42:59 kolab dovecot: auth: Panic: file db-ldap.c: line 1228 
(db_ldap_connect_delayed): assertion failed: (conn->to == NULL)
Mar 17 14:42:59 kolab dovecot: auth: Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(+0x7b5ef) [0x7f57d815c5ef] -> 
/usr/lib/dovecot/libdovecot.so.0(+0x7b64e) [0x7f57d815c64e] -> 
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f57d810b0d5] -> 
/usr/lib/dovecot/modules/auth/libauthdb_ldap.so(+0x5455) [0x7f57d70e2455] -> 
dovecot/auth(userdb_init+0x1a) [0x42765a] -> dovecot/auth(auths_init+0xc9) 
[0x40d979] -> dovecot/auth(main+0x2b5) [0x40cc85] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f57d7523ead] -> 
dovecot/auth() [0x40cee9]
Mar 17 14:42:59 kolab dovecot: auth: Fatal: master: service(auth): child 1161 
killed with signal 6 (core dumps disabled)
Mar 17 14:42:59 kolab dovecot: master: Error: service(auth): command startup 
failed, throttling for 2 secs
Mar 17 14:42:59 kolab dovecot: pop3-login: Disconnected: Auth process broken 
(disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, 
secured, session=<1QMUJXwRTQAB>

ii  dovecot-sieve  2:2.2.16~rc1-1~auto+4 amd64  
  secure POP3/IMAP server - Sieve filters support
root@kolab:/# ldd /usr/lib/dovecot/modules/auth/libauthdb_ldap.so
linux-vdso.so.1 =>  (0x7ffc4a1c6000)
libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 
(0x7effe2d1a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7effe2b12000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7effe2786000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 
(0x7effe2577000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 
(0x7effe2361000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 
(0x7effe2145000)
libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 
(0x7effe1e85000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 
(0x7effe1c06000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7effe19e9000)
/lib64/ld-linux-x86-64.so.2 (0x7effe318)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7effe17e5000)
libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 
(0x7effe15d3000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7effe13bc000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 
(0x7effe11aa000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 
(0x7effe0fa6000)


Then I copied from my first VM the libauthdb_ldap.so file on the new test VM to 
/usr/lib/dovecot/modules/auth/libauthdb_ldap.so (remember: ~rc1-1~auto+4) and 
the result:

root@kolab:/etc/dovecot/conf.d# /usr/lib/dovecot/auth
Error: LDAP: binding failed (dn cn=Directory Manager): Invalid credentials

and, it works again ...

linux-vdso.so.1 =>  (0x7fffa00c6000)
libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 
(0x7f94b7ec3000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f94b7cbb000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f94b792f000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 
(0x7f94b772)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 
(0x7f94b750a000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 
(0x7f94b72ee000)
libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 
(0x7f94b702e000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 
(0x7f94b6daf000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7f94b6b92000)
/lib64/ld-linux-x86-64.so.2 (0x7f94b8328000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f94b698e000)
libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 
(0x7f94b677c000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x7f94b6565000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 
(0x7f94b6353000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 
(0x7f94b614f000)


So, it seems, that there is something broken with the autogenerated packages, 
or with my fresh installed Wheey VM (KVM AMD64) in combination with LDAP.

any suggestions?

cu denny



signature.asc
Description: Message s

[Dovecot] Compile Metadata for 2.2.9

2014-03-14 Thread Denny Fuchs
hi,

I use Debian Wheezy backports for Dovecot  and I want to compile the latest 
metadata plugin, but it fails:

the metadata plugin was downloaded via: 
http://hg.dovecot.org/dovecot-metadata-plugin/archive/tip.tar.gz

root@build:~/dovecot-metadata-plugin-b6df1381bb79# ./configure 
--with-dovecot=/usr/lib/dovecot/  && make

[...]
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H 
-I. -I..   -I/usr/include/dovecot -g -O2 -MT imap-metadata-plugin.lo -MD 
-MP -MF .deps/imap-metadata-plugin.Tpo -c -o imap-metadata-plugin.lo 
imap-metadata-plugin.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. 
-I/usr/include/dovecot -g -O2 -MT imap-metadata-plugin.lo -MD -MP -MF 
.deps/imap-metadata-plugin.Tpo -c imap-metadata-plugin.c  -fPIC -DPIC -o 
.libs/imap-metadata-plugin.o
imap-metadata-plugin.c:452:1: error: static declaration of 'cmd_getmetadata' 
follows non-static declaration
In file included from /usr/include/dovecot/imap-client.h:4:0,
 from /usr/include/dovecot/imap-common.h:17,
 from imap-metadata-plugin.c:21:
/usr/include/dovecot/imap-commands.h:110:6: note: previous declaration of 
'cmd_getmetadata' was here
imap-metadata-plugin.c:743:1: error: static declaration of 'cmd_setmetadata' 
follows non-static declaration
In file included from /usr/include/dovecot/imap-client.h:4:0,
 from /usr/include/dovecot/imap-common.h:17,
 from imap-metadata-plugin.c:21:
/usr/include/dovecot/imap-commands.h:111:6: note: previous declaration of 
'cmd_setmetadata' was here
make[2]: *** [imap-metadata-plugin.lo] Error 1
make[2]: Leaving directory `/root/dovecot-metadata-plugin-b6df1381bb79/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-metadata-plugin-b6df1381bb79'
make: *** [all] Error 2

I tried also hg clone ..., but got the same ...

Do I need Dovecot 2.2.10 to compile successful ?

cu denny


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Dovecot] Compile Metadata for 2.2.9

2014-03-15 Thread Denny Fuchs
hi,

Am 14.03.2014 um 21:49 schrieb Andreas Schulze :
> 
> if depends on your needs. dovecot support IMAP METADATA Extension (RFC 5464) 
> out of the box.
> at least I do not need a separate source package anymore.

I want to test a Kolab setup, first for private use, later also in the 
university

> I have this with dovecot-2.2.12:
> 
> --- snip
> imap_metadata = yes
> mail_attribute_dict = file:Maildir/dovecot-metadata
> --- snap

I thought, it is plugin, so I tried to find it on the disk ... but nothing 
found on the Debian (regular Wheezy packages)


cu denny


signature.asc
Description: Message signed with OpenPGP using GPGMail