Hi maintainer,

I've attached a patch to the package that we're using to update to 0.52.
It seems to work nicely for us.

I've also put a diff of the unscd package which also adds a systemd unit
file (#795621) and adds a manpage (#789871) in addition to adding the
unit file here just in case that's helpful:
https://gist.github.com/chriskuehl/028df2a1b6ee183d104d

Obviously feel free to ignore my patches, just including in case they
are helpful.

Thanks for your work on Debian!
Chris

On Sat, Aug 15, 2015 at 01:42:13PM -0700, Chris Kuehl wrote:
> Package: unscd
> Version: 0.51-1+b2
> Severity: normal
> Tags: upstream
> 
> Howdy maintainer,
> 
> Happy Saturday!
> 
> We are seeing unscd segfaulting in what appears to be random situations
> shortly after startup.
> 
> https://gist.github.com/chriskuehl/0e16f6d87459eb693a66#file-gistfile1-txt-L6
> 
> Based on testing, it feels related to racing between our LDAP server
> startup and unscd, but we are not at all certain about that yet.
> 
> We're still trying to determine the exact cause and a reliable way to
> reproduce it, but in the mean time, we have found that upgrading to the
> latest upstream, version 0.52, seems to resolve these problems.
> 
> The diff between versions 0.51 and 0.52 is tiny:
> https://gist.github.com/chriskuehl/81b66552c14165aa55d4
> 
> Thanks for your work on Debian!
> Chris
> 
> 
> -- System Information:
> Debian Release: 8.1
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages unscd depends on:
> ii  libc6  2.19-18
> 
> unscd recommends no packages.
> 
> unscd suggests no packages.
> 
> -- Configuration Files:
> /etc/nscd.conf changed:
> debug-level 0
> enable-cache passwd yes
> positive-time-to-live passwd 3600
> negative-time-to-live passwd 20
> check-files passwd yes
> enable-cache group yes
> positive-time-to-live group 3600
> negative-time-to-live group 60
> check-files group yes
> enable-cache hosts yes
> positive-time-to-live hosts 30
> negative-time-to-live hosts 30
> check-files hosts yes
> 
> 
> -- no debconf information
diff -Nru unscd-0.51/debian/changelog unscd-0.52/debian/changelog
--- unscd-0.51/debian/changelog	2013-10-21 17:02:22.000000000 -0700
+++ unscd-0.52/debian/changelog	2015-08-15 16:45:41.204890882 -0700
@@ -1,3 +1,10 @@
+unscd (0.52-1ocf1) unstable; urgency=medium
+
+  * New upstream release (Closes: #795618)
+  * Update Debian standards version
+
+ -- Chris Kuehl <cku...@ocf.berkeley.edu>  Sat, 15 Aug 2015 13:24:33 -0700
+
 unscd (0.51-1) unstable; urgency=low
 
   * New upstream release
diff -Nru unscd-0.51/debian/control unscd-0.52/debian/control
--- unscd-0.51/debian/control	2013-10-21 15:41:49.000000000 -0700
+++ unscd-0.52/debian/control	2015-08-15 16:45:53.604439452 -0700
@@ -1,7 +1,7 @@
 Source: unscd
 Section: admin
 Priority: extra
-Standards-Version: 3.9.3
+Standards-Version: 3.9.6
 Build-Depends: debhelper (>= 9), groff-base
 Maintainer: Don Armstrong <d...@debian.org>
 Vcs-Browser: http://git.donarmstrong.com/unscd.git
diff -Nru unscd-0.51/nscd.c unscd-0.52/nscd.c
--- unscd-0.51/nscd.c	2013-10-21 15:37:00.000000000 -0700
+++ unscd-0.52/nscd.c	2015-08-15 13:31:30.000000000 -0700
@@ -144,8 +144,9 @@
  * 0.49   minor tweaks to messages
  * 0.50   add more files to watch for changes
  * 0.51   fix a case where we forget to refcount-- the cached entry
+ * 0.52   make free_refcounted_ureq() tolerant to pointers to NULLs
  */
-#define PROGRAM_VERSION "0.51"
+#define PROGRAM_VERSION "0.52"
 
 #define DEBUG_BUILD 1
 
@@ -1213,6 +1214,10 @@
 {
 	user_req *ureq = *ureqp;
 
+	/* (when exactly can this happen?) */
+	if (ureq == NULL)
+		return;
+
 	if (!CACHED_ENTRY(ureq))
 		return;
 

Reply via email to