Displaying 20 results from an estimated 20 matches for "o_stream_flush".
2013 Nov 12
2
dovecot-2.2.7: Fatal: master: service(imap): child 49545 killed with signal 11 (core dumped)
...any coredummps, below is backtrace:
$ echo "bt"|gdb ....
#0 o_stream_zlib_flush (stream=0xc8be5b27640) at ostream-zlib.c:222
222 if (o_stream_zlib_send_flush(zstream) < 0)
(gdb) #0 o_stream_zlib_flush (stream=0xc8be5b27640) at ostream-zlib.c:222
#1 0x00007a695e8f09cd in o_stream_flush
(stream=stream at entry=0xc8be5b276d0) at ostream.c:147
#2 0x00007a695e83c06f in o_stream_zlib_close (stream=0xc8be5b27640,
close_parent=true) at ostream-zlib.c:35
#3 0x00007a695e8f0375 in o_stream_close_full
(stream=stream at entry=0xc8be5b276d0,
close_parents=close_parents at entry=true) at ost...
2003 Oct 16
2
Copy from INBOX to INBOX corrupts file
...you use io_add() to schedule
write operations for later while simultanously reading
new chunks from the very same file. This seems to
confuse dovecot and make it write the copy to the
strangest locations. I think when working within one
folder I should use either blocking IO or a lot
of calls to o_stream_flush()... what do you think?
Greetings,
Andy
2013 Nov 05
0
infinite loop (causing crash) whilst closing connection
...in o_stream_zlib_send_outbuf (zstream=0x1680b80)
at ostream-zlib.c:97
#305441 0x00007ff222f70fef in o_stream_zlib_send_flush (zstream=0x1680b80)
at ostream-zlib.c:182
#305442 0x00007ff222f711cb in o_stream_zlib_flush (stream=<optimized out>)
at ostream-zlib.c:222
#305443 0x00007ff2243f142d in o_stream_flush (stream=0x1680c10) at
ostream.c:147
#305444 0x00007ff222f70ddf in o_stream_zlib_close (stream=0x1680b80,
close_parent=true) at ostream-zlib.c:35
#305445 0x00007ff2243f12ce in o_stream_close_full (close_parents=true,
stream=0x1680c10) at ostream.c:49
#305446 o_stream_close (stream=0x1680c10) at ostr...
2014 Jun 23
4
OOM in Dovecot 2.2.13 imap
...11766e615a] -> /usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so(+0x5849) [0x7f1175692849] -> /usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so(+0x5982) [0x7f1175692982] -> /usr/lib/dovecot/modules/lib30_imap_zlib_plugin.so(+0x5b62) [0x7f1175692b62] -> /usr/lib/dovecot/libdovecot.so.0(o_stream_flush+0x4d) [0x7f11766e5d6d] ->
/usr/lib/dovecot/libdovecot.so.0(+0x85e2c) [0x7f11766e5e2c] -> dovecot/imap [USER IP UID fetch](client_output+0xe9) [0x7f1176e8d269] -> /usr/lib/dovecot/libdovecot.so.0(+0x879d5) [0x7f11766e79d5] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x4e) [0x7f11...
2014 Mar 28
1
Panic: file ostream-lzma.c: line 147: unreached. Dovecot 2.2.12 with zlib/XZ compression
...79ac26d4f] ->
/usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a)
[0x7fb79ac26e2a] -> /usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0)
[0x7fb79abe03b9] -> /usr/local/lib/dovecot/lib20_zlib_plugin.so(+0x5ca7)
[0x7fb799fd0ca7] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_flush+0x4d)
[0x7fb79ac4039d] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nflush+0xf)
[0x7fb79ac4085f] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nfinish+0x9)
[0x7fb79ac408a9] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(maildir_save_finish+0x2b1)
[0x7fb79aedb771] ->...
2005 Aug 24
0
verbose imap logging
...i_stream_close(client->input);
@@ -88,8 +100,11 @@
io_loop_stop(ioloop);
}
-void client_disconnect(struct client *client)
+void client_disconnect(struct client *client, const char *reason)
{
+ if (reason != NULL)
+ i_info("%s %s", reason, client_stats(client));
+
(void)o_stream_flush(client->output);
i_stream_close(client->input);
@@ -99,7 +114,7 @@
void client_disconnect_with_error(struct client *client, const char *msg)
{
client_send_line(client, t_strconcat("* BYE ", msg, NULL));
- client_disconnect(client);
+ client_disconnect(client, msg);
}
int...
2017 Nov 10
3
rawlog segfaults (error 4 in libdovecot.so.0.0.0)
Hello everybody,
i tried to debug imap sessions with the rawlog feature and rawlog
creates files but when i try to dump them doveadm tells me
[...] Error: zlib.read((file)): unexpected EOF at [...].
I looked at syslog files and i see, that rawlog gets
terminated with a segfault, e.g.:
segfault at 10 ip 00007ff6da362596 sp 00007fffe725a080 error 4 in
libdovecot.so.0.0.0[7ff6da2a4000+122000]
Is
2020 Feb 10
0
How to configure mail-filter plugin
...m < test.eml"
Error log:
Feb 10 10:00:21 lda(q1 at a.com)<18794><9ZN8EzW5QF5qSQAA0J78UA>: Debug: Namespace : Using permissions from /home/a.com/q1: mode=0700 gid=default
Feb 10 10:00:21 lda(q1 at a.com)<18794><9ZN8EzW5QF5qSQAA0J78UA>: Panic: file ostream.c: line 201 (o_stream_flush): assertion failed: (stream->stream_errno != 0)
Feb 10 10:00:21 lda(q1 at a.com)<18794><9ZN8EzW5QF5qSQAA0J78UA>: Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(backtrace_append+0x42) [0x7f049f4ef582] -> /usr/lib64/dovecot/libdovecot.so.0(backtrace_get+0x1e) [0x7f049f4ef6...
2004 Oct 26
1
Crash (segfault) while reading folder headers
...xt_commands ()
No symbol table info available.
#14 0x09c03b30 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#15 0x09c03a78 in ?? ()
No symbol table info available.
#16 0xbfefc278 in ?? ()
No symbol table info available.
#17 0x0808d918 in o_stream_flush ()
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
2014 May 06
0
on High Load using IMAPSYNC : Panic: file ostream-lzma.c: line 147: unreached. Dovecot 2.2.12 with zlib/XZ compression
....0(+0x67450) [0x7ff99d8ce450] ->
/usr/local/lib/dovecot/libdovecot.so.0(+0x6752e) [0x7ff99d8ce52e] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ff99d88955e] ->
/usr/local/lib/dovecot/lib20_zlib_plugin.so(+0x4f0a) [0x7ff99ce87f0a] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_flush+0x3e)
[0x7ff99d8e6dbe] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nflush+0xf)
[0x7ff99d8e71df] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nfinish+0x9)
[0x7ff99d8e7229] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(dbox_save_end+0x29)
[0x7ff99db7cfa9] ->
/usr/...
2011 Oct 31
1
Rewrite the ostream output method, to save messages in another directory.
...r.
Oct 27 15:14:24 brc dovecot: imap(alex at exemplo.com.br): Error:
o_stream_send_istream(/storage/gss/emexis/messages/
exemplo.com.br/alex/Maildir/.Emexis.Ext-Blacklist/tmp/1319735664.M568409P30815.brc)
failed: Bad file descriptor
Oct 27 15:14:24 brc dovecot: imap(alex at exemplo.com.br): Error:
o_stream_flush(/storage/gss/emexis/messages/
exemplo.com.br/alex/Maildir/.Emexis.Ext-Blacklist/tmp/1319735664.M568409P30815.brc)
failed: Bad file descriptor
Oct 27 15:14:24 brc dovecot: imap(alex at exemplo.com.br): Error:
write(/storage/gss/emexis/messages/
exemplo.com.br/alex/Maildir/.Emexis.Ext-Blacklist/tmp/1...
2018 Apr 23
2
imap-login segfaulting on 2.3.1
Hello,
I have a new director ring I am setting up on centos 7 with dovecot
2.3.1. I haven't been able to replecate this in testing, but as soon as
I start pushing production traffic to the new ring I see dozens of these in the
logs:
Apr 18 00:34:00 d.director.imapd.sonic.net kernel: imap-login[163107]: segfault at 10 ip 00007ff625698dd5sp 00007ffe4b77bb28 error 4 in
2014 May 06
1
WG: on High Load using IMAPSYNC : Panic: file ostream-lzma.c: line 147: unreached. Dovecot 2.2.12 with zlib/XZ compression
....0(+0x67450) [0x7ff99d8ce450] ->
/usr/local/lib/dovecot/libdovecot.so.0(+0x6752e) [0x7ff99d8ce52e] ->
/usr/local/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7ff99d88955e] ->
/usr/local/lib/dovecot/lib20_zlib_plugin.so(+0x4f0a) [0x7ff99ce87f0a] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_flush+0x3e)
[0x7ff99d8e6dbe] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nflush+0xf)
[0x7ff99d8e71df] ->
/usr/local/lib/dovecot/libdovecot.so.0(o_stream_nfinish+0x9)
[0x7ff99d8e7229] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(dbox_save_end+0x29)
[0x7ff99db7cfa9] ->
/usr/...
2011 Dec 09
1
Two recent issues
....so.0 [0x345443ca90] ->
/usr/lib64/dovecot/libdovecot.so.0 [0x345443cae6] ->
/usr/lib64/dovecot/libdovecot.so.0 [0x345443c4a3] ->
/usr/lib64/dovecot/lib20_zlib_plugin.so [0x2ba2d31547f6] ->
/usr/lib64/dovecot/lib20_zlib_plugin.so [0x2ba2d315481b] ->
/usr/lib64/dovecot/libdovecot.so.0(o_stream_flush+0x2a) [0x345444f0ea]
-> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_save_finish+0x6b)
[0x3451c63b6b] -> /usr/lib64/dovecot/lib10_quota_plugin.so
[0x2ba2d2f4ce7a] ->
/usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_finish+0x30)
[0x3451c2fbb0] ->
/usr/lib64/dovecot/libdoveco...
2020 Feb 08
0
mail_filter plugin: failed: EOF without input (Gedalya)
...4mbmJzcDs8L3A+PHA+Jm5ic3A7PC9wPjxwPiZuYnNwOzwvcD4tLS0t
PGRpdiBpZD0iY3MyY19tYWlsX3NpZ2F0dXJlIj48L2Rpdj48cD48L3A+
--nsmail-7bjyg3nr5o-7bmibqhut9--
But the log appears:
Feb 08 19:14:18 lda(q1 at a.com)<71012><m+U/KQqYPl5kFQEA0J78UA>: Panic: file ostream.c: line 201 (o_stream_flush): assertion failed: (stream->stream_errno != 0)
Feb 08 19:14:18 lda(q1 at a.com)<71012><m+U/KQqYPl5kFQEA0J78UA>: Error: Raw backtrace: /opt/svn/nsmail-dovecot-2.3.9_4/src/lib- dovecot/.libs/libdovecot.so.0(backtrace_append+0x42) [0x7f60cc7cc5c2] -> /opt/...
2011 Jun 08
7
save failed to INBOX: Not enough disk space
Hi
I migrated to dovecot 2 and I started using lmtp for mail delivery.
But I have found this on my logs "save failed to INBOX: Not enough disk space" .
There is enougth space on disk. and I am not using quota plugin on lmtp
my lmtp conf is as follow:
#
## LMTP specific settings
##
# Support proxying to other LMTP/SMTP servers by performing passdb lookups.
#lmtp_proxy = no
# When
2019 Sep 05
2
mail_filter and mail_filter_out broken somewhere between 2.2.27 and 2.3.4, problem still exists in git
...at scratch-b6fd8bdd#011 To: Test <fincham at scratch-b6fd8bdd> From: Test <fincham at scratch-b6fd8bdd> Subject: This is the test e-mail
Sep 5 02:18:12 scratch-b6fd8bdd dovecot: lda(fincham at scratch-b6fd8bdd)<4213><94f8BWRwcF11EAAA/w3Ckw>: Panic: file ostream.c: line 201 (o_stream_flush): assertion failed: (stream->stream_errno != 0)
Sep 5 02:18:12 scratch-b6fd8bdd dovecot: lda(fincham at scratch-b6fd8bdd)<4213><94f8BWRwcF11EAAA/w3Ckw>: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0xef5fb) [0x7f85ed0715fb] -> /usr/lib/dovecot/libdovecot.so.0(+0xef661)...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
...io_stream_set_error'
.libs/libssl_iostream_openssl.so: undefined reference to `i_fatal'
.libs/libssl_iostream_openssl.so: undefined reference to `str_c'
.libs/libssl_iostream_openssl.so: undefined reference to `o_stream_send'
.libs/libssl_iostream_openssl.so: undefined reference to `o_stream_flush'
.libs/libssl_iostream_openssl.so: undefined reference to `buffer_delete'
.libs/libssl_iostream_openssl.so: undefined reference to
`o_stream_set_flush_pending'
.libs/libssl_iostream_openssl.so: undefined reference to `o_stream_uncork'
.libs/libssl_iostream_openssl.so: undefined ref...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...&&
+ strcasecmp(args->_data.str, "CATENATE") == 0)
+ return TRUE;
+ args++;
+ }
+ return FALSE;
+}
+
+static void catenate_solicit(struct cmd_append_context *ctx, bool nonsync)
+{
+ if (!nonsync) {
+ o_stream_send(ctx->client->output, "+ OK\r\n", 6);
+ o_stream_flush(ctx->client->output);
+ o_stream_uncork(ctx->client->output);
+ o_stream_cork(ctx->client->output);
+ }
+}
+
+static bool catenate_url_validate(const struct imap_url_parts *parts,
+ const char **error)
+{
+ // user: absent; RFC 3501 "userid"
+ if (parts->user !...