search for: t_push

Displaying 17 results from an estimated 17 matches for "t_push".

2016 Mar 03
2
Dovecot 2.2.21 - segfault
pid 31943 (dovecot), uid 0: exited on signal 11 (core dumped) dovecot --version 2.2.21 (5345f22) uname -a FreeBSD 10.3-BETA2 #0 r295966M: amd64 bt full #0 0x00000008008eb037 in t_push (marker=0x0) at data-stack.c:133 133 data-stack.c: No such file or directory. in data-stack.c (gdb) bt full #0 0x00000008008eb037 in t_push (marker=0x0) at data-stack.c:133 frame_block = (struct stack_frame_block *) 0x7fffffffb4e0 #1 0x000000080086a5ec in master_service_env_clean () at master-s...
2007 Dec 10
1
dict: Leaked a t_pop() call in I/O handler
...nticate against it via POP3 or IMAP. Searching through the code, I've found this (this is Dovecot v1.0.8): ---- src/dict/dict-cache.c ---- void dict_cache_unref(struct dict_cache *cache, const char *uri, const char *username) { struct dict_entry *entry; t_push(); entry = hash_lookup(cache->dicts, t_strdup_printf("%s\t%s", username, uri)); i_assert(entry != NULL && entry->refcount > 0); if (--entry->refcount == 0) { hash_remove(cache->dicts, entry->use...
2003 Oct 03
4
PATCH: mysql authentication
Here's another patch. This one isn't much different from the last patch, except it tries a little harder to make sure that the required fields are returned by the query (like the pgsql module does). One question about how t_strdup works. How and who should memory returned by t_strdup be freed? My patch has a function my_get_str() which returns the value of t_strdup, and then I do
2003 Apr 21
1
Message with lots of attachments breaks Dovecot
...e memory for the message part array, so that it remains contiguous. *** mail-index-update.c.orig Wed Mar 26 10:41:55 2003 --- mail-index-update.c Sun Apr 20 16:53:45 2003 *************** *** 498,504 **** if (cache_fields & DATA_FIELD_MESSAGEPART) { t_push(); ! buf = buffer_create_dynamic(data_stack_pool, 2048, (size_t)-1); message_part_serialize(part, buf); --- 498,504 ---- if (cache_fields & DATA_FIELD_MESSAGEPART) {...
2006 May 09
2
Fix for the kevent "Unrecognized event" problem.
The attached patch should fix the problem with dying imap on "Unrecognized event". The problem is that when we register a handle for IO_ERROR only, we still can get readable/writable event without EV_EOF being set. This case was not handled. -- Vaclav Haisman -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: io-kq.diff URL:
2010 Sep 01
3
Dovecot - some more optimisations
...earlier code, and '\n' was skipped (this piece of code is used very rare). Please check this out. This can help in huge e-mail systems :P And another problem. Why You use safe_memset instead of memset? Now this function have the largest impact in Dovecot performance. Another on list is t_push. Regards, Len7hir -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dovecot-patch1.diff URL: <http://dovecot.org/pipermail/dovecot/attachments/20100901/207bdd8c/attachment-0006.pl> -------------- next part -------------- An embedded and c...
2006 Feb 03
1
passwd-userdb with args
...th_stream_reply_add(reply, "home", pw->pw_dir); callback(reply, auth_request); } struct userdb_module_interface userdb_passwd = { "passwd", ! NULL, NULL, NULL, passwd_lookup }; --- 45,118 ---- pw->pw_name, auth_request->user); } + t_push(); + str = t_str_new(256); + table = auth_request_get_var_expand_table(auth_request, NULL); + reply = auth_stream_reply_init(auth_request); auth_stream_reply_add(reply, NULL, pw->pw_name); auth_stream_reply_add(reply, "system_user", pw->pw_name); auth_stream_reply_add...
2007 Dec 06
3
imap crash with fts squat enabled.
Hi Timo, Here is the backtrace for your reference. I have already applied dovecot-97702c9c4111 changes to my 1.1 beta10 code base. I am running dovecot on FC7, gcc 4.1.2, mailbox is on NFS. Whenever I did UID SEARCH body "xxxx" imap crashes. Program terminated with signal 6, Aborted. #0 0x00110402 in __kernel_vsyscall () (gdb) bt full #0 0x00110402 in __kernel_vsyscall () No
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
.../* no I/O events */ + return; + } + + i_assert((size_t)ret <= ctx->evbuf_size); + + /* loop through all received events */ + for (i = 0; i < ret; ++i) + { + struct io *io = ctx->evbuf[i].udata; + + t_id = t_push(); + io->callback(io->context); + if (t_pop() != t_id) + i_panic("Leaked a t_pop() call in I/O handler %p", + (void *)io->callback); + } +} + + +#endif // IOLOOP_KQUEUE + +/* +Local Variabl...
2005 Dec 15
2
Patch: More of kqueue() support.
...nt].mode & IO_ERROR) { + if ((ctx->fds[ctx->evbuf[i].ident].mode & IO_ERROR) + && (ctx->evbuf[i].flags & EV_EOF)) { struct io *errio = ctx->fds[ctx->evbuf[i].ident].errio; t_id = t_push(); @@ -171,8 +176,8 @@ void io_loop_handler_run(struct ioloop * (void *)errio->callback); } } - - if (ctx->fds[ctx->evbuf[i].ident].mode & (IO_WRITE | IO_READ)) { + else if (ctx->fds[ctx->evbuf[i].ident].mode +...
2007 Oct 01
1
potential maildir folder rename bug
...-r 8d6433652a33 src/lib-storage/index/maildir/maildir-storage.c --- a/src/lib-storage/index/maildir/maildir-storage.c Sun Sep 30 18:03:17 2007 +0300 +++ b/src/lib-storage/index/maildir/maildir-storage.c Mon Oct 01 20:13:27 2007 +0100 @@ -937,6 +937,10 @@ static int rename_subfolders(struct inde t_push(); old_listname = t_strconcat(oldname, names[i], NULL); + if (strcmp(old_listname, newname) == 0) { + t_pop(); + continue; + } new_listname = t_strconcat(newname, names[i], NULL); oldpath = maildir_get_path(storage, old_listname); newpath = maildir_get_path(storage, new_listname...
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
..."utime(%s) failed: %m", new_path); + } + } + } else { ret = -1; if (ENOSPACE(errno)) { mail_storage_set_error(STORAGE(ctx->mbox->storage), @@ -332,18 +343,6 @@ t_push(); path = t_strconcat(ctx->tmpdir, "/", ctx->files->basename, NULL); - if (ctx->received_date != (time_t)-1) { - /* set the received_date by modifying mtime */ - buf.actime = ioloop_time; - buf.modtime = ctx->received...
2006 Nov 18
2
Auth checking also the service
Hello everyone. I'm switching to dovecot from courier-imap and after some problems with Apple Mail client, now everything seems to be fine. The only problem that I have not solved yet is to check also the service (pop3, pop3s, imap, imaps) in the authentication phase. In courier-authlib I do this: MYSQL_SELECT_CLAUSE SELECT username, \ password, \
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...nt->filter & EV_EOF) != 0) { + call = TRUE; + } else if ((io->condition & IO_READ) != 0) { + call = event->filter & EVFILT_READ; + } else if ((io->condition & IO_WRITE) != 0) { + call = event->filter & EVFILT_WRITE; + } + + if (call) { + t_id = t_push(); + io->callback(io->context); + if (t_pop() != t_id) + i_panic("Leaked a t_pop() call!"); + } + } + } +} + +#endif /* IOLOOP_KQUEUE */ diff -urpNX /usr/share/dontdiff dovecot-1.0-test51.vanilla/src/lib/Makefile.am dovecot-1.0-test51/src/lib/Makefile.am --- dovecot-1.0...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...+ } else if ((io->condition & IO_RW) == IO_RW) { + call = TRUE; + } else if (io->condition & IO_READ) { + call = event->events & EPOLLIN; + } else if (io->condition & IO_WRITE) { + call = event->events & EPOLLOUT; + } + + if (call) { + t_id = t_push(); + io->callback(io->context); + if (t_pop() != t_id) + i_panic("Leaked a t_pop() call!"); + } + } + event++; + } +} + +#endif /* IOLOOP_EPOLL */ diff -urpNX /usr/share/dontdiff dovecot-cvs.vanilla/src/lib/Makefile.am dovecot-cvs/src/lib/Makefile.am --- dovecot-cvs.va...
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...condition & IO_READ) { if (!(kev->filter & EVFILT_READ)) continue; } if (io->condition & IO_WRITE) { if (!(kev->filter & EVFILT_WRITE)) continue; } mark = 1; } } if (mark == 0) continue; /* no condition was satisfied */ t_id = t_push(); io->callback(io->context); if (t_pop() != t_id) i_panic("Leaked a t_pop() call!"); if (io->destroyed) io_destroy(ioloop, io); ret --; } } #endif
2008 Jul 08
3
antispam plugin, amavis and sa-learn
Hello, I would like to use the Dovecot antispam plugin to train SpamAssassin via sa-learn. I compiled the plugin and got it to work with the sendmail backend, which I tested by having it send a message to me. As I'm calling SpamAssassin with amavisd-new, I have a system-wide Bayes db, maintained by the amavis user. As expected, the antispam plugin calls the configured binary as the mail user