manager.
- Fixed a bogous MD5 mismatch warning sometimes seen when using
aufs or diskd stores
+ - Added --enable-stacktraces configure option to set PRINT_STACK_TRACE,
+ and extended support for this to Linux/GNU libc.
Changes to Squid-2.4.DEVEL3 ():
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.189 2000/05/29 01:13:47 wessels Exp $
+dnl $Id: configure.in,v 1.190 2000/05/30 09:30:10 hno Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.189 $)dnl
+AC_REVISION($Revision: 1.190 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(cfgaux)
fi
AC_SUBST(AUTH_MODULES)
+dnl Enable backtraces on fatal errors
+AC_ARG_ENABLE(stacktraces,
+[ --enable-stacktraces Enable automatic call backtrace on fatal errors],
+[ if test "$enableval" = "yes" ; then
+ echo "Enabling automatic stack backtraces on fatal errors"
+ AC_DEFINE(PRINT_STACK_TRACE, 1)
+ fi
+])
+
# Force some compilers to use ANSI features
#
case "$host" in
crypt.h \
ctype.h \
errno.h \
+ execinfo.h \
fcntl.h \
getopt.h \
gnumalloc.h \
dnl Check for library functions
AC_CHECK_FUNCS(\
bcopy \
+ backtrace_symbols_fd \
crypt \
fchmod \
getdtablesize \
/*
- * $Id: tools.cc,v 1.191 2000/05/16 07:06:07 wessels Exp $
+ * $Id: tools.cc,v 1.192 2000/05/30 09:30:10 hno Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
fflush(stdout);
}
#endif /* _SQUID_SOLARIS_ */
+#if HAVE_BACKTRACE_SYMBOLS_FD
+ {
+ static void *(callarray[8192]);
+ int n;
+ n = backtrace(callarray, 8192);
+ backtrace_symbols_fd(callarray, n, fileno(debug_log));
+ }
+#endif
#endif /* PRINT_STACK_TRACE */
#if SA_RESETHAND == 0