sync_client Segmentation fault (core dumped)
Hi [root@imap08 user]# su cyrus bash-4.1$ /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 Segmentation fault (core dumped) I run strace bash-4.1$ strace /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 munmap(0x7f1300165000, 4096)= 0 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5 connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 sendto(5, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=5, revents=POLLIN|POLLHUP}]) recvmsg(5, {msg_name(0)=NULL, msg_iov(2)=[{"hosts\0", 6}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {6}}, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217016, PROT_READ, MAP_SHARED, 6, 0) = 0x7f12fffd4000 close(6)= 0 close(5)= 0 rt_sigaction(SIGALRM, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, NULL, 8) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5 alarm(10) = 0 connect(5, {sa_family=AF_INET, sin_port=htons(2005), sin_addr=inet_addr("10.31.4.14")}, 16) = 0 alarm(0)= 10 rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER|SA_RESTART, 0x7f12fe0816a0}, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, 8) = 0 read(5, "* STARTTLS\r\n* OK backup-imap01"..., 4096) = 91 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped) Any advice how to fix this? Regards Sunny Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: sync_client Segmentation fault (core dumped)
On 11/25/2015 06:21 AM, Sunny via Info-cyrus wrote: Hi [root@imap08 user]# su cyrus bash-4.1$ /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 Segmentation fault (core dumped) I run strace bash-4.1$ strace /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 munmap(0x7f1300165000, 4096)= 0 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5 connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 sendto(5, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=5, revents=POLLIN|POLLHUP}]) recvmsg(5, {msg_name(0)=NULL, msg_iov(2)=[{"hosts\0", 6}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {6}}, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217016, PROT_READ, MAP_SHARED, 6, 0) = 0x7f12fffd4000 close(6)= 0 close(5)= 0 rt_sigaction(SIGALRM, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, NULL, 8) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5 alarm(10) = 0 connect(5, {sa_family=AF_INET, sin_port=htons(2005), sin_addr=inet_addr("10.31.4.14")}, 16) = 0 alarm(0)= 10 rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER|SA_RESTART, 0x7f12fe0816a0}, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, 8) = 0 read(5, "* STARTTLS\r\n* OK backup-imap01"..., 4096) = 91 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped) Any advice how to fix this? Regards Sunny Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Anything in logs on the sync server? <> Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: sync_client Segmentation fault (core dumped)
With it dying just after starttls I would be inclined to check the tls/ssl config. Or possibly try running the sync without TLS enabled. On 11/25/2015 08:32 AM, Patrick Boutilier via Info-cyrus wrote: On 11/25/2015 06:21 AM, Sunny via Info-cyrus wrote: Hi [root@imap08 user]# su cyrus bash-4.1$ /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 Segmentation fault (core dumped) I run strace bash-4.1$ strace /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 munmap(0x7f1300165000, 4096)= 0 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5 connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 sendto(5, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=5, revents=POLLIN|POLLHUP}]) recvmsg(5, {msg_name(0)=NULL, msg_iov(2)=[{"hosts\0", 6}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {6}}, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217016, PROT_READ, MAP_SHARED, 6, 0) = 0x7f12fffd4000 close(6)= 0 close(5)= 0 rt_sigaction(SIGALRM, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, NULL, 8) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5 alarm(10) = 0 connect(5, {sa_family=AF_INET, sin_port=htons(2005), sin_addr=inet_addr("10.31.4.14")}, 16) = 0 alarm(0)= 10 rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER|SA_RESTART, 0x7f12fe0816a0}, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, 8) = 0 read(5, "* STARTTLS\r\n* OK backup-imap01"..., 4096) = 91 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped) Any advice how to fix this? Regards Sunny Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Anything in logs on the sync server? Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 al...@netvel.net || Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Solved: sync_client Segmentation fault (core dumped)
On 25/11/15 13:46, Alvin Starr via Info-cyrus wrote: With it dying just after starttls I would be inclined to check the tls/ssl config. Or possibly try running the sync without TLS enabled. On 11/25/2015 08:32 AM, Patrick Boutilier via Info-cyrus wrote: On 11/25/2015 06:21 AM, Sunny via Info-cyrus wrote: Hi [root@imap08 user]# su cyrus bash-4.1$ /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 Segmentation fault (core dumped) I run strace bash-4.1$ strace /usr/lib/cyrus-imapd/sync_client -v -l -S backup-imap01 -u test8 munmap(0x7f1300165000, 4096)= 0 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5 connect(5, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0 sendto(5, "\2\0\0\0\r\0\0\0\6\0\0\0hosts\0", 18, MSG_NOSIGNAL, NULL, 0) = 18 poll([{fd=5, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=5, revents=POLLIN|POLLHUP}]) recvmsg(5, {msg_name(0)=NULL, msg_iov(2)=[{"hosts\0", 6}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {6}}, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 14 mmap(NULL, 217016, PROT_READ, MAP_SHARED, 6, 0) = 0x7f12fffd4000 close(6)= 0 close(5)= 0 rt_sigaction(SIGALRM, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, NULL, 8) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5 alarm(10) = 0 connect(5, {sa_family=AF_INET, sin_port=htons(2005), sin_addr=inet_addr("10.31.4.14")}, 16) = 0 alarm(0)= 10 rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER|SA_RESTART, 0x7f12fe0816a0}, {0x7f130018d920, [], SA_RESTORER, 0x7f12fe0816a0}, 8) = 0 read(5, "* STARTTLS\r\n* OK backup-imap01"..., 4096) = 91 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped) Any advice how to fix this? Regards Sunny Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Anything in logs on the sync server? Cyrus Home Page:http://www.cyrusimap.org/ List Archives/Info:http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 al...@netvel.net || Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus Solved. I was pushing sync_client to a cyrus replica server which had a different version of the libc driver to the master imap server. /var/log/messges logged this kernel: sync_client[31071]: segfault at 0 ip 7f03e729457f sp 7fffc35ebf88 error 4 in libc-2.12.so[7f03e7161000+18a000] Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus