[Dovecot] Help! Uidlist files are gone and won't come back; imap keeps coredumping!

Mario Nigrovic-rvvk40 Mario.Nigrovic at freescale.com
Mon Jun 19 18:03:07 EEST 2006


Timo -

   The only behavior change that I notice is that when I exit the telnet session the truss also exits.  Previously, the truss hung around until I did the "pkill dovecot", after exiting the telnet session.  So, that's weird.  But, hold on!  Now I do seem to have a uidlist file, again!

% ls -l
total 308
drwx--S---   2 rvvk40   lowv        98304 Jun 19 07:44 cur/
-rw-------   1 rvvk40   lowv          260 Jun 19 07:47 dovecot-keywords
-rw-------   1 rvvk40   lowv        65752 Jun 19 07:47 dovecot-uidlist
-rw-------   1 rvvk40   lowv        29560 Jun 11 08:42 dovecot.index
drwx--S---   2 rvvk40   lowv        32768 Jun 19 07:43 new/
-rw-------   1 rvvk40   lowv         1188 May  1 07:01 subscriptions
drwx--S---   2 rvvk40   lowv        61440 Jun 19 07:42 tmp/

				Mario

Timo Sirainen wrote:
> Try if the attached patch changes anything.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: src/lib/file-dotlock.c
> ===================================================================
> RCS file: /var/lib/cvs/dovecot/src/lib/file-dotlock.c,v
> retrieving revision 1.38
> diff -u -r1.38 file-dotlock.c
> --- src/lib/file-dotlock.c	8 Jun 2006 16:42:40 -0000	1.38
> +++ src/lib/file-dotlock.c	19 Jun 2006 12:55:51 -0000
> @@ -664,6 +664,12 @@
>  		}
>  	}
>  
> +	if (dotlock->fd != -1) {
> +		if (close(dotlock->fd) < 0)
> +			i_error("close(%s) failed: %m", dotlock->path);
> +		dotlock->fd = -1;
> +	}
> +
>  	if (rename(lock_path, dotlock->path) < 0) {
>  		i_error("rename(%s, %s) failed: %m", lock_path, dotlock->path);
>  		file_dotlock_free(dotlock);


-- 
I don't need a name; my number's just fine. |   Mario.Nigrovic at freescale.com
It's nobody else's -- just mine, all mine.  |                   480-413-3578
                                                           Internal Use Only


More information about the dovecot mailing list