Cyrus master Segmentation fault

Ramiro Morales rm-rpms at gmx.net
Tue Apr 27 09:22:22 EDT 2004


Hi,

On 27 Apr 2004 at 11:46, sol luna wrote about "Cyrus master Segmentation fault":

> 
> 
> Hi,
> 
> I have been trying to install Cyrus IMAP on a Debian
> GNU/Linux 3.0r2 (Woody).
> When I am running Cyrus IMAP master, there is a Segmentation
> fault.
> 
> 
> I configured and compiled Berkeley DB 4.1.25 as follows:
> export LDFLAGS="-lpthread"
> ./configure --prefix=/usr/local/berkeleydb-4.1.25 --with-gnu-ld
> make
> make install
> ln -sf /usr/local/berkeleydb-4.1.25 /usr/local/berkeleydb
> 
> 
> Then I configured and compiled OpenSSL 0.9.7d as follows:
> ./config --prefix=/usr/local/openssl-0.9.7d
> --openssldir=/usr/local/openssl-0.9.7d
> make
> make test
> make install
> ln -sf /usr/local/openssl-0.9.7d /usr/local/openssl
> 
> 
> Then I configured and compiled Cyrus SASL 2.1.18 as follows:
> export CPPFLAGS="-I/usr/local/berkeleydb/include
> -I/usr/local/openssl/include"
> export LDFLAGS="-L/usr/local/berkeleydb/lib
> -L/usr/local/openssl/lib"
> ./configure --prefix=/usr/local/cyrus-sasl-2.1.18
> --exec-prefix=/usr/local/cyrus-sasl-2.1.18 --with-gnu-ld 
> --enable-java --with-javabase=/usr/local/java/include
> --with-dbpath=/usr/local/sasldb2 --with-dblib=berkeley 
> --with-bdb-libdir=/usr/local/berkeleydb/lib
> --with-bdb-incdir=/usr/local/berkeleydb/include
> --with-saslauthd 
> --with-pwcheck --with-openssl=/usr/local/openssl --enable-login
> make
> make install
> ln -sf /usr/local/cyrus-sasl-2.1.18 /usr/local/cyrus-sasl
> 
> 
> Then I configured and compiled Cyrus IMAP 2.2.3 as follows:
> export CPPFLAGS="-I/usr/local/berkeleydb/include
> -I/usr/local/openssl/include 
> -I/usr/local/cyrus-sasl/include/sasl"
> export LDFLAGS="-L/usr/local/berkeleydb/lib
> -L/usr/local/openssl/lib
> -L/usr/local/cyrus-sasl/lib/sasl2"
> ./configure --prefix=/usr/local/cyrus-imapd-2.2.3
> --exec-prefix=/usr/local/cyrus-imapd-2.2.3 
> --with-cyrus-prefix=/usr/local/cyrus-imapd-2.2.3
> --with-cyrus-user=cyrus
> --with-cyrus-group=mail 
> --with-dbdir=/usr/local/berkeleydb --with-perl=/usr/bin/perl
> --with-auth=unix 
> --with-openssl=/usr/local/openssl
> --with-sasl=/usr/local/cyrus-sasl
> make depend
> make all CFLAGS=-O
> make install
> ln -sf /usr/local/cyrus-imapd-2.2.3 /usr/local/cyrus
> 
> Everything seemed to go fine, but when I am running Cyrus
> IMAP master, there is
> a Segmentation fault.
> 
> gdb gives:
> (gdb) r
> Starting program: /usr/local/cyrus/bin/master
> Program received signal SIGSEGV, Segmentation fault.
> 0x0805f8a7 in ?? ()
> 
> (gdb) where
> #0  0x0805f8a7 in ?? ()
> #1  0x401eb9e0 in _nss_db_getspnam_r () from /lib/libnss_db.so.2
> #2  0x401eb11e in _nss_db_endservent () from /lib/libnss_db.so.2
> #3  0x401eb3b3 in _nss_db_getservbyname_r () from
> /lib/libnss_db.so.2
> #4  0x401aba83 in getservbyname_r () from /lib/libc.so.6
> #5  0x401864d3 in sched_rr_get_interval () from /lib/libc.so.6
> #6  0x4018661d in sched_rr_get_interval () from /lib/libc.so.6
> #7  0x401874dd in getaddrinfo () from /lib/libc.so.6
> #8  0x08049daa in service_create ()
> #9  0x0804c92e in main ()
> #10 0x400e414f in __libc_start_main () from /lib/libc.so.6
> 
> 
> /var/log/syslog gives:
> Apr 27 11:18:04 roxanne master[29951]: setrlimit: Unable to
> set file descriptors
> limit to -1: Operation not 
> permitted
> Apr 27 11:18:04 roxanne master[29951]: retrying with 1024
> (current max)
> Apr 27 11:18:04 roxanne master[29951]: process started
> Apr 27 11:18:04 roxanne master[29952]: about to exec
> /usr/local/cyrus-imapd-2.2.3/bin/ctl_cyrusdb
> Apr 27 11:18:04 roxanne ctl_cyrusdb[29952]: recovering cyrus
> databases
> Apr 27 11:18:04 roxanne ctl_cyrusdb[29952]: skiplist: recovered
> /var/imap/mailboxes.db (0 records, 144 
> bytes) in 0 seconds
> Apr 27 11:18:04 roxanne ctl_cyrusdb[29952]: done recovering
> cyrus databases
> 
> I red a similar problem in the list:
> http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&ms
> g=28572 But it seems to not be solved.
> 
> Any ideas or clues for this problem ?
> 
> Thanks a lot!
> 
> Hélène

Is using Cyrus 2.2.x a requeriment?.

If the answer is no you can try to use the excellent backport
of the excellent 2.1.x (currently available version is 2.1.15) 
Debian .deb packages to Woody maintained by Henrique de Moraes
Holschuhat


 http://people.debian.org/~hmh/

and save youself some headaches.

Regards,

-
 Ramiro


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list