Re: cachemgr.cgi crashes squid! (mallinfo nonexistent)

From: Henrik Nordstrom <>
Date: Tue, 16 Dec 1997 01:30:51 +0100

Lionel Bouton wrote:

> mallinfo() does not exist in the GNU malloc library. So there
> must be a bug in squid which lead to try using mallinfo() even
> if you use the GNU library when called for the cache_object
> 'info' -> immediate crash.

When you compile with a external malloc library, you have to manually
stop configure from picking functions from libc that can't be used with
the external library.

For gnumalloc:
setenv ac_cv_func_mallinfo=no
setenv ac_cv_func_mallocblksize=no
setenv ac_cv_func_mallopt=no
make clean
make install

I have attached a completely untested patch for You need
autoconf to rebuild configure after applying the patch.

Henrik Nordström

RCS file: /usr/src/CVS/squid/,v
retrieving revision
diff -u -r1.
--- 1997/12/14 15:11:21
+++ 1997/12/16 00:25:31
@@ -244,7 +244,12 @@
 AC_CHECK_LIB(nsl, main)
 AC_CHECK_LIB(socket, main)
 AC_CHECK_LIB(gnumalloc, main)
-if test "$ac_cv_lib_gnumalloc_main" = "no"; then
+if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
+ echo "Disabling extended malloc functions when using gnumalloc"
+ ac_cv_func_mallinfo=no
+ ac_cv_func_mallocblksize=no
+ ac_cv_func_mallopt=no
         case "$host" in
                         echo "skipping libmalloc check for $host"
Received on Mon Dec 15 1997 - 16:40:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:57 MST