src/hg/lib/web.c 1.163

1.163 2009/06/04 17:53:21 markd
added tmp debugging code track down harmless but annoying warn/abort stack underflows
Index: src/hg/lib/web.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/web.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -b -B -U 4 -r1.162 -r1.163
--- src/hg/lib/web.c	3 Jun 2009 04:30:19 -0000	1.162
+++ src/hg/lib/web.c	4 Jun 2009 17:53:21 -0000	1.163
@@ -15,8 +15,9 @@
 #include "axtInfo.h"
 #include "wikiLink.h"
 #include "googleAnalytics.h"
 #endif /* GBROWSE */
+#include "errabort.h"  // FIXME tmp hack to try to find source of popWarnHandler underflows in browse
 
 static char const rcsid[] = "$Id$";
 
 /* flag that tell if the CGI header has already been outputed */
@@ -63,9 +64,12 @@
 /* push the stack dump abort handler on the stack if it's enabled.  This should be pushed
  * after the warn handle that will do the actual reporting */
 {
 if (webDumpStackEnabled())
+    {
+    errAbortDebugPopUnderflow = TRUE;
     pushAbortHandler(webDumpStackAbortHandler);
+    }
 }
 
 void webDumpStackPopAbortHandler(void)
 /* pop the stack dump abort handler from the stack if it's enabled */