#include "postgres.h"
#include <unistd.h>
Go to the source code of this file.
◆ ExceptionalCondition()
void ExceptionalCondition |
( |
const char * |
conditionName, |
|
|
const char * |
fileName, |
|
|
int |
lineNumber |
|
) |
| |
Definition at line 30 of file assert.c.
33{
34
37 write_stderr(
"TRAP: ExceptionalCondition: bad arguments in PID %d\n",
38 (int) getpid());
39 else
40 write_stderr(
"TRAP: failed Assert(\"%s\"), File: \"%s\", Line: %d, PID: %d\n",
41 conditionName, fileName, lineNumber, (int) getpid());
42
43
45
46
47#ifdef HAVE_BACKTRACE_SYMBOLS
48 {
50 int nframes;
51
53 backtrace_symbols_fd(
buf, nframes, fileno(stderr));
54 }
55#endif
56
57
58
59
60
61
62#ifdef SLEEP_ON_ASSERT
63 sleep(1000000);
64#endif
65
66 abort();
67}
#define write_stderr(str)
#define PointerIsValid(pointer)
static void const char fflush(stdout)
References buf, fflush(), lengthof, PointerIsValid, and write_stderr.
Referenced by pg_re_throw().