diff options
author | Amitay Isaacs <amitay@gmail.com> | 2018-06-21 20:00:41 +1000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-07-10 10:44:13 +0200 |
commit | a19d52e6c827b78d3883d37fcdaa76013e5c3177 (patch) | |
tree | 0a15d29c4caa6751116f21c3d6f441217d8d016f /ctdb/protocol | |
parent | 6600f4b1641160c902e8318c64a33575610deb31 (diff) | |
download | samba-a19d52e6c827b78d3883d37fcdaa76013e5c3177.tar.gz |
ctdb-tests: Avoid segfault by initializing logging
Setting DEBUGLEVEL before calling debug_init() causes segmentation
violation with gcc8. DEBUGLEVEL_CLASS is statically initialized to
debug_class_list_initial which is defined as const. Only after
debug_init() is called, DEBUGLEVEL_CLASS becomes a talloc'd array.
So before modifying DEBUGLEVEL, ensure debug_init() is called via
setup_logging(). (debug_init is a static function.)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit af697008531bd74546656841dd3a1ed92522fc57)
Diffstat (limited to 'ctdb/protocol')
0 files changed, 0 insertions, 0 deletions