Package: dovecot
Version: 1:1.0.0-1+b1
Severity: normal

Hi,

The command

  /usr/sbin/dovecot --exec-mail imap

crashes immediately without any explanation if the config file setting
`protocols' doesn't include imap. A debug run:

------------------------------------------------------------
$ gdb --args /usr/sbin/dovecot --exec-mail imap
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /usr/sbin/dovecot --exec-mail imap

Program received signal SIGSEGV, Segmentation fault.
mail_process_exec (protocol=0x7fff201072b7 "imap", section=0x0) at 
mail-process.c:352
352                     executable = set->mail_executable;
(gdb) bt
#0  mail_process_exec (protocol=0x7fff201072b7 "imap", section=0x0) at 
mail-process.c:352
#1  0x000000000040902a in main (argc=<value optimized out>, argv=<value 
optimized out>) at main.c:870
(gdb) print set
$1 = (struct settings *) 0x0
(gdb) bt
#0  mail_process_exec (protocol=0x7fff201072b7 "imap", section=0x0) at 
mail-process.c:352
#1  0x000000000040902a in main (argc=<value optimized out>, argv=<value 
optimized out>) at main.c:870
(gdb) l
347                             set = server->imap;
348                     else if (strcmp(protocol, "pop3") == 0)
349                             set = server->pop3;
350                     else
351                             i_fatal("Unknown protocol: '%s'", protocol);
352                     executable = set->mail_executable;
353             }
354
355             var_expand_table =
356                     get_var_expand_table(protocol, getenv("USER"), 
getenv("HOME"),
(gdb) print server
$2 = (struct server_settings *) 0x62f320
(gdb) print server->imap
$3 = (struct settings *) 0x0
------------------------------------------------------------

        Sami

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.21.4-grsec-sli
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Attachment: signature.asc
Description: Digital signature

Reply via email to