[Samba] Samba 4.1.11 smbd crashes regularly

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Aug 19 08:34:15 MDT 2014


On Sun, Aug 17, 2014 at 04:28:33PM +0200, Christian wrote:
> But now i have a full backtrace from gdb attached to this e-mail.

Can you try the attached patch?

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 153e8693b85523e67409896a9bfd150f68ec557c Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Tue, 19 Aug 2014 14:32:15 +0000
Subject: [PATCH] smbd: Properly initialize mangle_hash

---
 source3/smbd/mangle_hash.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/source3/smbd/mangle_hash.c b/source3/smbd/mangle_hash.c
index 8a44ea2..f3d8522 100644
--- a/source3/smbd/mangle_hash.c
+++ b/source3/smbd/mangle_hash.c
@@ -767,6 +767,10 @@ const struct mangle_fns *mangle_hash_init(void)
 {
 	mangle_reset();
 
+	if (chartest == NULL) {
+		init_chartest();
+	}
+
 	/* Create the in-memory tdb using our custom hash function. */
 	tdb_mangled_cache = tdb_open_ex("mangled_cache", 1031, TDB_INTERNAL,
 				(O_RDWR|O_CREAT), 0644, NULL, fast_string_hash);
-- 
1.8.1.2



More information about the samba mailing list