(gdb) bt # 0 0x0079f41e in __read_nocancel () from /lib/tls/libc.so.6 # 1 0x00d0b2f7 in BIO_new_socket () from /lib/libcrypto.so.4 # 2 0x00d092b2 in BIO_read () from /lib/libcrypto.so.4 # 3 0x005dae13 in ssl23_read_bytes () from /lib/libssl.so.4 # 4 0x005d9c51 in ssl23_get_client_hello () from /lib/libssl.so.4 # 5 0x005d9712 in ssl23_accept () from /lib/libssl.so.4 # 6 0x005ddc9a in SSL_accept () from /lib/libssl.so.4 # 7 0x08052cb3 in shut_down () # 8 0x0804e513 in shut_down () # 9 0x0804d58c in ?? () # 10 0x00000001 in ?? () # 11 0x082ee848 in ?? () # 12 0x00000000 in ?? () Any other ideas?Not at the moment. I don't understand how SSL_accept() gets called from shut_down().
That's what I'd been wondering about myself.
Are you running a Murder?
No, it's a pretty plain setup.The only reason I could imagine for the sequence of calls was signal handling. But let's be methodical. There's only one spot where SSL_accept() is called: in tls_start_servertls(). In pop3d.c that's only called in cmd_starttls(). That in turn is called either in cmdloop (for handling of STLS) or in service_main() for connections to port 995.
shut_down() could conceivably be called by signals_poll(). The POP process above has the following lines in syslog at debug level:
Nov 15 15:44:18 lvr13 master[25038]: about to exec /usr/lib/cyrus-imapd/pop3d
Nov 15 15:44:18 lvr13 pop3s[25038]: executed Nov 15 15:44:20 lvr13 pop3s[25038]: accepted connectionThat's it. So I'm guessing that the connection (which was to some dial-up IP address) got dropped while the process was in service_main(). I don't understand why that doesn't show up in the trace, and why last/first four entries read '??'.
But even that doesn't really make sense, because shut_down() isn't actually a signal handler, it's only called at certain points by signal_polls().
-- .:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:. Zentrum für angewandte Informatik - Universitätsweiter Service RRZK .:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:. .:.:.:.Skype: shagedorn.:.:.:.
Attachment:
pgpWYxk73z3ea.pgp
Description: PGP signature
---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html