Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.5.9] SIGABORT cyrus-httpd graceful shutdown #49

Closed
MASHtm opened this issue Oct 6, 2016 · 1 comment
Closed

[2.5.9] SIGABORT cyrus-httpd graceful shutdown #49

MASHtm opened this issue Oct 6, 2016 · 1 comment
Labels
2.5 affects 2.5

Comments

@MASHtm
Copy link
Contributor

MASHtm commented Oct 6, 2016

if cyrus-httpd holds a keepalive connection and cyrus-master signals a graceful shutdown it exits with a fatal SIGABORT. syslog shows:

Oct  6 23:29:36 hector Bhttps[16915]: Fatal error: Internal error: assertion failed: imap/dav_db.c: 99: !open_davdbs

a strace shows

pselect6(1, [0], NULL, NULL, {195, 555187651}, {[], 8}) = ? ERESTARTNOHAND (To be restarted if no handler)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=18172, si_uid=76} ---
rt_sigreturn()                          = -1 EINTR (Interrupted system call)
getppid()                               = 18172
sendto(5, "<181>Oct  6 23:58:38 Bhttps[19026]: graceful shutdown\0", 54, MSG_NOSIGNAL, NULL, 0) = 54
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(15, ">1475791118>", 12)           = 12
write(15, "HTTP/1.1 500 Internal Server Error\r\nContent-Type: text/plain\r\nConnection: close\r\n\r\nFatal error: Internal error: assertion failed: imap/dav_db.c: 99: !open_davdbs\r\n", 163) = 163
write(1, "xxxxxx", 192) = 192
sendto(5, "<179>Oct  6 23:58:38 Bhttps[19026]: Fatal error: Internal error: assertion failed: imap/dav_db.c: 99: !open_davdbs\0", 115, MSG_NOSIGNAL, NULL, 0) = 115
open("/dev/tty", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 ENXIO (No such device or address)
writev(2, [{"*** glibc detected *** ", 23}, {"httpd: xxxxx [xxx.xxx.x.xxx] sackbauere77                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "..., 2238}, {": ", 2}, {"free(): invalid pointer", 23}, {": 0x", 4}, {"00007f4da88381a8", 16}, {" ***\n", 5}], 7) = 2311
....
@elliefm elliefm added the 2.5 affects 2.5 label Oct 6, 2016
@elliefm
Copy link
Contributor

elliefm commented Oct 6, 2016

I think this is already fixed in git: ab4f903

@elliefm elliefm closed this as completed Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.5 affects 2.5
Projects
None yet
Development

No branches or pull requests

2 participants