Hello, I have the rawlog enabled according to the manual:http://wiki2.dovecot.org/Debugging/Rawlog Without -i everything is wonderful, a coredump is with the -i parameter created **************************************** service imap-postlogin { executable = script-login -d rawlog -i user = vmail } **************************************** GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/dovecot/rawlog...(no debugging symbols found)...done. [New LWP 29312] warning: Can't read pathname for load map: Eingabe-/Ausgabefehler. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/lib/dovecot/rawlog -i /usr/lib/dovecot/script-login'. Program terminated with signal 11, Segmentation fault. #0 0x00007f66bd2fe6c7 in master_instance_list_find_by_name () from /usr/lib/dovecot/libdovecot.so.0 (gdb) bt full #0 0x00007f66bd2fe6c7 in master_instance_list_find_by_name () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #1 0x00007f66bd300ea5 in master_service_parse_option () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #2 0x00007f66bd300fd4 in master_getopt () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #3 0x0000000000401e15 in main () No symbol table info available. (gdb)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 9 Mar 2015, Hardy Flor wrote:> I have the rawlog enabled according to the > manual:http://wiki2.dovecot.org/Debugging/Rawlog > > Without -i everything is wonderful, a coredump is with the -i parameter > created- -i is: v2.0 and older don't expect a bugfix ;-) - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVP6fkHz1H7kL/d9rAQLDNAgAnI7XBMpegoYcxCRdOFRMk5nbVMbZjLUD sLQInTa6ggBvxVy+1iSS9U1R8//BqgvIum7Sgy6kAjzk59Vjtr5i5a+cCBv/+3aj KBAylmaf008/zD6lPJQ5B0fjVYdJB+vx/px6e14FgAuDZb52yqC0hh3Ychs1xDmN xdcZePg5MSAooaXLLdQ6PzKhwmeSclYFHaIzkbnqZvPCXHYjbs37bVCmSP+HHo8p 16MmwuyKZQ3YpAh+TK/k0k16Vb5Lle/5tTbPZE2U0QT/gvPaYCp+FS4eZOiRjjai GUgnABcxSNUeXnpFTWArXHatKXuxI/tp8BQxVYJaYFIGv0nDwCbUlw==9iHQ -----END PGP SIGNATURE-----
This option was added at Mon Jul 21 10:53:19 2014 +0300 http://hg.dovecot.org/dovecot-2.2/diff/fbf434ad2485/src/util/rawlog.c Hardy Am 10.03.2015 um 08:38 schrieb Steffen Kaiser:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, 9 Mar 2015, Hardy Flor wrote: > >> I have the rawlog enabled according to the >> manual:http://wiki2.dovecot.org/Debugging/Rawlog >> >> Without -i everything is wonderful, a coredump is with the -i >> parameter created > > - -i is: v2.0 and older > don't expect a bugfix ;-) > > - -- Steffen Kaiser > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEVAwUBVP6fkHz1H7kL/d9rAQLDNAgAnI7XBMpegoYcxCRdOFRMk5nbVMbZjLUD > sLQInTa6ggBvxVy+1iSS9U1R8//BqgvIum7Sgy6kAjzk59Vjtr5i5a+cCBv/+3aj > KBAylmaf008/zD6lPJQ5B0fjVYdJB+vx/px6e14FgAuDZb52yqC0hh3Ychs1xDmN > xdcZePg5MSAooaXLLdQ6PzKhwmeSclYFHaIzkbnqZvPCXHYjbs37bVCmSP+HHo8p > 16MmwuyKZQ3YpAh+TK/k0k16Vb5Lle/5tTbPZE2U0QT/gvPaYCp+FS4eZOiRjjai > GUgnABcxSNUeXnpFTWArXHatKXuxI/tp8BQxVYJaYFIGv0nDwCbUlw=> =9iHQ > -----END PGP SIGNATURE-----
When I change the option 'i' to the letter 'a' is everything as designed. Why is 'i' at this location the problem? ******************************** diff -Nurb dovecot-2.2.16rc1/src/util/rawlog.c dovecot-2.2.16rc1.build/src/util/rawlog.c --- dovecot-2.2.16rc1/src/util/rawlog.c 2015-03-04 13:49:28.000000000 +0100 +++ dovecot-2.2.16rc1.build/src/util/rawlog.c 2015-03-11 11:31:46.090201199 +0100 @@ -362,7 +362,7 @@ int c; master_service = master_service_init("rawlog", 0, - &argc, &argv, "+f:obit"); + &argc, &argv, "+f:obat"); while ((c = master_getopt(master_service)) > 0) { switch (c) { case 'f': @@ -376,7 +376,7 @@ case 'b': flags |= RAWLOG_FLAG_LOG_BOUNDARIES; break; - case 'i': + case 'a': flags |= RAWLOG_FLAG_LOG_IP_IN_FILENAME; break; case 't': @@ -390,7 +390,7 @@ argv += optind; if (argc < 1) - i_fatal("Usage: rawlog [-f in|out] [-i] [-b] [-t] <binary> <arguments>"); + i_fatal("Usage: rawlog [-f in|out] [-a] [-b] [-t] <binary> <arguments>"); master_service_init_log(master_service, "rawlog: "); master_service_init_finish(master_service); Am 09.03.2015 um 18:53 schrieb Hardy Flor:> > Without -i everything is wonderful, a coredump is with the -i > parameter created >
On 11 Mar 2015, at 12:50, Hardy Flor <HFlor at gmx.de> wrote:> > When I change the option 'i' to the letter 'a' is everything as designed. Why is 'i' at this location the problem?Fix & explanation: http://hg.dovecot.org/dovecot-2.2/rev/cd5fc6ff8027 Oops, also http://hg.dovecot.org/dovecot-2.2/rev/aed1e8340ea7