[Dovecot] 2.0.beta3 imapd running hot

Bernhard Schmidt berni at birkenwald.de
Sun Mar 28 22:34:19 EEST 2010


On 21.03.2010 15:17, Timo Sirainen wrote:

Hi Timo,

> It would be helpful to find out what the I/O function is that is being
> called. For example:
>
> b ioloop-epoll.c:208
> p *io
> cont
> p *io
> cont
> ..etc..
>
> What is the *io output? If it's client_output() or something else as
> generic.. Use "step" to get into the function then then:
>
> p *client
> p *client.output_lock
> p client.command_queue[0]
> p client.command_queue[1]
> p client.command_queue[2]

(gdb) bt
#0  stream_send_io (fstream=0x179a570) at ostream-file.c:464
#1  0x00007fbaa9a69775 in io_loop_handler_run (ioloop=<value optimized 
out>) at ioloop-epoll.c:208
#2  0x00007fbaa9a688f8 in io_loop_run (ioloop=0x177e5f0) at ioloop.c:350
#3  0x00007fbaa9a58d63 in master_service_run (service=0x177e4c0, 
callback=0) at master-service.c:486
#4  0x00000000004186c1 in main (argc=1, argv=0x177e3a0) at main.c:323
(gdb) b ioloop-epoll.c:208
Breakpoint 1 at 0x7fbaa9a69767: file ioloop-epoll.c, line 208.
(gdb) p *io
No symbol "io" in current context.
(gdb) cont
Continuing.

Breakpoint 1, io_loop_handler_run (ioloop=<value optimized out>) at 
ioloop-epoll.c:208
208	ioloop-epoll.c: Datei oder Verzeichnis nicht gefunden.
	in ioloop-epoll.c
(gdb) p *io
$1 = {io = {condition = IO_WRITE, callback = 0x7fbaa9a715c0 
<stream_send_io>, context = 0x179a570, ioloop = 0x177e5f0},
   prev = 0x182a460, next = 0x177f350, refcount = 1, fd = 10}
(gdb)

(gdb) cont
Continuing.

Breakpoint 1, io_loop_handler_run (ioloop=<value optimized out>) at 
ioloop-epoll.c:208
208	in ioloop-epoll.c
(gdb) p *io
$2 = {io = {condition = IO_WRITE, callback = 0x7fbaa9a715c0 
<stream_send_io>, context = 0x179a570, ioloop = 0x177e5f0},
   prev = 0x182a460, next = 0x177f350, refcount = 1, fd = 10}
(gdb) step
207	in ioloop-epoll.c
(gdb) p *client
No symbol "client" in current context.

I am pretty sure it is related to imap_zlib ... at least this did not 
happen when I disabled the plugin.

I'm on revision 10993 at the moment.

Bernhard


More information about the dovecot mailing list