delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/11/20/06:05:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Jan Hudec <bulb AT ucw DOT cz>
Subject: [BUG] python cElementTree crashes
Date: Tue, 20 Nov 2012 11:01:22 +0000 (UTC)
Lines: 41
Message-ID: <loom.20121120T103556-842@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello All,

Python crashes for me during shutdown. Shell says the process terminated with 
Abort (status 134). A python2.6.exe.stackdump is created, but empty and gdb 
gives this rather useless stacktrace:

    #0  0x00000000 in ?? ()
    #1  0x76677720 in NlsUpdateSystemLocale () from 
/c/Windows/syswow64/kernel32.dll
    #2  0x76604b9f in KERNEL32!GetQueuedCompletionStatus () from 
/c/Windows/syswow64/kernel32.dll
    #3  0x00000003 in ?? ()
    #4  0x00000000 in ?? ()

The crash happens during shutdown according to python -v.

It started crashing since some upgrade, but downgrade to python 2.6.7-1 does not 
fix it, so it's related to some other component. It happens on at least two 
machines here, so it seems to be reproducible. Both machines are Windows 7 
Ultimate and have windows updates applied.

The script uses cElementTree and pure-python translate-toolkit (that from local 
copy). I've tried to reduce it to minimal test case and it turns out that 
importing _both_ cElementTree _and_ pofile and pounit from translate toolkit 
initiates the crash. The minimal test case is:

    #!/usr/bin/python

    import xml.etree.cElementTree as et
    from translate.storage.po import pofile, pounit

provided that translate toolkit 1.9.0
(http://sourceforge.net/projects/translate/files/Translate%20Toolkit/1.9.0/)
is available in current directory or PYTHONPATH.

Importing either of the modules alone does not cause the crash, only both
together. If I replace cElementTree with ElementTree, it does not crash either 
(that's my current workaround).

Regards,
Jan Hudec


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019