search for: p_realloc

Displaying 9 results from an estimated 9 matches for "p_realloc".

2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...LL) { + 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->pool, struct io_list, 1); + } + + if (data->events_pos >= data->events_size) { + old_size = data->events_size;...
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
.../ + 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(struct fdrecord) * ctx->fds_size); + memset(ctx->fds + old_size, 0, + sizeof(struct fdrecord) * (ctx->fd...
2017 Mar 22
0
replicator crashing - oom
...ta-stack.c:396 #7 0x00007fddaf9bf0ca in t_malloc (size=size at entry=536870912) at data-stack.c:442 #8 0x00007fddaf9da5f8 in pool_data_stack_realloc (pool=<optimized out>, mem=0x7fdd99f59038, old_size=268435449, new_size=536870912) at mempool-datastack.c:126 #9 0x00007fddaf9bcc42 in p_realloc (new_size=<optimized out>, old_size=<optimized out>, mem=<optimized out>, pool=<optimized out>) at mempool.h:88 #10 buffer_alloc (buf=buf at entry=0xf849a8, size=536870912) at buffer.c:36 #11 0x00007fddaf9bcfb4 in buffer_check_limits (data_size=32, pos=268435424, buf=...
2017 Mar 24
3
replicator crashing - oom
...ta-stack.c:396 #7 0x00007fddaf9bf0ca in t_malloc (size=size at entry=536870912) at data-stack.c:442 #8 0x00007fddaf9da5f8 in pool_data_stack_realloc (pool=<optimized out>, mem=0x7fdd99f59038, old_size=268435449, new_size=536870912) at mempool-datastack.c:126 #9 0x00007fddaf9bcc42 in p_realloc (new_size=<optimized out>, old_size=<optimized out>, mem=<optimized out>, pool=<optimized out>) at mempool.h:88 #10 buffer_alloc (buf=buf at entry=0xf849a8, size=536870912) at buffer.c:36 #11 0x00007fddaf9bcfb4 in buffer_check_limits (data_size=32, pos=268435424, buf=...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...(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->pool, struct io_list, 1); + } + + iolist_add(list, io); + + event.data.ptr = list; + event.events = epoll_event_mask(list);...
2005 Sep 09
1
1.0alpha1: stack frame core
.... ) at mempool-datastack.c:112 112 i_panic("pool_data_stack_realloc(): stack frame changed"); (gdb) print pool Variable "pool" is not available. (gdb) up #5 0x00067d60 in buffer_alloc (buf=0x98500, size=1024) at buffer.c:32 32 buf->w_buffer = p_realloc(buf->pool, buf->w_buffer, buf->alloc, size); (gdb) print *buf $1 = {r_buffer = 0x98520 "\"name\" {539}\r\n", used = 14, w_buffer = 0x98520 "\"name\" {539}\r\n", dirty = 36, alloc = 256, pool = 0x984d0, alloced = 1, dynamic = 1} (gdb) print *(buf-...
2017 Mar 22
2
replicator crashing - oom
Where would I find the core file? I'm not finding anything obvious. The replicator path is /usr/local/libexec/dovecot/replicator Daniel On 3/22/2017 12:52 AM, Aki Tuomi wrote: > Can you provide us gdb bt full dump? > > gdb /usr/libexec/dovecot/replicator /path/to/core > > on some systems, it's /usr/lib/dovecot/replicator > > Aki > > On 21.03.2017 23:48,
2017 Mar 21
3
replicator crashing - oom
I have the following in my log: Mar 21 14:46:59 bubba dovecot: replicator: Panic: data stack: Out of memory when allocating 1073741864 bytes Mar 21 14:46:59 bubba dovecot: replicator: Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0(+0x97c90) [0x7f4638a7cc90] -> /usr/local/lib/dovecot/libdovecot.so.0(+0x97d6e) [0x7f4638a7cd6e] ->
2005 Jun 15
6
Compressed maildir
Greetings, I noticed a while back someone posted a patch/plugin that allowed Dovecot to use compressed mbox files. I'm now wondering how far that would put us from having compressed maildir? I have a server with more CPU than disk space, and while I can buy more HDD space, my backup solution doesn't make that practical. It seems to me that when looking for a message file, if it