PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Cyrus starten



richy19
20.08.02, 11:15
Hallo Leute,

ich habe endlich den Cyrus Imap kompiliert bekommen, allerdings habe ich nun folgendes Problem, wenn ich /usr/cyrus/bin/master starte, erhalte ich immer einen Segmentation Fault.

Hier der Auszug aus /var/log/syslog

snip


Aug 20 11:07:51 testserver master: setrlimit: Unable to set file descriptors limit to -1: Operation not permitted
Aug 20 11:07:55 testserver master: setrlimit: Unable to set file descriptors limit to -1: Operation not permitted
Aug 20 11:09:02 testserver last message repeated 2 times
Aug 20 11:10:05 testserver master: setrlimit: Unable to set file descriptors limit to -1: Operation not permitted

snap


Hat jemand dafür eine erklärung?

schnebeck
20.08.02, 22:29
master läuft unter dem User "cyrus", der eingeschränkte Rechte hat, kontrolliere noch mal genau nach Anleitung die Arbeitsverzeichnisse von Cyrus (/var/spool/cyrus)

starte Master mal mit einem "strace -tt /usr/cyrus/bin/master"
Du erhältst kilometerlange Meldungen von den Systemlibs. Vielleicht kannst du vor dem Segfault im Trace-Log erkennen, dass eine wichtige Dateioperation nicht erfolgen kann?

Bye

Thorsten

richy19
21.08.02, 08:13
Hallo,
ich habe das mit dem strace mal gemacht und habe folgende meldungen bekommen:

root@testserver:/usr/cyrus/bin# strace -tt /usr/cyrus/bin/master
08:10:34.186062 execve("/usr/cyrus/bin/master", ["/usr/cyrus/bin/master"], [/* 30 vars */]) = 0
08:10:34.191935 brk(0) = 0x8057440
08:10:34.193041 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
08:10:34.194926 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.196089 open("/usr/local/lib/i586/mmx/libssl.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.197613 stat64(0xbfffed8c, 0xbfffedf4) = -1 ENOENT (No such file or directory)
08:10:34.198420 open("/usr/local/lib/i586/libssl.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.199253 stat64(0xbfffed8c, 0xbfffedf4) = -1 ENOENT (No such file or directory)
08:10:34.200681 open("/usr/local/lib/mmx/libssl.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.201597 stat64(0xbfffed8c, 0xbfffedf4) = -1 ENOENT (No such file or directory)
08:10:34.202368 open("/usr/local/lib/libssl.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.203816 stat64(0xbfffed8c, 0xbfffedf4) = 0
08:10:34.204618 open("/etc/ld.so.cache", O_RDONLY) = 3
08:10:34.205449 fstat64(0x3, 0xbfffeda4) = 0
08:10:34.206172 old_mmap(NULL, 19601, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
08:10:34.207624 close(3) = 0
08:10:34.208535 open("/usr/lib/libssl.so.0", O_RDONLY) = 3
08:10:34.209518 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 7\2\000"..., 1024) = 1024
08:10:34.210800 fstat64(0x3, 0xbfffedec) = 0
08:10:34.211598 old_mmap(NULL, 741628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000
08:10:34.213080 mprotect(0x400c2000, 61692, PROT_NONE) = 0
08:10:34.213842 old_mmap(0x400c2000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa5000) = 0x400c2000
08:10:34.215052 old_mmap(0x400ce000, 12540, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400ce000
08:10:34.216661 close(3) = 0
08:10:34.217910 open("/usr/local/lib/libcrypto.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.218892 open("/usr/lib/libcrypto.so.0", O_RDONLY) = 3
08:10:34.219856 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30 05\2"..., 1024) = 1024
08:10:34.221585 fstat64(0x3, 0xbfffeddc) = 0
08:10:34.222405 old_mmap(NULL, 782372, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400d2000
08:10:34.223251 mprotect(0x40184000, 53284, PROT_NONE) = 0
08:10:34.223992 old_mmap(0x40184000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb1000) = 0x40184000
08:10:34.225721 old_mmap(0x4018e000, 12324, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018e000
08:10:34.226644 close(3) = 0
08:10:34.228118 open("/usr/local/lib/libdb-4.0.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.229079 open("/usr/lib/libdb-4.0.so", O_RDONLY) = 3
08:10:34.229916 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\3 17\0"..., 1024) = 1024
08:10:34.231527 fstat64(0x3, 0xbfffedcc) = 0
08:10:34.232330 old_mmap(NULL, 546540, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40192000
08:10:34.233176 mprotect(0x40216000, 5868, PROT_NONE) = 0
08:10:34.233915 old_mmap(0x40216000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x83000) = 0x40216000
08:10:34.235712 close(3) = 0
08:10:34.236562 open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.238049 open("/lib/libresolv.so.2", O_RDONLY) = 3
08:10:34.238900 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\36 0,\0"..., 1024) = 1024
08:10:34.239961 fstat64(0x3, 0xbfffedbc) = 0
08:10:34.240751 old_mmap(NULL, 68228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40218000
08:10:34.242295 mprotect(0x40225000, 14980, PROT_NONE) = 0
08:10:34.243050 old_mmap(0x40225000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xc000) = 0x40225000
08:10:34.244308 old_mmap(0x40227000, 6788, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40227000
08:10:34.245810 close(3) = 0
08:10:34.246629 open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.247610 open("/lib/libc.so.6", O_RDONLY) = 3
08:10:34.248437 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\26 4\323"..., 1024) = 1024
08:10:34.250182 fstat64(0x3, 0xbfffedac) = 0
08:10:34.251007 old_mmap(NULL, 1116516, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40229000
08:10:34.251859 mprotect(0x40330000, 39268, PROT_NONE) = 0
08:10:34.252600 old_mmap(0x40330000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x106000) = 0x40330000
08:10:34.254410 old_mmap(0x40336000, 14692, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40336000
08:10:34.255349 close(3) = 0
08:10:34.256169 open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.257785 open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:34.258684 open("/lib/libdl.so.2", O_RDONLY) = 3
08:10:34.259504 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\36 4\36"..., 1024) = 1024
08:10:34.260559 fstat64(0x3, 0xbfffed3c) = 0
08:10:34.261942 old_mmap(NULL, 13296, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4033a000
08:10:34.262810 mprotect(0x4033d000, 1008, PROT_NONE) = 0
08:10:34.263550 old_mmap(0x4033d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x4033d000
08:10:34.265325 close(3) = 0
08:10:34.266426 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4033e000
08:10:34.279801 mprotect(0x400d2000, 729088, PROT_READ|PROT_WRITE) = 0
08:10:34.291079 mprotect(0x400d2000, 729088, PROT_READ|PROT_EXEC) = 0
08:10:34.291973 mprotect(0x4001c000, 679936, PROT_READ|PROT_WRITE) = 0
08:10:34.301557 mprotect(0x4001c000, 679936, PROT_READ|PROT_EXEC) = 0
08:10:34.303883 munmap(0x40017000, 19601) = 0
08:10:34.305246 getpid() = 19791
08:10:34.310878 close(0) = 0
08:10:34.311720 open("/dev/null", O_RDWR) = 0
08:10:34.312571 close(1) = 0
08:10:34.313274 open("/dev/null", O_RDWR) = 1
08:10:34.314064 close(2) = 0
08:10:34.314764 open("/dev/null", O_RDWR) = 2
08:10:34.316223 close(3) = -1 EBADF (Bad file descriptor)
08:10:34.317630 dup(0) = 3
08:10:34.318392 close(4) = -1 EBADF (Bad file descriptor)
08:10:34.319086 dup(0) = 4
08:10:34.319879 getrlimit(0x7, 0xbffff8d4, 0x4, 0xffffffff, 0x7) = 0
08:10:34.320630 setrlimit(RLIMIT_NOFILE, {rlim_cur=-1, rlim_max=-1}) = -1 EPERM (Operation not permitted)
08:10:34.322463 brk(0) = 0x8057440
08:10:34.323245 brk(0x80575d0) = 0x80575d0
08:10:34.323963 brk(0x8058000) = 0x8058000
08:10:34.324705 brk(0x805b000) = 0x805b000
08:10:34.325976 time([1029910234]) = 1029910234
08:10:34.327780 open("/etc/localtime", O_RDONLY) = 5
08:10:34.328898 fstat64(0x5, 0xbffff41c) = 0
08:10:34.329695 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
08:10:34.330696 read(5, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\ 0\10"..., 4096) = 837
08:10:34.332940 close(5) = 0
08:10:34.333719 munmap(0x40017000, 4096) = 0
08:10:34.335575 rt_sigaction(SIGPIPE, {0x402f14f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
08:10:34.336712 socket(PF_UNIX, SOCK_DGRAM, 0) = 5
08:10:34.338291 shmat(5, 0xffffffff, 0x2ptrace: umoven: Input/output error
) = ?
08:10:34.339616 connect(5, {sin_family=AF_UNIX, path=" /dev/log"}, 16) = 0
08:10:34.340673 send(5, "<11>Aug 21 08:10:34 master: setr"..., 106, 0) = 106
08:10:34.343215 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
08:10:34.345059 time([1029910234]) = 1029910234
08:10:34.345964 getpid() = 19791
08:10:34.346745 rt_sigaction(SIGPIPE, {0x402f14f8, [], 0x4000000}, {SIG_DFL}, 8) = 0
08:10:34.348247 send(5, "<181>Aug 21 08:10:34 master[1979"..., 51, 0) = 51
08:10:34.350682 rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
08:10:34.351749 open("/etc/cyrus.conf", O_RDONLY) = 6
08:10:34.353508 fstat64(0x6, 0xbfffe6bc) = 0
08:10:34.354292 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
08:10:34.355168 read(6, "# standard standalone server imp"..., 4096) = 786
08:10:34.356930 fork() = 19792
08:10:34.360487 wait4(19792, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 19792
08:10:36.689757 --- SIGCHLD (Child exited) ---
08:10:36.690592 read(6, "", 4096) = 0
08:10:36.691164 close(6) = 0
08:10:36.691582 munmap(0x40017000, 4096) = 0
08:10:36.692090 open("/etc/cyrus.conf", O_RDONLY) = 6
08:10:36.692647 fstat64(0x6, 0xbfffe6cc) = 0
08:10:36.693077 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
08:10:36.693615 read(6, "# standard standalone server imp"..., 4096) = 786
08:10:36.694931 read(6, "", 4096) = 0
08:10:36.695413 close(6) = 0
08:10:36.695806 munmap(0x40017000, 4096) = 0
08:10:36.696281 open("/etc/cyrus.conf", O_RDONLY) = 6
08:10:36.696815 fstat64(0x6, 0xbfffe6bc) = 0
08:10:36.698825 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
08:10:36.699691 read(6, "# standard standalone server imp"..., 4096) = 786
08:10:36.701100 read(6, "", 4096) = 0
08:10:36.701840 close(6) = 0
08:10:36.703255 munmap(0x40017000, 4096) = 0
08:10:36.704197 rt_sigaction(SIGHUP, {0x804a0e8, [], SA_RESTART|0x4000000}, NULL, 8) = 0
08:10:36.705039 rt_sigaction(SIGALRM, {0x804a194, [], SA_RESTART|0x4000000}, NULL, 8) = 0
08:10:36.705846 rt_sigaction(SIGTERM, {0x804a0f8, [], SA_RESTART|0x4000000}, NULL, 8) = 0
08:10:36.707326 rt_sigaction(SIGCHLD, {0x804a0d8, [], SA_RESTART|SA_NOCLDSTOP|0x4000000}, NULL, 8) = 0
08:10:36.708429 open("/etc/nsswitch.conf", O_RDONLY) = 6
08:10:36.709345 fstat64(0x6, 0xbffff58c) = 0
08:10:36.710083 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
08:10:36.711654 read(6, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1108
08:10:36.713111 read(6, "", 4096) = 0
08:10:36.713892 close(6) = 0
08:10:36.714605 munmap(0x40017000, 4096) = 0
08:10:36.715711 open("/usr/local/lib/libnss_db.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.717297 open("/etc/ld.so.cache", O_RDONLY) = 6
08:10:36.718130 fstat64(0x6, 0xbfffeeac) = 0
08:10:36.718848 old_mmap(NULL, 19601, PROT_READ, MAP_PRIVATE, 6, 0) = 0x40017000
08:10:36.719682 close(6) = 0
08:10:36.721091 open("/lib/libnss_db.so.2", O_RDONLY) = 6
08:10:36.721977 read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30 0\27"..., 1024) = 1024
08:10:36.723057 fstat64(0x6, 0xbfffeef4) = 0
08:10:36.723939 old_mmap(NULL, 21516, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x4033f000
08:10:36.725391 mprotect(0x40344000, 1036, PROT_NONE) = 0
08:10:36.726167 old_mmap(0x40344000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x4000) = 0x40344000
08:10:36.727888 close(6) = 0
08:10:36.728924 open("/usr/local/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.729906 open("/lib/libnss_files.so.2", O_RDONLY) = 6
08:10:36.730758 read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\36 0$\0"..., 1024) = 1024
08:10:36.732434 fstat64(0x6, 0xbfffed04) = 0
08:10:36.733250 old_mmap(NULL, 38224, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x40345000
08:10:36.734114 mprotect(0x4034e000, 1360, PROT_NONE) = 0
08:10:36.734858 old_mmap(0x4034e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x8000) = 0x4034e000
08:10:36.736672 close(6) = 0
08:10:36.737580 open("/usr/local/lib/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.738550 open("/lib/i586/mmx/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.739969 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.740762 open("/lib/i586/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.741571 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.742952 open("/lib/mmx/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.743787 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.744533 open("/lib/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.745870 stat64(0xbfffec94, 0xbfffecfc) = 0
08:10:36.746641 open("/usr/lib/i586/mmx/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.747494 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.748248 open("/usr/lib/i586/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.749746 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.750513 open("/usr/lib/mmx/libdb-3.1.so", O_RDONLY) = -1 ENOENT (No such file or directory)
08:10:36.751323 stat64(0xbfffec94, 0xbfffecfc) = -1 ENOENT (No such file or directory)
08:10:36.752635 open("/usr/lib/libdb-3.1.so", O_RDONLY) = 6
08:10:36.753497 read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\3 17\0"..., 1024) = 1024
08:10:36.754557 fstat64(0x6, 0xbfffecf4) = 0
08:10:36.755274 close(6) = 0
08:10:36.758139 munmap(0x40017000, 19601) = 0
08:10:36.759763 --- SIGSEGV (Segmentation fault) ---
08:10:36.760948 +++ killed by SIGSEGV +++

Was kann ich daraus sehen, ausser dass einige dateien nicht gefunden werden konnten? Wie kann ich die Fehler beheben?

schnebeck
21.08.02, 09:28
Das "No such file" ist harmlos, da der Rechner die zu suchenden Dateien über den Pfad (PATH) ermittelt. Letztlich wurde jede Datei ermittelt.

Was gibt

ldd /usr/cyrus/bin/master
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4602f000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4605c000)
libdb-3.2.so => /usr/lib/libdb-3.2.so (0x46113000)
libresolv.so.2 => /lib/libresolv.so.2 (0x461b1000)
libc.so.6 => /lib/libc.so.6 (0x461c3000)
libdl.so.2 => /lib/libdl.so.2 (0x462f2000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x46005000)

aus?

Bye

Thorsten

richy19
21.08.02, 09:45
Ein ldd /usr/cyrus/bin/master gibt bei mir folgendes aus:

root@testserver:/usr/lib# ldd /usr/cyrus/bin/master
libssl.so.0 => /usr/lib/libssl.so.0 (0x4001c000)
libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x400d2000)
libdb-4.0.so => /usr/lib/libdb-4.0.so (0x40192000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40218000)
libc.so.6 => /lib/libc.so.6 (0x40229000)
libdl.so.2 => /lib/libdl.so.2 (0x4033a000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
root@testserver:/usr/lib#

richy19
21.08.02, 12:56
Ahaaaa...

komischerweise funktioniert der ftp befehl auch nicht mehr!!!

Er beendet sich auch immer mit einem segmentation fault!!!

Woran könnte das liegen?