Paul J Stevens wrote:
Just an update. I've run the same test on a pristine dbmail installation in an UML image. Same result. I've tried various compile flags. No change. Sometimes it segfaults, sometimes it fails with an internal dbase error. Ive attached the dumped dbmail database (very small), and session log.

I thought I had found the possible answer, but as it turns out, I've only found a bug in another function.

in db_listmailboxchildren() (used by IMAP DELETE and RENAME), the mailbox_name string was used after it was freed.

There also was a memory leak in db_findmailbox_by_regex(), where the regex_t struct was not freed.

Paul, I'm stilll looking into your problem. I've added a new debug statement in _ic_list() in imapcommands.c, before the call to
db_getmailboxname().

Can you try to reproduce your error and show us the trace?

Ilja

Reply via email to