3.6.4 INTERNAL ERROR: Signal 11

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Apr 12 04:19:12 MDT 2012


On Wed, Apr 11, 2012 at 04:16:53PM -0700, Andrew Morgan wrote:
> I just upgraded to Samba v3.6.4 on Solaris 10 (previously running
> v3.5.12).  After the upgrade, I found that nothing was being logged
> to my syslog host anymore, so I started playing around with the "log
> level" setting.  I ended up discovering a crash bug that is
> triggered by setting "log level = 3" and attempting to connect to
> the share.
> 
> I have attached my redacted smb.conf, log file, and GDB backtrace.
> 
> I don't know if the problem is related, but I still would like to
> get syslog logging working too!  :)
> 
> Let me know if there is more information needed.

Does the attached patch help?

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 911cb5448c4ce197eadd7c83b512f867d4fbf14e Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Thu, 12 Apr 2012 12:15:50 +0200
Subject: [PATCH] s3: Fix a segfault with debug level 3 on Solaris

printf can not deal with NULL strings
---
 source3/smbd/password.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index ddc7ad1..f032a56 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -294,7 +294,8 @@ int register_existing_vuid(struct smbd_server_connection *sconn,
 
 	DEBUG(3, ("register_existing_vuid: User name: %s\t"
 		  "Real name: %s\n", vuser->session_info->unix_name,
-		  vuser->session_info->info3->base.full_name.string));
+		  vuser->session_info->info3->base.full_name.string ?
+		  vuser->session_info->info3->base.full_name.string : ""));
 
 	if (!vuser->session_info->security_token) {
 		DEBUG(1, ("register_existing_vuid: session_info does not "
-- 
1.7.5.4



More information about the samba-technical mailing list