Displaying 20 results from an estimated 28 matches for "hash_lookup".
2009 Feb 10
2
Dovecot 1.1.11 segfaults on auth configuration error
...ld be appreciated.
# /opt/csw/sbin/dovecot -F
dovecot: Feb 06 22:56:24 Info: dovecot v1.1.11 starting up
dovecot: Feb 06 22:56:25 Error: child 26870 (auth) returned error 89 (Fatal failure)
Segmentation Fault (core dumped)
# /opt/SUNWspro/bin/dbx -f /opt/csw/sbin/dovecot core
(dbx) where
=>[1] hash_lookup(table = (nil), key = 0x68f6), line 159 in "hash.c"
[2] child_process_lookup(pid = 26870), line 31 in "child-process.c"
[3] log_it(log_io = 0x80b8598, line = 0x80b7d4a "DIGEST-MD5 mechanism can't be supported with given passdbs", continues = 0), line 129 in &quo...
2004 Oct 26
1
Crash (segfault) while reading folder headers
...und)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x08088225 in hash_lookup ()
(gdb) bt full
#0 0x08088225 in hash_lookup ()
No symbol table info available.
#1 0x08060784 in maildir_index_sync_readonly ()
No symbol table info available.
#2 0x0805e586 in maildir_open_mail ()
No symbol table info available.
#3 0x0806bf8a in index_mail_next ()
No symbol table info availab...
2007 Dec 10
1
dict: Leaked a t_pop() call in I/O handler
...3 or IMAP.
Searching through the code, I've found this (this is Dovecot v1.0.8):
---- src/dict/dict-cache.c ----
void dict_cache_unref(struct dict_cache *cache, const char *uri,
const char *username)
{
struct dict_entry *entry;
t_push();
entry = hash_lookup(cache->dicts,
t_strdup_printf("%s\t%s", username, uri));
i_assert(entry != NULL && entry->refcount > 0);
if (--entry->refcount == 0) {
hash_remove(cache->dicts, entry->user_uri);
dict_de...
2004 Mar 19
1
Case insensitive user names
I am trying to set up the Dovecot pop3 server for some virtual hosting I am doing and it is going well, I am generating a passwd file that points dovecot to the virtual users mailspool. The only thing that I don't have working is that my current pop3 server (NTMail) has case insensitve usernames. Dovecot doesn't. I was hoping there was just an option to turn on, but I didn't see
2009 Dec 13
1
Different PROXY for IMAP and POP3 using LDAP-auth
--------------------------------------------------
For all non german speaking people:
Oliver asked:
In an old posting I've read something about different proxy hosts for
IMAP and POP3.
http://www.dovecot.org/list/dovecot/2008-July/031885.html
I've got the same problem and want to ask you, if there is a patch for
replacing [variable names in] pass_attrs.
2008 Aug 01
1
1.1.2 segfaults when using passdb passwd and md5 mechanism
...imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
mechanisms: plain login gssapi digest-md5
passdb:
driver: passwd
args: blocking=yes
userdb:
driver: passwd
args: blocking=yes
Backtrace:
#0 0x0000000000410337 in hash_lookup (table=0x0, key=0xa85) at hash.c:159
node = <value optimized out>
#1 0x0000000000405dae in log_it (log_io=0x1736ee00,
line=0x1736f922 "DIGEST-MD5 mechanism can't be supported with
given passdbs", continues=false) at log.c:128
process = <value optimized ou...
2011 Dec 01
2
[PATCH 0/2] handle MD devices in fstab
Only change from previous post is explicitly checking md_map for NULL before
hash_free and lookup.
2011 Nov 25
2
[PATCH 0/2] MD device inspection
These patches are rebased on top of current master. In addition, I've made the
following changes:
* Fixed whitespace error.
* Functions return -1 on error.
* Added a debug message when guest contains md devices, but nothing was parsed
from mdadm.conf.
2011 Dec 02
3
[PATCH 1/3] build: Add more suppressions for valgrind tests
---
extratests/suppressions | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/extratests/suppressions b/extratests/suppressions
index 97d4b78..78ca4ab 100644
--- a/extratests/suppressions
+++ b/extratests/suppressions
@@ -3,19 +3,19 @@
Memcheck:Cond
fun:*
fun:numa_node_size64
- fun:numa_init
+ obj:/usr/lib64/libnuma.so.1
}
{
2006 Jun 26
1
[PATCH, RFC 0/13] OTP: add auth_cache_remove()
...ve(struct auth_cache *cache,
+ const struct auth_request *request,
+ const char *key)
+{
+ string_t *str;
+ struct cache_node *node;
+
+ str = t_str_new(256);
+ var_expand(str, key,
+ auth_request_get_var_expand_table(request,
+ auth_request_str_escape));
+
+ node = hash_lookup(cache->hash, str_c(str));
+ if (node == NULL)
+ return;
+
+ auth_cache_node_destroy(cache, node);
+}
diff -urdpNX /usr/share/dontdiff -x Makefile dovecot.vanilla/src/auth/auth-cache.h dovecot/src/auth/auth-cache.h
--- dovecot.vanilla/src/auth/auth-cache.h 2006-06-23 13:42:22.122508080 +0400
+++...
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck
mountpoints, so that's an improvement.
Rich.
2012 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review.
It enables FUSE support in the API via two new calls,
'guestfs_mount_local' and 'guestfs_umount_local'.
FUSE turns out to be very easy to deadlock (necessitating that the
machine be rebooted). Running the test from the third patch is
usually an effective way to demonstrate this. However I have not yet
managed to produce a simple reproducer that
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
...snprintf (path, sizeof path, "/dev/%s", d->d_name);
+ if (stat (path, &statbuf) == -1) {
+ perror (path);
+ continue;
+ }
+
+ /* st_rdev is in the hash? If so, it's an entry in the result. */
+ struct h1 h1, *r;
+ h1.dev = statbuf.st_rdev;
+ r = hash_lookup (hash1, &h1);
+ if (r) {
+ /* Key: UUID or label */
+ if (add_string (&ret, &size, &alloc, r->dname) == -1)
+ goto error;
+ /* Value: /dev/... */
+ if (add_string (&ret, &size, &alloc, path) == -1)
+ goto error;
+ }
+ }
+
+ if...
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly.
Previously 'mount-local' generating a 'mounted' event when the
filesystem was ready, and from the 'mounted' event you had to
effectively do a fork.
Now, 'mount-local' just initializes the mountpoint and you have to
call 'mount-local-run' to enter the FUSE main loop. Between these
calls you can do a fork or whatever
2011 Nov 23
8
[PATCH 0/8] Add MD inspection support to libguestfs
This series fixes inspection in the case that fstab contains references to md
devices. I've made a few changes since the previous posting, which I've
summarised below.
[PATCH 1/8] build: Create an MD variant of the dummy Fedora image
I've double checked that no timestamp is required in the Makefile. The script
will not run a second time to build fedora-md2.img.
[PATCH 2/8] build:
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
...ist if the directory cannot be opened.
+ */
+static char **
+read_dir (const char *name)
+{
+ static Hash_table *ht = NULL;
+
+ if (!ht)
+ ht = hash_initialize (1024, NULL, dir_cache_hash, dir_cache_compare, NULL);
+
+ struct dir_cache key = { .path = (char *) name };
+ struct dir_cache *p = hash_lookup (ht, &key);
+ if (p)
+ return p->files;
+
+ char **files = NULL;
+ size_t size = 0, alloc = 0;
+
+ DIR *dir = opendir (name);
+ if (!dir) {
+ /* If it fails to open, that's OK, skip to the end. */
+ /*perror (name);*/
+ goto done;
+ }
+
+ struct dirent *d;
+ for (;;)...
2017 Jan 12
3
[PATCH 0/3] library: improve handling of external tools
Hi,
the libguestfs library uses a number of external tools; for some of
them, we search for them at build time, enabling some feature only if
found, and later on assuming at runtime they are installed. However,
the situation is more complex than that:
- hardcoding the full path means that there is an incoherency in the
way some of the tools are used, as some other tools (e.g. qemu-img)
are
2017 Feb 02
4
[PATCH v2 0/3] library: improve handling of external tools
Hi,
the libguestfs library uses a number of external tools; for some of
them, we search for them at build time, enabling some feature only if
found, and later on assuming at runtime they are installed. However,
the situation is more complex than that:
- hardcoding the full path means that there is an incoherency in the
way some of the tools are used, as some other tools (e.g. qemu-img)
are
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use
__attribute__((cleanup(...))) to automatically free memory when
pointers go out of the current scope.
In general terms this seems to be a small win although you do have to
use it carefully. For functions where you can completely get rid of
the "exit code paths", it can simplify things. For a good example,
see the
2010 Aug 31
13
[PATCH v2] Add progress bars
This is an updated and extended version of the original patch:
https://www.redhat.com/archives/libguestfs/2010-August/msg00163.html
This adds OCaml and Perl bindings (both tested), support for
progress bars in virt-resize, and adds progress notifications
to a number of the simpler commands.
Still to do is to add progress messages to more commands. There
are still a few commands which would be