3ed42a906f8e3cb5fb9e84c0172aeb1d687edc0c
max
  Fri Oct 3 08:44:30 2014 -0700
adding a makefile flag COREDUMP=1 to make the CGIs create coredumps instead of showing errors
diff --git src/lib/errAbort.c src/lib/errAbort.c
index ccfa56e..961fe56 100644
--- src/lib/errAbort.c
+++ src/lib/errAbort.c
@@ -191,30 +191,33 @@
 {
 /* flag is needed because both errAbort and warn generate message
  * using the warn handler, however sometimes one needed to know
  * (like when logging), if it's an error or a warning.  This is far from
  * perfect, as this isn't cleared if the error handler continues,
  * as with an exception mechanism. */
 struct perThreadAbortVars *ptav = getThreadVars();
 ptav->errAbortInProgress = TRUE;
 vaWarn(format, args);
 noWarnAbort();
 }
 
 void errAbort(char *format, ...)
 /* Abort function, with optional (printf formatted) error message. */
 {
+#ifdef COREDUMP
+    abort();
+#endif
 va_list args;
 va_start(args, format);
 vaErrAbort(format, args);
 va_end(args);
 }
 
 void errnoAbort(char *format, ...)
 /* Prints error message from UNIX errno first, then does errAbort. */
 {
 char fbuf[512];
 va_list args;
 va_start(args, format);
 sprintf(fbuf, "%s\n%s", strerror(errno), format);
 vaErrAbort(fbuf, args);
 va_end(args);