search for: nearest_power

Displaying 8 results from an estimated 8 matches for "nearest_power".

2012 Jan 14
2
IMAP maillog error: file lib.c: line 37 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE_T-1)))
Dear Mailing List, What does this error mean and how do I fix it? I am on a Centos 4.9 >From /var/log/maillog : Jan 14 11:54:51 hostname imap(username): file lib.c: line 37 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE_T-1))) Version information : root at hostname[/etc/rc.d/rc3.d]# dovecot --version ; dovecot -n ; cat /etc/*release* 0.99.11 Usage: dovecot [-F] [-c <config file>] Fatal: Unknown argument: -n CentOS release 4.9 (Final) root at...
2013 Jan 09
2
Migrating mailboxes
...ever changed :-) [root at mail home]# dovecot --version 0.99.11 Anyway, he had a problem with a user mailbox which I wasn't able to diagnose and fix easily. maillog showed: Jan 9 16:11:29 mail imap-login: Login: userx [::ffff:127.0.0.1] Jan 9 16:11:29 mail imap(userx): file lib.c: line 37 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE_T-1))) Jan 9 16:11:29 mail dovecot: child 25217 (imap) killed with signal 6 Jan 9 16:12:03 mail imap-login: Login: userx [::ffff:127.0.0.1] Jan 9 16:12:03 mail imap(userx): file lib.c: line 37 (nearest_power): assertion failed: (nu...
2007 Jan 16
1
Dovecot-1.0.rc17 on Solaris10 = assert_error
...=/opt/dovecot-1.0.rc17 --with-ssl=openssl --with-ssldir=/opt/openssl-0.9.7l --enable-shared --disable-ipv6 --with-file-offset-size=32 make and make install ran without errors or warnings. The /opt/dovecot-1.0.rc17/var/log says: dovecot: Jan 16 11:20:05 Error: IMAP(kric0999): file lib.c: line 13 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE _T-1))) The error occures whenever i start my mail client and the authorization is successful. Cam anyone help me? Regards, Kevin Richter
2011 Oct 23
1
CentOS 4 Dovecot Problem
For those of you that still are running CentOS 4... I have one system that is still going... there is a problem with the newest release of Dovecot under mbox. Certain spam is causing this error when users try to log on. file lib.c: line 37 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE_T-1))) Rolling back to a previous release fixes these issues. I'm not bothering to file a bug with Redhat as the EOL is rapidly approaching and I just about have my one system's users moved to a new server. I have not as...
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...list; + struct kevent *event; + unsigned int old_size; + int fd = io->fd; + + list = data->fd_index[fd]; + if (list == NULL) { + if ((unsigned int) fd >= data->idx_size) { + /* grow the fd -> iolist array */ + old_size = data->idx_size; + + data->idx_size = nearest_power((unsigned int) fd+1); + + i_assert(data->idx_size < (size_t)-1 / sizeof(int)); + + data->fd_index = p_realloc(ioloop->pool, data->fd_index, + sizeof(int) * old_size, + sizeof(int) * data->idx_size); + } + + data->fd_index[fd] = list = + p_new(ioloop->...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...t ret, op, fd = io->fd; + struct io_list *list = data->fd_index[fd]; + struct epoll_event event; + + if (!list) { + if ((unsigned int) fd >= data->idx_size) { + /* grow the fd -> iolist array */ + unsigned int old_size = data->idx_size; + + data->idx_size = nearest_power((unsigned int) fd+1); + + i_assert(data->idx_size < (size_t)-1 / sizeof(int)); + + data->fd_index = p_realloc(ioloop->pool, data->fd_index, + sizeof(int) * old_size, + sizeof(int) * data->idx_size); + } + + data->fd_index[fd] = list = + p_new(ioloop->...
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
...0, EV_ADD | EV_CLEAR | EV_EOF, 0, 0, io}; + enum io_condition condition = io->condition; + + /* grow ctx->fds array if necessary */ + if ((size_t)io->fd >= ctx->fds_size) { + size_t old_size = ctx->fds_size; + + ctx->fds_size = nearest_power((unsigned int)io->fd+1); + i_assert(ctx->fds_size < (size_t)-1 / sizeof(int)); + + ctx->fds = p_realloc(ioloop->pool, ctx->fds, + sizeof(struct fdrecord) * old_size, + sizeof(stru...
2009 Dec 16
2
Build fix on HURD
I've made two little patches to allow dovecot to be compiled on GNU/Hurd. Could you review them? Kind regards, Marco Nenciarini -- --------------------------------------------------------------------- | Marco Nenciarini | Debian/GNU Linux Developer - Plug Member | | mnencia at prato.linux.it | http://www.prato.linux.it/~mnencia |