[Pkg-samba-maint] r3355 - in branches/ctdb/squeeze/debian: . patches

sathieu at alioth.debian.org sathieu at alioth.debian.org
Tue Mar 2 08:05:23 UTC 2010


Author: sathieu
Date: 2010-03-02 08:05:20 +0000 (Tue, 02 Mar 2010)
New Revision: 3355

Added:
   branches/ctdb/squeeze/debian/patches/90_prevent-log-crash.diff
Modified:
   branches/ctdb/squeeze/debian/changelog
   branches/ctdb/squeeze/debian/patches/series
Log:
90_prevent-log-crash.diff: Cherry-pick one patch to prevent crashes


Modified: branches/ctdb/squeeze/debian/changelog
===================================================================
--- branches/ctdb/squeeze/debian/changelog	2010-03-02 07:13:58 UTC (rev 3354)
+++ branches/ctdb/squeeze/debian/changelog	2010-03-02 08:05:20 UTC (rev 3355)
@@ -1,3 +1,9 @@
+ctdb (1.0.111.really.1.0.108-2) unstable; urgency=low
+
+  * 90_prevent-log-crash.diff: Cherry-pick one patch to prevent crashes
+
+ -- Mathieu Parent <sathieu at debian.org>  Tue, 02 Mar 2010 09:04:45 +0100
+
 ctdb (1.0.111.really.1.0.108-1) unstable; urgency=low
 
   * Back to 1.0.108 which works better with samba 3.4.x and 3.5.0

Added: branches/ctdb/squeeze/debian/patches/90_prevent-log-crash.diff
===================================================================
--- branches/ctdb/squeeze/debian/patches/90_prevent-log-crash.diff	                        (rev 0)
+++ branches/ctdb/squeeze/debian/patches/90_prevent-log-crash.diff	2010-03-02 08:05:20 UTC (rev 3355)
@@ -0,0 +1,23 @@
+From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
+Date: Mon, 14 Dec 2009 23:45:18 +0000 (+1100)
+Subject: When setting up the logging, set the event to trigger a read of a log message from ...
+X-Git-Tag: ctdb-1.0.113~9
+X-Git-Url: http://git.samba.org/?p=sahlberg%2Fctdb.git;a=commitdiff_plain;h=ea9e39369379939abf6a4076fa2014c10c1a9ad0
+
+When setting up the logging, set the event to trigger a read of a log message from a child process as a child of the "log" structure and not the ctdb structure,
+or else we can crash if we receive log messages from a child but the log structure has been freed()
+---
+
+diff --git a/server/ctdb_logging.c b/server/ctdb_logging.c
+index 9aba7f8..770deb6 100644
+--- a/server/ctdb_logging.c
++++ b/server/ctdb_logging.c
+@@ -509,7 +509,7 @@ int ctdb_set_child_logging(struct ctdb_context *ctdb)
+ 		return -1;
+ 	}
+ 
+-	event_add_fd(ctdb->ev, ctdb, p[0], EVENT_FD_READ, 
++	event_add_fd(ctdb->ev, ctdb->log, p[0], EVENT_FD_READ, 
+ 		     ctdb_log_handler, ctdb->log);
+ 	set_close_on_exec(p[0]);
+ 	ctdb->log->pfd = p[0];

Modified: branches/ctdb/squeeze/debian/patches/series
===================================================================
--- branches/ctdb/squeeze/debian/patches/series	2010-03-02 07:13:58 UTC (rev 3354)
+++ branches/ctdb/squeeze/debian/patches/series	2010-03-02 08:05:20 UTC (rev 3355)
@@ -2,3 +2,4 @@
 05-hurd.diff
 10_no-lib64.diff
 60-spelling-errors.diff
+90_prevent-log-crash.diff




More information about the Pkg-samba-maint mailing list