Displaying 18 results from an estimated 18 matches for "io_loop_handle_remov".
Did you mean:
io_loop_handle_remove
2004 Aug 23
1
[PATCH] pass struct io * to io_loop_handle_add()/io_loop_handle_remove()
...t;condition);
+ io_loop_handle_add(current_ioloop, io);
/* have to append it, or io_destroy() breaks */
io_p = ¤t_ioloop->ios;
@@ -79,7 +79,7 @@ void io_remove(struct io *io)
i_assert(io->fd <= current_ioloop->highest_fd);
/* notify the real I/O handler */
- io_loop_handle_remove(current_ioloop, io->fd, io->condition);
+ io_loop_handle_remove(current_ioloop, io);
io->destroyed = TRUE;
diff -urpNX /usr/share/dontdiff dovecot-1.0-test32.vanilla/src/lib/ioloop-internal.h dovecot-1.0-test32/src/lib/ioloop-internal.h
--- dovecot-1.0-test32.vanilla/src/lib/ioloop-...
2006 Sep 22
1
Dovecot 1.0.rc7 ioloop-poll.c assertion failed after SIGHUP
...-login: SSL_read() syscall failed: No route to host [xxx.xxx.xxx.xxx]
> dovecot: Sep 22 07:45:05 Warning: SIGHUP received - reloading configuration
> dovecot: Sep 22 07:45:05 Error: Login process died too early - shutting down
> dovecot: Sep 22 07:45:05 Panic: file ioloop-poll.c: line 105 (io_loop_handle_remove): assertion failed: (index >= 0 && (unsigned int) index < ctx->fds_count)
and Dovecot had died. "someuser" was me, and I'd left my Thunderbird
client logged in (via IMAPS) by mistake when I hibernated my PC last night.
I'd seen exactly the same assert on a test...
2006 Mar 11
2
dovecot-1.0b3 kevent error/warning message
i use openbsd/i386, dovecot-1.0b3,
i see some kevent error/warning message in maillog like this:
--------------------------------------------------------
imap(username): kevent(1) in io_loop_handle_add() failed: Bad file
descriptor
imap(username): kevent(1) in io_loop_handle_remove failed: Bad file
descriptor
--------------------------------------------------------
2004 Aug 25
0
[PATCH] move highest_fd calculations to ioloop-select.c
...nt_ioloop->highest_fd = io->fd;
-
io_loop_handle_add(current_ioloop, io);
/* have to append it, or io_destroy() breaks */
@@ -76,17 +55,11 @@ void io_remove(struct io *io)
return;
}
- i_assert(io->fd <= current_ioloop->highest_fd);
-
/* notify the real I/O handler */
io_loop_handle_remove(current_ioloop, io);
io->destroyed = TRUE;
- /* check if we removed the highest fd */
- if (io->fd == current_ioloop->highest_fd)
- update_highest_fd(current_ioloop);
-
io->fd = -1;
}
@@ -275,7 +248,6 @@ struct ioloop *io_loop_create(pool_t poo
ioloop = p_new(pool,...
2017 Jun 02
1
updated to dove 2.30.1 and still the same error ....
Well.. updated to 2.30.1 hoping it would fix this mysterious seg fault
... ,but nope ...
auth: Fatal: master: service(auth): child 14502 killed with signal 11
(core dumped)
the core dump shows
gdb) bt #0 0x00007f7ff4a06bee in ?? ()
#1 0x00007f7ff74a4f44 in io_loop_handle_remove () from
/usr/local/lib/dovecot/libdovecot.so.0
#2 0x00007f7ff74a3765 in io_remove_full () from
/usr/local/lib/dovecot/libdovecot.so.0
#3 0x00007f7ff7438b62 in master_service_deinit () from
/usr/local/lib/dovecot/libdovecot.so.0
#4 0x00000000004307ef in main ()
no symbols are available as t...
2007 Feb 12
1
Problems with HUP'ing dovecot
Hi,
I'm running dovecot 1.0.rc7 on FreeBSD 6.1, so far with great
success. Earlier today I tried to HUP the main process, the following
was logged:
dovecot: Feb 12 15:10:19 Warning: SIGHUP received - reloading
configuration
dovecot: Feb 12 15:10:19 Panic: file ioloop-poll.c: line 105
(io_loop_handle_remove): assertion failed: (index >= 0 && (unsigned
int) index < ctx->fds_count)
Of possible interest: just prior to issuing the HUP I had edited the /
etc/resolv.conf file to take out the first entry since that
particular DNS server went off line. I noticed that login attempts to...
2014 Nov 12
1
closed fd causes: lmtp(18385): Panic: epoll_ctl(del, 11) failed: Bad file descriptor
...ot-2.2.15/lib/dovecot/libdovecot.so.0(+0x934c6) [0x7fafdc2c04c6] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(+0x949d0) [0x7fafdc2c19d0] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fafdc2c0879] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(io_loop_handle_remove+0x129) [0x7fafdc2dcc85] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(+0xacf16) [0x7fafdc2d9f16] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(io_remove+0x1d) [0x7fafdc2d9f5d] -> /usr/local/dovecot-2.2.15/lib/dovecot/libdovecot.so.0(+0xbcd5c) [0x7fafdc2e9d5c] -> /...
2018 Apr 26
1
director stuck in inifite loop on 2.2.35
....0
#10 0x000055c8c350b46d in main ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x00007fb4ab11b06a in epoll_ctl () from target:/lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007fb4ab11b06a in epoll_ctl () from target:/lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fb4ab489873 in io_loop_handle_remove () from target:/usr/lib/dovecot/libdovecot.so.0
#2 0x00007fb4ab487adf in ?? () from target:/usr/lib/dovecot/libdovecot.so.0
#3 0x000055c8c35158b7 in ?? ()
#4 0x000055c8c3516b4a in ?? ()
#5 0x000055c8c3516d78 in ?? ()
#6 0x000055c8c35179e4 in doveadm_connections_ring_synced ()
#7 0x00007fb4ab...
2006 Jun 18
10
1.0 RC1 status
Today I finally caught up with my mail. I've now read all the mails from
the Dovecot list from this year and all my private mails from last few
years (totaling around 500 unread mails).
If you think there's still something I should have replied to, please
re-send it because I've either missed it or just skipped it for some
reason. (Except there are still a couple of mails from this
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
...>kq, &ev, 1, NULL, 0, NULL);
+ }
+ if (condition & (IO_WRITE | IO_ERROR))
+ {
+ ctx->fds[io->fd].mode |= condition;
+ ev.filter = EVFILT_WRITE;
+ kevent(ctx->kq, &ev, 1, NULL, 0, NULL);
+ }
+}
+
+
+void io_loop_handle_remove(struct ioloop *ioloop, struct io *io)
+{
+ struct ioloop_handler_context *ctx = ioloop->handler_context;
+ struct fdrecord * const fds = ctx->fds;
+ const int fd = io->fd;
+ struct kevent ev = {fd, 0, EV_DELETE, 0, 0, NULL};
+ enum io_condition conditio...
2005 Nov 28
1
dovecot 1.0.alpha4 hangs at auth
I'm using dovecot 1.0.alpha4 on a freebsd 5.3 i386 system. Dovecot is
configured to use mysql authentication and I'm running mysql 5.0.15 .
Everything works fine, but after a period of inactivity (20-30 minutes )
when I connect and try to authenticate it just hangs.
I noticed that the dovecot-auth worker process is not running anymore...
from looking at the source code I understand that
2006 Mar 21
1
FreeBSD 5.4/Dovecot 1.0.b3: lots of error messages
...r 21 10:06:17 Error: imap(yyy): mbox sync: UID
inserted in the middle of mailbox /var/mail/yyy (37352 > 36945, seq=1,
idx_msgs=2)
dovecot: Mar 21 10:06:18 Error: imap(yyy): kevent(1) in
io_loop_handle_add() failed: Bad file descriptor
dovecot: Mar 21 10:06:18 Error: imap(yyy): kevent(1) in
io_loop_handle_remove failed: Bad file descriptor
dovecot: Mar 21 10:06:22 Error: imap(yyy): mbox sync: UID
inserted in the middle of mailbox /var/mail/yyy (37354 > 36945, seq=1,
idx_msgs=205)
Most of the errors are the mbox sync messages. The users report that they
get all mails double, triple and more... I th...
2004 Oct 25
0
[PATCH] move iolist functions into separate file
...5,7 +93,7 @@ void io_loop_handle_add(struct ioloop *i
first = iolist_add(list, io);
event.data.ptr = list;
- event.events = epoll_event_mask(list);
+ event.events = iolist_events(list, IO_EPOLL_INPUT, IO_EPOLL_OUTPUT);
op = first ? EPOLL_CTL_ADD : EPOLL_CTL_MOD;
@@ -184,7 +122,7 @@ void io_loop_handle_remove(struct ioloop
last = iolist_del(list, io);
event.data.ptr = list;
- event.events = epoll_event_mask(list);
+ event.events = iolist_events(list, IO_EPOLL_INPUT, IO_EPOLL_OUTPUT);
op = last ? EPOLL_CTL_DEL : EPOLL_CTL_MOD;
@@ -224,7 +162,7 @@ void io_loop_handler_run(struct ioloop *
wh...
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...ize,
+ 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_del(list, io);
+
+ /* Check ios not yet added to the q...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...a->events_pos >= data->events_size) {
+ data->events_size = nearest_power(data->events_size + 1);
+
+ p_free(ioloop->pool, data->events);
+ data->events = p_new(ioloop->pool, struct epoll_event,
+ data->events_size);
+ }
+
+ data->events_pos++;
+}
+
+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 epoll_event event;
+ int ret, op;
+
+ i_assert(list);
+ i_assert(list->count > 0);
+
+ iolist_del(list, io);
+
+ event.data.p...
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...AD)
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->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, fil...
2005 Dec 15
2
Patch: More of kqueue() support.
...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_t)fd >= ctx->fds_size) {
@@ -103,10 +107,10 @@ void io_loop_handle_add(struct ioloop *i
void io_loop_handle_remove(struct ioloop *ioloop, struct io *io)
{
struct ioloop_handler_context *ctx = ioloop->handler_context;
+ const int fd = io->fd;
struct kevent ev = { fd, 0, EV_DELETE, 0, 0, NULL };
struct fdrecord *const fds = ctx->fds;
- const int fd = io->fd;...
2016 Apr 25
3
Kernel panic in dovecot-ee-lmtp on Debian 8
Hi list
I just realized that that I don not receive all mails in my mailbox
(running dovecot-ee 2.2.23.1-1 on Debian 8). On my frontend servers
(running postfix) the queue fills up with mails that cannot be delivered
via lmtp to my backend servers. The error message on the frontend is
"lost connection with backend while sending data"
When I checked the logs on the backend server I found