Hello,
ulimit -c unlimited dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool --test gdb /usr/libexec/dovecot/expire-tool core bt full
here is the output. i am not in a hurry, for me it was just testing. But you are surely interested...
gdb /usr/libexec/dovecot/expire-tool core GNU gdb 6.4 Copyright 2005 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 "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `expire-tool --test'. Program terminated with signal 11, Segmentation fault.
warning: Can't read pathname for load map: Eingabe-/Ausgabefehler. Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0xb7e5eeb3 in strlen () from /lib/libc.so.6 (gdb) bt full #0 0xb7e5eeb3 in strlen () from /lib/libc.so.6 No symbol table info available. #1 0x080ba380 in vstrconcat (str1=0x80bd017 "RESTRICT_SETGID=", args=0xbfd4bd78 "", ret_len=0xbfd4bd5c) at strfuncs.c:165 str = 0x4 <Address 0x4 out of bounds> temp = 0x80d6330 "RESTRICT_SETGID=", 'Þ' <repeats 184 times>... bufsize = 512 i = 16 len = 16 __PRETTY_FUNCTION__ = "vstrconcat" #2 0x080babe3 in t_strconcat (str1=0x80bd017 "RESTRICT_SETGID=") at strfuncs.c:265 args = 0xbfd4bd74 "\004" len = 28 #3 0x0804a949 in auth_input (conn=0x80da350) at auth-client.c:142 line = <value optimized out> #4 0x080b1a17 in io_loop_handler_run (ioloop=0x80da1a8) at ioloop-epoll.c:209 ctx = <value optimized out> event = (const struct epoll_event *) 0x80da580 list = (struct io_list *) 0x80dadb0 io = (struct io_file *) 0x80da520 tv = {tv_sec = 2147483, tv_usec = 0} t_id = 3 msecs = <value optimized out> ret = 1 i = 0 call = <value optimized out> #5 0x080b0b08 in io_loop_run (ioloop=0x80da1a8) at ioloop.c:336 No locals. #6 0x0804a5e4 in auth_client_put_user_env (conn=0x80da350, user=0x80d6060 "m0127a22") at auth-client.c:229 No locals. #7 0x0804b5c7 in main (argc=Cannot access memory at address 0x0 ) at expire-tool.c:43 _data_stack_cur_id = 2 ioloop = (struct ioloop *) 0x80da1a8 test = <value optimized out> (gdb) exit Undefined command: "exit". Try "help". (gdb) quit
Thanks, Andre