Skip to content

Commit 250382a

Browse files
committed
Remove "fault" module.
This module, which catches segmentation faults and prints a backtrace before exiting, was useful for a while, but I believe that it has now outlived its purpose. It is altogether better to have a core dump from which one can extract much more information than a usually-poor backtrace, and core dumps are much better integrated into a typical Unix system. In addition, the "fault" module was of course not all that portable.
1 parent 6f61c75 commit 250382a

16 files changed

Lines changed: 7 additions & 132 deletions

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ OVS_CHECK_MALLOC_HOOKS
5858
OVS_CHECK_VALGRIND
5959
OVS_CHECK_TTY_LOCK_DIR
6060
OVS_CHECK_SOCKET_LIBS
61-
OVS_CHECK_FAULT_LIBS
6261

6362
AC_CHECK_FUNCS([strsignal])
6463

lib/automake.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ lib_libopenvswitch_a_SOURCES = \
4343
lib/dynamic-string.h \
4444
lib/fatal-signal.c \
4545
lib/fatal-signal.h \
46-
lib/fault.c \
47-
lib/fault.h \
4846
lib/flow.c \
4947
lib/flow.h \
5048
lib/hash.c \

lib/fault.c

Lines changed: 0 additions & 73 deletions
This file was deleted.

lib/fault.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/vlog-modules.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ VLOG_MODULE(dpctl)
3535
VLOG_MODULE(ezio_term)
3636
VLOG_MODULE(fail_open)
3737
VLOG_MODULE(fatal_signal)
38-
VLOG_MODULE(fault)
3938
VLOG_MODULE(flow)
4039
VLOG_MODULE(in_band)
4140
VLOG_MODULE(jsonrpc)

m4/openvswitch.m4

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ AC_DEFUN([OVS_CHECK_OPENSSL],
9898
AC_DEFINE([HAVE_OPENSSL], [1], [Define to 1 if OpenSSL is installed.])
9999
fi])
100100

101-
dnl Checks for libraries needed by lib/fault.c.
102-
AC_DEFUN([OVS_CHECK_FAULT_LIBS],
103-
[AC_CHECK_LIB([dl], [dladdr], [FAULT_LIBS=-ldl])
104-
AC_SUBST([FAULT_LIBS])])
105-
106101
dnl Checks for libraries needed by lib/socket-util.c.
107102
AC_DEFUN([OVS_CHECK_SOCKET_LIBS],
108103
[AC_CHECK_LIB([socket], [connect])

ovsdb/automake.mk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ EXTRA_DIST += ovsdb/ovsdb-client.1.in
5252
# ovsdb-server
5353
sbin_PROGRAMS += ovsdb/ovsdb-server
5454
ovsdb_ovsdb_server_SOURCES = ovsdb/ovsdb-server.c
55-
ovsdb_ovsdb_server_LDADD = \
56-
ovsdb/libovsdb.a \
57-
lib/libopenvswitch.a \
58-
$(FAULT_LIBS) \
59-
$(SSL_LIBS)
55+
ovsdb_ovsdb_server_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
6056
# ovsdb-server.1
6157
man_MANS += ovsdb/ovsdb-server.1
6258
DISTCLEANFILES += ovsdb/ovsdb-server.1

ovsdb/ovsdb-server.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "column.h"
2626
#include "command-line.h"
2727
#include "daemon.h"
28-
#include "fault.h"
2928
#include "file.h"
3029
#include "json.h"
3130
#include "jsonrpc.h"
@@ -73,7 +72,6 @@ main(int argc, char *argv[])
7372
int retval;
7473

7574
set_program_name(argv[0]);
76-
register_fault_handlers();
7775
time_init();
7876
vlog_init();
7977
signal(SIGPIPE, SIG_IGN);

tests/automake.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tests_test_type_props_SOURCES = tests/test-type-props.c
135135

136136
noinst_PROGRAMS += tests/test-dhcp-client
137137
tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
138-
tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
138+
tests_test_dhcp_client_LDADD = lib/libopenvswitch.a
139139

140140
noinst_PROGRAMS += tests/test-stp
141141
tests_test_stp_SOURCES = tests/test-stp.c

tests/test-dhcp-client.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "command-line.h"
2424
#include "dhcp.h"
2525
#include "fatal-signal.h"
26-
#include "fault.h"
2726
#include "poll-loop.h"
2827
#include "util.h"
2928
#include "vlog.h"
@@ -51,7 +50,6 @@ main(int argc, char *argv[])
5150
int error;
5251

5352
set_program_name(argv[0]);
54-
register_fault_handlers();
5553
vlog_init();
5654
parse_options(argc, argv);
5755

0 commit comments

Comments
 (0)