summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c
index 6eb135f0..0d23e542 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -46,6 +46,11 @@ zerror (const char *fname, int type, size_t size)
zlog_err ("%s : can't allocate memory for `%s' size %d: %s\n",
fname, lookup (mstr, type), (int) size, safe_strerror(errno));
log_memstats(LOG_WARNING);
+ /* N.B. It might be preferable to call zlog_backtrace_safe here, since
+ that function should definitely be safe in an OOM condition. But
+ unfortunately zlog_backtrace_safe does not support syslog logging at
+ this time... */
+ zlog_backtrace(LOG_WARNING);
abort();
}