--- misc.c	2019-12-02 16:22:06.772305100 +0300
+++ ../misc.c	2019-11-28 18:08:50.538009100 +0300
@@ -1905,8 +1905,14 @@
   /* Print (or display) a message before abnormal exit (including       */
   /* abort).  Invoked from ABORT(msg) macro (there msg is non-NULL)     */
   /* and from EXIT() macro (msg is NULL in that case).                  */
-  STATIC void GC_CALLBACK GC_default_on_abort(const char *msg)
+
+void *pa_fail_alloc(const char* what);
+
+STATIC void GC_CALLBACK GC_default_on_abort(const char *msg)
   {
+    pa_fail_alloc(msg);
+
+
 #   ifndef DONT_USE_ATEXIT
       skip_gc_atexit = TRUE; /* disable at-exit GC_gcollect() */
 #   endif
