[Python-bugs-list] [Bug #129293] zlib library used for binary win32 distribution can crash

noreply@sourceforge.net noreply@sourceforge.net
Thu, 18 Jan 2001 23:39:04 -0800


Bug #129293, was updated on 2001-Jan-18 12:41
Here is a current snapshot of the bug.

Project: Python
Category: Windows
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Submitted by: greg
Assigned to : mhammond
Summary: zlib library used for binary win32 distribution can crash

Details: The zlib .lib or .dll that is used for the binary distribution of
python 2.0 (both from python.org and in activestate's "build 202" of python
2.0) contains a bug that only seems to show up on some people's win98
systems.  When it does, it appears to be nasty and cause windows crashes
(overwriting other memory, etc..?).

I was able to fix it by building my own copy of the zlib library from
sources and linking the zlib module against that.  Using the win32 binary
distribution of the zlib lib/dlls that is easily findable via a web search
seems to cause the problem (I suspect that is the package used in the
distribution build?).

I can provide both broken and working zlib.pyd files as well as source
archives I found and used to build zlib if desired.

I used MSVC++ 6.0 sp4 to build.

Follow-Ups:

Date: 2001-Jan-18 23:39
By: tim_one

Comment:
Mark, this rings a bell.  Not the claim of a bug (first I ever heard of
that -- greg, have a short & executable test case?), but that you were keen
at one time to change how we did zlib.  For 2.0, the DLL came from

http://www.winimage.com/zLibDll/zlib133dll.zip

and the rest from

ftp://ftp.uu.net/graphics/png/src/zlib133.zip

If we don't build it ourselves, we've got no handle on possible bugs
(IMO).

-------------------------------------------------------

Date: 2001-Jan-18 19:25
By: gvanrossum

Comment:
Thanks!  Doubt this comes in time for 2.1a1, but we'll gladly accept your
services.

I'll defer to our Windows cleaner, Tim, to take action on this.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=129293&group_id=5470