summaryrefslogtreecommitdiff
path: root/src/os_common/os_abort.c
blob: 905f3160acf88efd7351d395c2ed123d4b010fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*-
 * Copyright (c) 2014-2017 MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

#include "wt_internal.h"

/*
 * __wt_abort --
 *	Abort the process, dropping core.
 */
void
__wt_abort(WT_SESSION_IMPL *session)
    WT_GCC_FUNC_ATTRIBUTE((noreturn))
{
	__wt_errx(session, "aborting WiredTiger library");

#ifdef HAVE_DIAGNOSTIC
	__wt_attach(session);
#endif

	abort();
	/* NOTREACHED */
}