Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'importing': 0.04; 'socket': 0.05; 'sys': 0.05; 'sys.platform': 0.07; 'python': 0.09; '2006,': 0.09; 'errno': 0.09; 'imported': 0.09; 'imports': 0.09; 'cc:addr:python-list': 0.10; '"import': 0.16; "'win32'": 0.16; '-tkc': 0.16; '_socket': 0.16; '_ssl': 0.16; 'fine.': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'message- id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'smtplib': 0.16; 'socket"': 0.16; 'socket.': 0.16; 'socket.py': 0.16; 'subject:night': 0.16; 'subject:started': 0.16; 'sys.exit(1)': 0.16; 'wrote:': 0.17; 'tim': 0.18; '>>>': 0.18; 'bit': 0.21; 'import': 0.21; 'os,': 0.22; 'cc:2**0': 0.23; "i've": 0.23; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; '>>>>': 0.29; 'chase': 0.29; 'crash': 0.29; 'points': 0.29; 'subject:last': 0.30; 'point': 0.31; 'goes': 0.33; 'changed': 0.34; 'skip:_ 40': 0.35; 'but': 0.36; 'modules': 0.36; 'turn': 0.36; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'nothing': 0.38; 'system.': 0.39; 'further': 0.61; 'more': 0.63; 'night,': 0.65; 'received:50.22': 0.84; 'to:none': 0.93 Date: Thu, 13 Sep 2012 08:08:10 -0500 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 CC: Python Subject: Re: Python2.4 on Win32 suddenly started crashing last night References: <5051D49B.1070009@tim.thechases.com> In-Reply-To: <5051D49B.1070009@tim.thechases.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347541620 news.xs4all.nl 6903 [2001:888:2000:d::a6]:48170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29030 On 09/13/12 07:42, Tim Chase wrote: > It was working as of last night, and to the best of my knowledge, > nothing was changed on the system. It took a while to track it > down, but it came from importing smtplib which in turn imports socket. > > I've tried "import socket" and it crashes, but then tried importing > each of the modules that are imported in socket.py and nothing dies: > > C:\Program Files\Python24\Lib>python > Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. >>>> import _socket >>>> from _socket import * >>>> import _ssl >>>> from _ssl import * >>>> import os, sys >>>> from errno import EBADF >>>> sys.platform > 'win32' >>>> import socket > [win32 crash happens here] Further diagnostics (copying socket.py to suckit.py and adding a sys.exit(1) at various points and then importing sucket) seem to point to this line in socket.py: __all__.extend(os._get_exports_list(_socket)) So I can reduce the case to >>> import _socket >>> import os >>> os._get_exports_list(_socket) and it goes kablooie. If I do the same with _ssl: >>> import _ssl >>> import os >>> os._get_exports_list(_ssl) and it works fine. -tkc