summaryrefslogtreecommitdiff
path: root/ctdb/tests/src/ctdb_takeover_tests.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2018-06-21 20:00:41 +1000
committerKarolin Seeger <kseeger@samba.org>2018-07-10 10:44:13 +0200
commita19d52e6c827b78d3883d37fcdaa76013e5c3177 (patch)
tree0a15d29c4caa6751116f21c3d6f441217d8d016f /ctdb/tests/src/ctdb_takeover_tests.c
parent6600f4b1641160c902e8318c64a33575610deb31 (diff)
downloadsamba-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/tests/src/ctdb_takeover_tests.c')
0 files changed, 0 insertions, 0 deletions