1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb
Martin Schwenke fbea9d3699 ctdb-daemon: Fix valgrind hit in event code
==25741== Syscall param write(buf) points to uninitialised byte(s)
==25741==    at 0x4939291: write (write.c:27)
==25741==    by 0x4868285: sys_write (sys_rw.c:68)
==25741==    by 0x13915D: sock_queue_trigger (sock_io.c:316)
==25741==    by 0x4DE6478: tevent_common_invoke_immediate_handler (in /usr/lib/x86_64-linux-gnu/libtevent.so.0.9.37)
==25741==    by 0x4DE64A2: tevent_common_loop_immediate (in /usr/lib/x86_64-linux-gnu/libtevent.so.0.9.37)
==25741==    by 0x4DEBE5A: ??? (in /usr/lib/x86_64-linux-gnu/libtevent.so.0.9.37)
==25741==    by 0x4DEA2D6: ??? (in /usr/lib/x86_64-linux-gnu/libtevent.so.0.9.37)
==25741==    by 0x4DE57E3: _tevent_loop_once (in /usr/lib/x86_64-linux-gnu/libtevent.so.0.9.37)
==25741==    by 0x15D1BA: ctdb_event_script_args (eventscript.c:821)
==25741==    by 0x13B437: ctdb_start_daemon (ctdb_daemon.c:1315)
==25741==    by 0x110642: main (ctdbd.c:393)
==25741==  Address 0x57888a4 is 100 bytes inside a block of size 144 alloc'd
==25741==    at 0x48357BF: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==25741==    by 0x4B9B7C0: talloc_named_const (in /usr/lib/x86_64-linux-gnu/libtalloc.so.2.1.14)
==25741==    by 0x15CCC6: eventd_client_write (eventscript.c:430)
==25741==    by 0x15CCC6: eventd_client_run (eventscript.c:556)
==25741==    by 0x15CCC6: ctdb_event_script_run (eventscript.c:649)
==25741==    by 0x15D198: ctdb_event_script_args (eventscript.c:812)
==25741==    by 0x13B437: ctdb_start_daemon (ctdb_daemon.c:1315)
==25741==    by 0x110642: main (ctdbd.c:393)
==25741==

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13659

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Oct 22 09:27:15 CEST 2018 on sn-devel-144
2018-10-22 09:27:15 +02:00
..
client ctdb-client: Switch to ETIMEDOUT instead of ETIME 2018-07-28 03:50:10 +02:00
cluster ctdb-cluster: Define cluster configuration file options 2018-05-17 04:04:30 +02:00
common ctdb-common: Set close-on-exec for startup fd 2018-10-22 06:04:20 +02:00
config ctdb-tests: Replace md5sum with posix cksum 2018-07-28 03:50:11 +02:00
database ctdb-config: Switch tunable TDBMutexEnabled to a config option 2018-08-24 10:59:21 +02:00
doc ctdb-doc: Remove PIDFILE option from ctdbd_wrapper man page 2018-09-12 21:50:57 +02:00
event ctdb-event: Check the return status of sock_daemon_set_startup_fd 2018-10-22 06:04:20 +02:00
failover ctdb-failover: Add failover configuration options 2018-08-24 10:59:21 +02:00
ib ctdb-ib: Drop a bit-rotted test example from the README 2018-03-19 02:23:17 +01:00
include ctdb-daemon: Drop implementation of RECEIVE_RECORDS control 2018-10-08 02:46:21 +02:00
packaging/RPM ctdb-packaging: Enable some standard event scripts if none are enabled 2018-07-11 11:48:39 +02:00
protocol ctdb-protocol: Drop marshalling code for RECEIVE_RECORDS control 2018-10-08 02:46:21 +02:00
server ctdb-daemon: Fix valgrind hit in event code 2018-10-22 09:27:15 +02:00
tcp ctdb: Remove double sanity checks from ctdb_tcp_read_cb 2018-04-04 09:31:04 +02:00
tests ctdb-tests: Improve counting of database records 2018-10-08 05:36:11 +02:00
tools ctdb-tools: Have onnode pass -n option even when regular ssh not in use 2018-10-08 02:46:23 +02:00
utils ctdb: add expiry test for ctdb_mutex_ceph_rados_helper 2018-08-09 16:26:36 +02:00
.bzrignore more code rearrangement 2007-06-07 22:16:48 +10:00
.gitignore ctdb-scripts: Move event scripts to events/legacy/ directory 2018-06-05 17:47:26 +02:00
configure ctdb-build: Allow configure and Makefile to find waf in tarball 2014-09-10 01:36:14 +02:00
configure.rpm ctdb-packaging: Package private libraries 2015-07-01 07:19:43 +02:00
COPYING add a licence file 2009-02-07 08:10:34 +11:00
Makefile ctdb-build: Add WAFLOCK magic to manpages target 2017-02-26 23:13:25 +01:00
README doc: README - add information about CTDB, license and website 2012-10-22 17:39:49 +11:00
wscript PY3: make sure print stmt is enclosed by '(' & ')' 2018-09-19 22:25:05 +02:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.