[Dovecot] Segfault in in rc7 when index does not exists
Marco Nenciarini
mnencia at prato.linux.it
Sat Oct 14 11:10:42 UTC 2006
On Fri, Oct 13, 2006 at 09:40:05PM +0300, Timo Sirainen wrote:
> On Fri, 2006-10-13 at 19:06 +0200, Marco Nenciarini wrote:
> > Program received signal SIGSEGV, Segmentation fault.
> > mail_index_write_base_header (index=0x80e2a28, hdr=0xaff66028) at mail-index.c:1313
> > 1313 memcpy(index->map->mmap_base, hdr, hdr_size);
> > (gdb) bt
> > #0 mail_index_write_base_header (index=0x80e2a28, hdr=0xaff66028) at mail-index.c:1313
> > #1 0x080902eb in mail_index_mark_corrupted (index=0x80e2a28) at mail-index.c:1839
> > #2 0x0809ca30 in mail_transaction_log_file_create (log=0x80e3928, path=0x80d2130 "/dovecot.index.log", dev=0, ino=0, file_size=0) at mail-transaction-log.c:575
> > #3 0x0809e138 in mail_transaction_log_file_open_or_create (log=0x80e3928, path=0x80d2130 "/dovecot.index.log") at mail-transaction-log.c:803
>
> Well, I'm not sure how you managed to get that exact crash, but I've
> fixed it anyway.
With the help of the attached script (used in mail_executable under
imap section)
>
> > MAIL="maildir:/"
>
> Your problem however is this. You're telling Dovecot to open maildir
> from root directory. Change "default_mail_env = maildir:%h" or
> something.
>
Cool, it's works :)
Bye
--
---------------------------------------------------------------------
| Marco Nenciarini | Debian/GNU Linux Developer - Plug Member |
| mnencia at prato.linux.it | http://www.prato.linux.it/~mnencia |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95 5270 6864 730D F095 E5E4
-------------- next part --------------
#!/bin/sh
# envdump - make dump of environment before call a program
# Copyright (c) 2006 Marco Nenciarini <mnencia at prato.linux.it>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
testfile=/tmp/environment-$$.dump
# Set to true to get the dump of stdin and stdout
dump_stdinout=false
echo -e "#!/bin/sh" > $testfile
echo -en "#\n#Id: " >> $testfile
/usr/bin/id >> $testfile
echo -e "\n#Environment: " >> $testfile
export >> $testfile
echo -e "\n\nexec $@" >> $testfile
if [ "$dump_stdinout" = "true" ]; then
/usr/bin/tee ${testfile}.in | $@ | /usr/bin/tee ${testfile}.out
else
exec $@
fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20061014/1d73beec/attachment-0001.pgp
More information about the dovecot
mailing list