Re: zlib on Solaris?

From: Casper *** (Casper.***@Sun.COM)
Date: 03/16/02


To: Kalle Andersson <kan@virus112.com>
Date: Sat, 16 Mar 2002 10:37:17 +0100
From: Casper *** <Casper.***@Sun.COM>


>Hi All,
>
>Quick question, any info on if zlib can or can't cause problem on a solaris
>system?
>I haven't been able to find a yes or no on that question, just that the
>problem is primarily on Linux.

We can't be 100% sure, but one redeeming factor might be that Solaris
standard malloc() has several checks that prevent thing to get onto the
freelist twice.

Several zlibs are shipped as part of Solaris:

        /usr/openwin/bin/libz.so.1 (Solaris 7, ever since LBX support)

        /usr/lib/{sparcv9/,}libz.so.1 (Solaris 8, standard zlib)
        /usr/openwin/bin/libXz.so.1 (Solaris 8, zlib for X because it
                                         was uncertain /usr/lib/libz would
                                         make Solaris 8 until too close to
                                         the release date)

Without the code that triggers the problem, it is hard to be sure that
the sequence of badfrees is harmless in Solaris.

Casper