Cyrus 2.1 fubar - crashes when attempts to login

JB Hewit johnblade at gmail.com
Sat Apr 2 02:56:23 EST 2005


I've been doing some more work on trying to figure out what the
problem is...  I recompiled cyrus with debugging support and did some
debugging with editing the /etc/imapd.conf to excute gdb, strace, and
ltrace....

gdb trace is: 
[05:52 PM] soapbox:/tmp# less gdb-backtrace.cyrus.imapd.22506 
Using host libthread_db library "/lib/tls/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
0xb7d5e4b8 in select () from /lib/tls/libc.so.6

Program received signal SIGSEGV, Segmentation fault.
0xb7b812f3 in ?? ()
#0  0xb7b812f3 in ?? ()
#1  0xb7c912fc in ?? () from /lib/tls/libc.so.6
#2  0xb7b86890 in ?? ()
....
#20 0x00000068 in ?? ()
#21 0xb7dbdc60 in ?? () from /lib/tls/libc.so.6
#22 0xb7dbe620 in __after_morecore_hook () from /lib/tls/libc.so.6
#23 0x00000001 in ?? ()
#24 0xbfffde34 in ?? ()
#25 0xb7cfe8c3 in malloc () from /lib/tls/libc.so.6
/usr/lib/cyrus/get-backtrace.gdb:2: Error in sourced command file:
Previous frame inner to this frame (corrupt stack?)

strace is:
17:07:52.061355 select(1, [0], NULL, NULL, {1799, 998000}) = 1 (in
[0], left {1793, 552000})
17:07:58.506206 time(NULL)              = 1112425678
17:07:58.506286 read(0, "01 login paul paul00-\r\n", 4096) = 23
17:07:58.506596 socket(PF_FILE, SOCK_STREAM, 0) = 9
17:07:58.506706 connect(9, {sa_family=AF_FILE,
path="/var/run/saslauthd/mux"}, 110) = 0
17:07:58.507003 writev(9, [{"\0\4paul\0\7paul00-\0\4imap\0\0", 23}], 1) = 23
17:07:58.507120 read(9, "\0\2", 2)      = 2
17:07:58.518532 read(9, "OK", 2)        = 2
17:07:58.518642 close(9)                = 0
17:07:58.518762 socket(PF_FILE, SOCK_STREAM, 0) = 9
17:07:58.518845 connect(9, {sa_family=AF_FILE,
path="/var/run/.nscd_socket"}, 110) = 0
17:07:58.519067 writev(9, [{"\2\0\0\0\0\0\0\0\5\0\0\0", 12},
{"paul\0", 5}], 2) = 17
17:07:58.519223 read(9,
"\2\0\0\0\1\0\0\0\5\0\0\0\2\0\0\0\357\3\0\0\356\3\0\0\f"..., 36) = 36
17:07:58.519324 read(9, "paul\0x\0Paul Sheehy\0/home/paul\0un"..., 43) = 43
17:07:58.519397 close(9)                = 0
17:07:58.519506 open("/etc/nsswitch.conf", O_RDONLY) = 9
17:07:58.519598 fstat64(9, {st_mode=S_IFREG|0644, st_size=1834, ...}) = 0
17:07:58.519709 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU
S, -1, 0) = 0xb7c83000
17:07:58.519784 read(9, "#\n# Please refer to nsswitch.con"..., 4096) = 1834
17:07:58.519996 read(9, "", 4096)       = 0
17:07:58.520059 close(9)                = 0
17:07:58.520113 munmap(0xb7c83000, 4096) = 0
17:07:58.520223 open("/etc/ld.so.cache", O_RDONLY) = 9
17:07:58.520303 fstat64(9, {st_mode=S_IFREG|0644, st_size=31175, ...}) = 0
17:07:58.520403 old_mmap(NULL, 31175, PROT_READ, MAP_PRIVATE, 9, 0) =
0xb7ba300017:07:58.520502 close(9)                = 0
17:07:58.520562 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.520673 open("/lib/tls/libnss_files.so.2", O_RDONLY) = 9
17:07:58.520761 read(9,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\35"..., 512) =
512
17:07:58.520876 fstat64(9, {st_mode=S_IFREG|0644, st_size=34748, ...}) = 0
17:07:58.521005 old_mmap(NULL, 38044, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 9, 0) = 0xb7b99000
17:07:58.521092 old_mmap(0xb7ba2000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 9, 0x8000) = 0xb7ba2000
17:07:58.521215 close(9) 
17:07:58.521401 munmap(0xb7ba3000, 31175) = 0
17:07:58.521499 open("/etc/group", O_RDONLY) = 9
17:07:58.521599 fcntl64(9, F_GETFD)     = 0
17:07:58.521657 fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
17:07:58.521725 fstat64(9, {st_mode=S_IFREG|0644, st_size=696, ...}) = 0
17:07:58.521826 mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7baa000
17:07:58.521920 _llseek(9, 0, [0], SEEK_CUR) = 0
17:07:58.522030 read(9, "root:x:0:\ndaemon:x:1:\nbin:x:2:\ns"..., 4096) = 696
17:07:58.522341 read(9, "", 4096)       = 0
17:07:58.522419 open("/etc/ld.so.cache", O_RDONLY) = 10
17:07:58.522496 fstat64(10, {st_mode=S_IFREG|0644, st_size=31175, ...}) = 0
17:07:58.522596 old_mmap(NULL, 31175, PROT_READ, MAP_PRIVATE, 10, 0) =
0xb7b91000
17:07:58.522677 close(10)               = 0
17:07:58.522736 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.522826 open("/lib/libnss_ldap.so.2", O_RDONLY) = 10
17:07:58.522933 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200%\0"..., 512) =
512
17:07:58.523045 fstat64(10, {st_mode=S_IFREG|0644, st_size=57116, ...}) = 0
17:07:58.523164 old_mmap(NULL, 101440, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7b78000
17:07:58.523252 old_mmap(0xb7b86000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0xd000) = 0xb7b86000
17:07:58.523378 old_mmap(0xb7b87000, 40000, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b87000
17:07:58.523465 close(10)               = 0
17:07:58.523540 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.523620 open("/usr/lib/libldap.so.2", O_RDONLY) = 10
17:07:58.523713 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \220\0"..., 512) =
512
17:07:58.523831 fstat64(10, {st_mode=S_IFREG|0644, st_size=209400, ...}) = 0
17:07:58.523954 old_mmap(NULL, 212520, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7b44000
17:07:58.524065 old_mmap(0xb7b77000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0x32000) = 0xb7b77000
17:07:58.524183 close(10)               = 0
17:07:58.524258 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.524337 open("/usr/lib/liblber.so.2", O_RDONLY) = 10
17:07:58.524423 read(10, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340%\0
"..., 512) = 512
17:07:58.524536 fstat64(10, {st_mode=S_IFREG|0644, st_size=47312, ...}) = 0
17:07:58.524639 old_mmap(NULL, 50512, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7b37000
17:07:58.524724 old_mmap(0xb7b43000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0xb000) = 0xb7b43000
17:07:58.524847 close(10)               = 0
17:07:58.524937 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.525020 open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 10
17:07:58.525114 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340M\0"..., 512) =
512
17:07:58.525230 fstat64(10, {st_mode=S_IFREG|0644, st_size=82252, ...}) = 0
17:07:58.525334 old_mmap(NULL, 85324, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7b22000
17:07:58.525420 old_mmap(0xb7b36000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0x13000) = 0xb7b36000
17:07:58.525537 close(10)               = 0
17:07:58.525642 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.525725 open("/lib/tls/libcrypt.so.1", O_RDONLY) = 10
17:07:58.525815 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\t\0"..., 512) =
512
17:07:58.526018 fstat64(10, {st_mode=S_IFREG|0644, st_size=18876, ...}) = 0
17:07:58.526126 old_mmap(NULL, 181692, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7af5000
17:07:58.526215 old_mmap(0xb7afa000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0x4000) = 0xb7afa000
17:07:58.526343 old_mmap(0xb7afb000, 157116, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7afb000
17:07:58.526430 close(10)               = 0
17:07:58.526513 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.526596 open("/usr/lib/libgnutls.so.11", O_RDONLY) = 10
17:07:58.526687 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\25\1"..., 512) =
512
17:07:58.526804 fstat64(10, {st_mode=S_IFREG|0644, st_size=415076, ...}) = 0
17:07:58.526925 old_mmap(NULL, 413976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 10, 0) 
= 0xb7a8f000
17:07:58.527010 old_mmap(0xb7aef000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0x60000) = 0xb7aef000
17:07:58.527128 close(10)               = 0
17:07:58.527245 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.527328 open("/usr/lib/libkrb5.so.3", O_RDONLY) = 10
17:07:58.527424 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\372"..., 512) =
512
17:07:58.527538 fstat64(10, {st_mode=S_IFREG|0644, st_size=425800, ...}) = 0
17:07:58.527658 old_mmap(NULL, 425224, PROT_READ|PROT_EXEC,
MAP_PRIVATE, 10, 0) = 0xb7a27000
17:07:58.527746 old_mmap(0xb7a8d000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 10, 0x66000) = 0xb7a8d000
17:07:58.527863 close(10)               = 0
17:07:58.527992 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
17:07:58.528074 open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 10
17:07:58.528166 read(10,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2205\0"..., 512) =
512
17:07:58.528285 fstat64(10, {st_mode=S_IFREG|0644, st_size=138664, ...}) = 0
17:07:58.528392 old_mmap(NULL, 138688, PROT_READ|PROT_EXEC, MAP_PRIVATE, 10, 0) 
....... etc etc

any idea's?  I'm tearing my hair out...

--
Regards,
      JB Hewitt
Business: http://www.stcpl.com.au
Blog: http://blade.lansmash.com
Best LAN ever: http://www.lansmash.com
How to ask a ?: http://www.catb.org/~esr/faqs/smart-questions.html
---
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