1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/server
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
..
ctdb_banning.c ctdb:banning: Improve debug message in ctdb_ban_node_event() 2016-06-01 14:02:20 +02:00
ctdb_call.c ctdb-server: Only set destructor if required 2018-03-31 03:45:51 +02:00
ctdb_client.c ctdb-daemon: Switch to using ETIMEDOUT instead of ETIME 2018-07-28 03:50:10 +02:00
ctdb_cluster_mutex.c ctdb-cluster-mutex: Block signals around fork 2018-09-17 22:58:20 +02:00
ctdb_cluster_mutex.h ctdb-cluster-mutex: Fix #endif decoration 2016-06-08 04:52:18 +02:00
ctdb_config.c ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb_config.h ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb_control.c ctdb-daemon: Drop implementation of RECEIVE_RECORDS control 2018-10-08 02:46:21 +02:00
ctdb_daemon.c ctdb-daemon: Avoid closing stdin when running in interactive mode 2018-07-04 23:56:42 +02:00
ctdb_fork.c ctdb-daemon: Add ctdb_vfork_exec() 2016-12-05 08:09:23 +01:00
ctdb_freeze.c ctdb-daemon: Invalidate records if a node becomes INACTIVE 2018-10-08 02:46:20 +02:00
ctdb_keepalive.c ctdb-daemon: Add AllowMixedVersions tunable 2017-05-24 21:06:28 +02:00
ctdb_lock_helper.c ctdb-locking: Remove unnecessary global variable 2017-02-17 10:44:14 +01:00
ctdb_lock.c ctdb-locking: Get tdb open flags from tdb instead of re-calculating 2017-06-26 15:47:24 +02:00
ctdb_logging.c Log the actual error returned when creating a pipe for client logging in CTDB fails. Helps with debugging issues. 2017-06-07 09:22:29 +02:00
ctdb_ltdb_server.c ctdb-config: Switch tunable TDBMutexEnabled to a config option 2018-08-24 10:59:21 +02:00
ctdb_monitor.c ctdb-daemon: Switch to using ETIMEDOUT instead of ETIME 2018-07-28 03:50:10 +02:00
ctdb_mutex_fcntl_helper.c ctdb-common: Drop CTDB's copy of sys_read() and sys_write() 2016-11-29 11:22:40 +01:00
ctdb_persistent.c ctdb-daemon: GET_DB_SEQNUM should read database conditionally 2017-09-12 12:23:18 +02:00
ctdb_recover.c ctdb-daemon: Drop implementation of RECEIVE_RECORDS control 2018-10-08 02:46:21 +02:00
ctdb_recoverd.c ctdb-recoverd: Set recovery lock handle at start of attempt 2018-09-18 02:18:30 +02:00
ctdb_recovery_helper.c ctdb: Fix some -Werror=strict-overflow issues 2018-04-27 06:53:16 +02:00
ctdb_server.c ctdb-server: Rename CTDB_BROADCAST_VNNMAP -> CTDB_BROADCAST_ACTIVE 2018-07-02 08:51:22 +02:00
ctdb_statistics.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_takeover_helper.c ctdb-daemon: Pass DisableIPFailover tunable via environment variable 2018-08-24 10:59:21 +02:00
ctdb_takeover.c ctdb-common: Fix error handling when sending ARPs 2018-08-30 04:48:57 +02:00
ctdb_traverse.c ctdb-server: Rename CTDB_BROADCAST_VNNMAP -> CTDB_BROADCAST_ACTIVE 2018-07-02 08:51:22 +02:00
ctdb_tunables.c ctdb-daemon: Use refactored tunable code 2016-07-25 21:29:46 +02:00
ctdb_tunnel.c ctdb-daemon: Add code to process ctdb_req_tunnel packets 2017-10-10 11:45:19 +02:00
ctdb_update_record.c ctdb-daemon: Add accessors for CTDB_DB_FLAGS_PERSISTENT flag 2017-06-29 10:34:26 +02:00
ctdb_uptime.c ctdb-server: Replace ctdb_logging.h with common/logging.h 2015-11-16 00:46:15 +01:00
ctdb_vacuum.c ctdb-vacuum: Remove unnecessary check for zero records in delete list 2018-10-08 02:46:21 +02:00
ctdbd.c ctdb-daemon: Drop incorrect log message 2018-09-03 10:52:11 +02:00
eventscript.c ctdb-daemon: Fix valgrind hit in event code 2018-10-22 09:27:15 +02:00
ipalloc_common.c ctdb-daemon: Drop the noiphost "node flags" bitmap 2018-07-11 11:48:38 +02:00
ipalloc_deterministic.c ctdb-takeover: IPAllocAlgorithm replaces LCP2PublicIPs, DeterministicIPs 2016-12-19 04:07:08 +01:00
ipalloc_lcp2.c ctdb: Fix some -Werror=strict-overflow issues 2018-04-27 06:53:16 +02:00
ipalloc_nondeterministic.c ctdb-protocol: Optionally print port for address printing functions 2017-09-19 13:30:26 +02:00
ipalloc_private.h ctdb-daemon: Drop the noiphost "node flags" bitmap 2018-07-11 11:48:38 +02:00
ipalloc.c ctdb-daemon: Drop the noiphost "node flags" bitmap 2018-07-11 11:48:38 +02:00
ipalloc.h ctdb-daemon: Drop the noiphost "node flags" bitmap 2018-07-11 11:48:38 +02:00
legacy_conf.c ctdb-config: Change option "no realtime" option to "realtime scheduling" 2018-08-24 10:59:20 +02:00
legacy_conf.h ctdb-config: Change option "no realtime" option to "realtime scheduling" 2018-08-24 10:59:20 +02:00