Displaying 19 results from an estimated 19 matches for "ev_add".
2016 Jul 01
2
kqueue crash on FreeBSD with 2.2.25
Hi,
2.2.25 crashes on FreeBSD with a kqueue-related message. I see references to something similar (http://www.dovecot.org/list/dovecot/2012-February.txt) from a couple years ago.
I get:
Jul 1 10:07:27 imap dovecot: master: Panic: kevent(EV_ADD, READ, 54) failed: Bad file descriptor
It's not dumping core, and I get the message even with "protocols ="
Downgrading back to 2.2.24 fixes it. What info would be helpful for me to provide here?
# Adam
--
Adam Weinberger
adamw at adamw.org
http://www.adamw.org
2016 Jul 02
5
kqueue crash on FreeBSD with 2.2.25
...gt;
>> Hi,
>>
>> 2.2.25 crashes on FreeBSD with a kqueue-related message. I see references to something similar (http://www.dovecot.org/list/dovecot/2012-February.txt) from a couple years ago.
>>
>> I get:
>> Jul 1 10:07:27 imap dovecot: master: Panic: kevent(EV_ADD, READ, 54) failed: Bad file descriptor
>>
>> It's not dumping core, and I get the message even with "protocols ="
>>
>> Downgrading back to 2.2.24 fixes it. What info would be helpful for me to provide here?
>
> gdb backtrace: http://dovecot.org/bugrep...
2016 Jul 04
3
kqueue crash on FreeBSD with 2.2.25
On 16-07-03 03:30:36, Timo Sirainen wrote:
> On 02 Jul 2016, at 03:30, Adam Weinberger <adamw at adamw.org> wrote:
> >
> >>> Jul 1 10:07:27 imap dovecot: master: Panic: kevent(EV_ADD, READ, 54) failed: Bad file descriptor
> >>>
> >>> It's not dumping core, and I get the message even with "protocols ="
> >>>
> >>> Downgrading back to 2.2.24 fixes it. What info would be helpful for me to provide here?
> >>...
2016 Jul 27
2
Dovecot v2.2.25 crashed on startup in Mac OSX
.../local/sbin/dovecot
It consistently crash on startup with the following entries in
/var/log/mail.log (edited backtrace):
Jul 27 07:39:26 macbook-pro dovecot[70234]: master: Dovecot v2.2.25
(7be1766) starting up for imap, pop3, lmtp
Jul 27 07:39:26 macbook-pro dovecot[70234]: master: Panic: kevent(EV_ADD,
READ, 60) failed: Bad file descriptor
Jul 27 07:39:26 macbook-pro dovecot[70234]: master: Error: Raw backtrace:
2 libdovecot.0.dylib 0x00000001000dc3fb
default_fatal_finish + 43
-> 3 libdovecot.0.dylib 0x00000001000dd4e0
syslog_handler + 0
-> 4 d...
2011 Nov 19
2
issues with 2.1b1 on OS X
...PLUGIN_LDFLAGS="-no-undefined"
if test "$with_gnu_ld" = yes; then
NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed"
fi
More important, Dovecot aborts on launch with the following error:
Nov 19 10:23:52 kerio2 dovecot[33553]: master: Fatal: kevent(EV_ADD,
READ, 16) failed: Invalid argument
I configured using the same args as I had used successfully on 2.0.15:
--with-gssapi --with-ldap --with-sql --prefix=/opt/dovecot-2.X.X. I also
tried an exact copy of my known-good config from 2.0.15, to no avail.
Thanks,
Tony
2018 Oct 24
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
...tl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12 (0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13188,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x2ab,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11...
2009 May 24
1
Problems with ioloop on MacOS
I've been using the macports version of dovecot, which is 1.1.11, on
MacOS 10.5.6
$ /opt/local/sbin/dovecot --exec-mail imap
Fatal: kevent(EV_ADD, 0) failed: Operation not supported
This version is configured --with-ioloop=kqueue
The problem seems to be known, if not understood:
http://lists.apple.com/archives/Darwin-userlevel/2008/Dec/msg00010.html
However, if I use --with-ioloop=poll, I eventually get
IMAP(dave): [9079]: invalid I/O...
2006 Aug 16
9
BSD people, please test kqueue changes
...d guess the hangs caused by recent RC versions were because the
default was to use notify=kqueue instead of notify=none. I changed this
back to none unless --with-ioloop=kqueue is used.
There are a couple of things in the code that I'm not completely sure
of. The kqueue() manual page says that EV_ADD "modifies" the event if it
already exists. What exactly does that mean? Does it mean that the
filter is replaced, or that it's ORed into the existing one? The same
question for the EV_DELETE, does it delete everything or only those
filters given in parameters?
The code currently assu...
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:
2018 Oct 24
2
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
Nothing, the same error
Oct 24 10:11:16 server dovecot:
imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: kevent(-1) for
notify remove failed: Bad file descriptor
Oct 24 10:11:16 server dovecot:
imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: close(-1) for
notify remove failed: Bad file descriptor
Oct 24 10:11:16 server dovecot: imap-hibernate:
2003 Aug 19
1
kqueue freezing 5.1R on kevent call
...; );
exit( 1 );
}
if( listen( sock, 32 ) < 0 ) {
perror( "listen" );
exit( 1 );
}
/* Must add the socket to the kqueue for it to crash */
events[ 0 ].ident = sock;
events[ 0 ].udata = 0;
events[ 0 ].filter = EVFILT_READ;
events[ 0 ].flags = EV_ADD;
ktime.tv_sec = 1;
ktime.tv_nsec = 0;
/* CRASHES HERE ITSELF */
i = kevent( queue, events, 1, events, 10, &ktime );
printf( "kevent() returned %d\n", i );
printf( "Closing socket\n" );
/* CRASH!!! Must be a shutdown() call, close() alone won't do...
2005 Dec 15
2
Patch: More of kqueue() support.
...->handler_context->fds);
p_free(ioloop->pool, ioloop->handler_context);
@@ -66,8 +70,8 @@ void io_loop_handle_add(struct ioloop *i
{
struct ioloop_handler_context *ctx = ioloop->handler_context;
const int fd = io->fd;
- struct kevent ev = {fd, 0, EV_ADD | EV_CLEAR | EV_EOF, 0, 0, NULL};
- enum io_condition condition = io->condition;
+ struct kevent ev = { fd, 0, EV_ADD | EV_EOF, 0, 0, NULL };
+ enum io_condition condition = io->condition & MASK;
/* grow ctx->fds array if necessary */
if ((size_...
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
...->pool, ioloop->handler_context->fds);
+ p_free(ioloop->pool, ioloop->handler_context);
+}
+
+
+void io_loop_handle_add(struct ioloop *ioloop, struct io *io)
+{
+ struct ioloop_handler_context *ctx = ioloop->handler_context;
+ struct kevent ev = {io->fd, 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_p...
2012 Feb 16
2
v2.1.0 released
http://dovecot.org/releases/2.1/dovecot-2.1.0.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.0.tar.gz.sig
Here's finally the the stable v2.1 release. I expect this release to be quite stable, since it's already being used in several large installations.
Changes since rc7: FS layout related crashfix, two man pages added.
The biggest changes since v2.0:
* Plugins now use UTF-8
2012 Feb 16
2
v2.1.0 released
http://dovecot.org/releases/2.1/dovecot-2.1.0.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.0.tar.gz.sig
Here's finally the the stable v2.1 release. I expect this release to be quite stable, since it's already being used in several large installations.
Changes since rc7: FS layout related crashfix, two man pages added.
The biggest changes since v2.0:
* Plugins now use UTF-8
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...->events,
+ sizeof(int) * old_size,
+ sizeof(int) * data->events_size);
+ }
+ data->events_pos++;
+
+ iolist_add(list, io);
+
+ event = data->events + data->events_changed;
+ data->events_changed++;
+
+ EV_SET(event, fd, iolist_events(list, EVFILT_READ, EVFILT_WRITE),
+ EV_ADD | EV_EOF, 0, 0, io);
+}
+
+void io_loop_handle_remove(struct ioloop *ioloop, struct io *io)
+{
+ struct ioloop_handler_data *data = ioloop->handler_data;
+ struct io_list *list = data->fd_index[io->fd];
+ struct kevent *event;
+ int i, changed = data->events_changed;
+
+ iolist_d...
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...uct ioloop *ioloop, int fd, int condition)
{
short filter;
struct ioloop_handler_data *data = ioloop->handler_data;
i_assert(fd >= 0);
if (condition & IO_READ)
filter |= EVFILT_READ;
if (condition & IO_WRITE)
filter |= EVFILT_WRITE;
EV_SET(&data->event, fd, filter, EV_ADD, 0, 0, NULL);
if (kevent(data->kq, &data->event, 1, NULL, 0, NULL) < 0) {
i_warning("couldn't add filter with kqueue: %m");
}
}
void io_loop_handle_remove(struct ioloop *ioloop, int fd, int condition)
{
short filter;
struct ioloop_handler_data *data = ioloop->ha...
2012 Mar 15
3
v2.1.2 released
http://dovecot.org/releases/2.1/dovecot-2.1.2.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.2.tar.gz.sig
There are a ton of proxying related improvements in this release. You
should now be able to do pretty much anything you want with Dovecot
proxy/director.
This release also includes the initial version of dsync-based
replication. I'm already successfully using it for @dovecot.fi
2012 Mar 15
3
v2.1.2 released
http://dovecot.org/releases/2.1/dovecot-2.1.2.tar.gz
http://dovecot.org/releases/2.1/dovecot-2.1.2.tar.gz.sig
There are a ton of proxying related improvements in this release. You
should now be able to do pretty much anything you want with Dovecot
proxy/director.
This release also includes the initial version of dsync-based
replication. I'm already successfully using it for @dovecot.fi