[Dovecot] Failed to create storage with data:

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Apr 13 19:49:11 EEST 2005


Ah, you're using POP! I'm more of an IMAP person myself :)

Anyway, it looks pretty similar in src/pop3/main.c; it still seems the 
"mail" variable should have "maildir:" in it and yours doesn't 
according to the error message.

I've no idea how to trace things with gdb (I can just about dump a 
backtrace from a core file, and that's it!).

On Wed, 13 Apr 2005 18:36:06 +0200 Matthieu Imbert 
<matthieu.imbert at ens-lsh.fr> wrote:

> Chris Wakelin wrote:
> 
>> I'm wondering whether your "mail=" should have "maildir:" in it, i.e.
>> "mail=maildir:/var/mail/vhost/example.com/%n" or maybe it should not 
>> be there at all?

...

> Here's what i've understood so far (these are hypotheses because i don't 
> really now how to trace the code, i don't know gdb enough):
> 
> - The message is emitted from src/pop3/main.c line 179, because 
> mail_storage_create_with_data returned a NULL pointer
> 
> - mail_storage_create_with_data (in src/lib-storage/mail-storage.c line 
>   114) returns NULL because the call from mail_storage_create line 129 
> returned NULL
> 
> - mail-storage-create (in src/lib-storage/mail-storage.c line 72) return 
> NULL because the function pointed to by list->storage->create returns 
> NULL. I guess this function pointer points to maildir_create in 
> src/lib-storage/index/maildir/maildir-storage.c line 33
> 
> - i don't know why maildir-create would return NULL...
> 
> reading the code from verify_inbox, create_maildir and mkdir_verify (in 
> src/lib-storage/index/maildir/maildir-storage.c), it really seems that 
> the directory should be automatically created, though i still don't 
> fully understand the execution path which is taken.
> 
> Thanks in advance for any help
> 
> also if someone can briefly explain me how i can trace it with gdb, i 
> would appreciate. I know how to launch a single executable with gdb, but 
> in this case, gdb needs to "attach" to a process which is spawned by the 
> main dovecot process, and i don't know how to do it.
> 

--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--
Christopher Wakelin,                                c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,       Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK                   Fax: +44 (0)118 975 3094




More information about the dovecot mailing list