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 Subject: [BUG] python cElementTree crashes Date: Tue, 20 Nov 2012 11:01:22 +0000 (UTC) Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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