[Dovecot] patch for 2.0.alpha3 crash
Mike Abbott
michael.abbott at apple.com
Wed Nov 11 22:15:08 EET 2009
Dovecot-2.0.alpha3 crashes on startup for me on Mac OS X. It hits a segmentation fault at:
0 libdovecot.0.dylib 0x0000000100025e9f master_service_set_die_with_master + 10
1 libdovecot.0.dylib 0x0000000100025d93 master_service_settings_read + 1818
2 libdovecot.0.dylib 0x0000000100025e63 master_service_settings_read_simple + 110
3 dovecot 0x00000001000021d3 main + 846
4 dovecot 0x0000000100001650 start + 52
This appears to be because lib-master's master_service global (in the libdovecot shared library) is different from master's master_service global (in the dovecot binary). Here's a patch to fix it:
--- a/src/master/main.c 2009-11-09 19:53:11.000000000 -0600
+++ b/src/master/main.c 2009-11-11 14:12:55.000000000 -0600
@@ -35,7 +35,6 @@
#define MASTER_PID_FILE_NAME "master.pid"
#define SERVICE_TIME_MOVED_BACKWARDS_MAX_THROTTLE_SECS (60*3)
-struct master_service *master_service;
uid_t master_uid;
gid_t master_gid;
bool core_dumps_disabled;
More information about the dovecot
mailing list