Heiko Schlittermann
2016-Apr-27 07:37 UTC
Crash: setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL)
Hi, Using 2.2.9 (ubuntu 14.04 LTS) and sending the following command, the server crashes when I try to delete an annotation: ? login ? C: 2 setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL) Apr 27 09:29:16 backend1 dovecot: imap-login: Login: user=<heiko>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6651, secured Apr 27 09:29:16 backend1 dovecot: imap(heiko): Fatal: master: service(imap): child 6651 killed with signal 11 (core dumped) Sending a real value it works: ? login ? C: 2 setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" "27") S: 2 OK Completed. Is this a known bug that is fixed in later releases? Best regards from Dresden/Germany Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20160427/d35fe574/attachment.sig>
Heiko Schlittermann
2016-Apr-27 08:00 UTC
Crash: setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL)
Hi,> ? login ? > C: 2 setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL) > > Apr 27 09:29:16 backend1 dovecot: imap-login: Login: user=<heiko>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6651, secured > Apr 27 09:29:16 backend1 dovecot: imap(heiko): Fatal: master: service(imap): child 6651 killed with signal 11 (core dumped)This doesn't seem to be dovecot core's fault, it's probably crashing in the METADATA plugin. Does anybody else use it? Is it alive as a project? (Last Update of the mercurial repository http://hg.dovecot.org/dovecot-metadata-plugin was 2013 . Best regards from Dresden/Germany Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --------------- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20160427/01a8e869/attachment.sig>
Aki Tuomi
2016-Apr-27 08:06 UTC
Crash: setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL)
On 27.04.2016 11:00, Heiko Schlittermann wrote:> Hi, > >> ? login ? >> C: 2 setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL) >> >> Apr 27 09:29:16 backend1 dovecot: imap-login: Login: user=<heiko>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=6651, secured >> Apr 27 09:29:16 backend1 dovecot: imap(heiko): Fatal: master: service(imap): child 6651 killed with signal 11 (core dumped) > This doesn't seem to be dovecot core's fault, it's probably > crashing in the METADATA plugin. Does anybody else use it? > > Is it alive as a project? (Last Update of the mercurial repository > http://hg.dovecot.org/dovecot-metadata-plugin was 2013 . > > > Best regards from Dresden/Germany > Viele Gr??e aus Dresden > Heiko SchlittermannHi! We no longer use mercurial as VCS. And metadata has been moved as core feature, and is no longer a plugin. Please see https://github.com/dovecot/core Aki
Heiko Schlittermann
2016-Apr-27 09:36 UTC
[SOLVED] Crash: setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL)
Hi, just for the records. The dovecot-metadata-plugin found on http://hg.dovecot.org/dovecot-metadata-plugin (not in use anymore?) needs one change to make it compile on Ubuntu 14.04 and probably other current compilers. And a 2nd change that avoids a crash on deleting an annotation. I need this plugin with a dovecot 2.2.9 to store mailbox annotations (expiry information imported/migrated from a cyrus server, to be more precise). If dovecot provides ANNOTATION capabilities on it's own, I missed it... Please correct me, if I'm wrong. In a current clone of dovecot-core I do not find any traces that indicate support for ANNOATION. But again, I may be wrong, as I do often. changeset: 237:219c13a7696d bookmark: hs12 tag: tip user: Heiko Schlittermann <hs at schlittermann.de> date: Wed Apr 27 11:27:14 2016 +0200 summary: Check the Value before using strlen() diff -r 79ce82ce7279 -r 219c13a7696d src/metadata-backend.c --- a/src/metadata-backend.c Wed Apr 27 10:37:11 2016 +0200 +++ b/src/metadata-backend.c Wed Apr 27 11:27:14 2016 +0200 @@ -130,7 +130,7 @@ if (!metadata_entry_is_valid(entry)) return -METADATA_ERROR_INVALID; - if (strlen(metadata_entry_get_value(entry)) > muser->set->maxsize) + if (entry->value && strlen(metadata_entry_get_value(entry)) > muser->set->maxsize) return -METADATA_ERROR_TOOLARGE; if (count_entries(muser) > muser->set->maxentries) return -METADATA_ERROR_TOOMANY; changeset: 236:79ce82ce7279 user: Heiko Schlittermann <hs at schlittermann.de> date: Wed Apr 27 10:37:11 2016 +0200 summary: make it compile diff -r b6df1381bb79 -r 79ce82ce7279 src/imap-metadata-plugin.c --- a/src/imap-metadata-plugin.c Sun Oct 27 12:50:20 2013 +0100 +++ b/src/imap-metadata-plugin.c Wed Apr 27 10:37:11 2016 +0200 @@ -448,7 +448,7 @@ } -static bool +bool cmd_getmetadata(struct client_command_context *cmd) { int maxsize = 0, depth = 0; @@ -739,7 +739,7 @@ } -static bool +bool cmd_setmetadata(struct client_command_context *cmd) { const struct imap_arg *args; if (!client_read_args(cmd, 0, 0, &args)) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: Digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20160427/474d5399/attachment-0001.sig>
Reasonably Related Threads
- Crash: setannotation Trash "/vendor/cmu/cyrus-imapd/expire" ("value.shared" NIL)
- Segmentation fault on doveadm search -A with a huge user base
- doveadm-server protocol change?
- Deleting metadata smashes file dovecot.dict
- dovecot as proxy and verification of the backends certificate