From: SourceForge.net <no...@so...> - 2008-07-15 00:22:21
|
Bugs item #2018331, was opened at 2008-07-15 01:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2018331&group_id=38414 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: cfr (cfr) Assigned to: Nobody/Anonymous (nobody) Summary: files without coding line trigger bus error on OS X 10.4.11 Initial Comment: Docutils 0.6 [snapshot 2008-07-14, r5592], Docutils 0.5 [release tarball] Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Python 2.5.2 Trying to (1) create the documentation and (2) run the test suite post-install. From source (working) directory: cd tools ./rst2html.py ../<doc>.txt ../<doc>.html succeeds for <doc> = FAQ, HISTORY and THANKS fails for <doc> = BUGS, COPYING, README and RELEASE-NOTES All the successes begin with the line ".. -*- coding: utf-8 -*-" but none of the failures do. The output on failure is just "Bus error" and I'm not sure how to get more helpful output without instructions. ./buildhtml.py ../ /// Processing directory: ../ ::: Processing: BUGS.txt Bus error cd test ./alltests.py Testing Docutils 0.6 [snapshot 2008-07-14, r5592] with Python 2.5.2 on 2008-07-15 at 00:49:56 Working directory: <srcdir>/test Docutils package: <srcdir>/docutils Bus error where <srcdir> is the long path to the source directory Sample excerpt from crash log for python (plenty more available on request): Command: Python Path: /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python Parent: bash [27154] Version: 2.5a0 (2.5alpha0) PID: 3543 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: 0 com.apple.CoreFoundation 0x907beac0 CFStringGetCStringPtr + 408 1 _locale.so 0x000e3cd8 PyLocale_getdefaultlocale + 328 (_localemodule.c:435) 2 org.python.python 0x002b393c PyEval_EvalFrameEx + 17036 (ceval.c:3557) 3 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 4 org.python.python 0x002b3f48 PyEval_EvalFrameEx + 18584 (ceval.c:3669) 5 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 6 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 7 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 8 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 9 org.python.python 0x002b3f48 PyEval_EvalFrameEx + 18584 (ceval.c:3669) 10 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 11 org.python.python 0x002b3f48 PyEval_EvalFrameEx + 18584 (ceval.c:3669) 12 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 13 org.python.python 0x002b3f48 PyEval_EvalFrameEx + 18584 (ceval.c:3669) 14 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 15 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 16 org.python.python 0x002b3eb4 PyEval_EvalFrameEx + 18436 (ceval.c:3660) 17 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 18 org.python.python 0x002b3f48 PyEval_EvalFrameEx + 18584 (ceval.c:3669) 19 org.python.python 0x002b5e50 PyEval_EvalCodeEx + 2096 (ceval.c:2836) 20 org.python.python 0x002b5ff0 PyEval_EvalCode + 48 (ceval.c:500) 21 org.python.python 0x002dbe8c PyRun_FileExFlags + 300 (pythonrun.c:1274) 22 org.python.python 0x002dc0d0 PyRun_SimpleFileExFlags + 448 (pythonrun.c:879) 23 org.python.python 0x002eba9c Py_Main + 3052 (main.c:523) 24 org.python.python 0x000019bc 0x1000 + 2492 25 org.python.python 0x000016c0 0x1000 + 1728 Thread 0 crashed with PPC Thread State 64: srr0: 0x00000000907beac0 srr1: 0x000000000200f030 vrsave: 0x0000000000000000 cr: 0x84244224 xer: 0x0000000020000004 lr: 0x00000000907be930 ctr: 0x00000000907be928 r0: 0x00000000a07bb678 r1: 0x00000000bfffc890 r2: 0x00000000a07bb278 r3: 0x0000000000000000 r4: 0x0000000000000000 r5: 0x00000000bfffc7d0 r6: 0x0000000000000003 r7: 0x0000000000000005 r8: 0x0000000000702cfb r9: 0x000000000000001c r10: 0x0000000090bb4bb8 r11: 0x00000000000e53d8 r12: 0x00000000907be928 r13: 0x000000000060fe44 r14: 0x0000000000075298 r15: 0x0000000000076618 r16: 0x0000000000000000 r17: 0x0000000000000001 r18: 0x0000000000076650 r19: 0x000000000066c2a8 r20: 0x0000000000000000 r21: 0x000000000006aad0 r22: 0x0000000000000000 r23: 0x000000000060fe5c r24: 0x00000000000e3b90 r25: 0x00000000006001d0 r26: 0x0000000000080d28 r27: 0x0000000000000000 r28: 0x0000000000000000 r29: 0x00000000a07bbb6c r30: 0x0000000000000000 r31: 0x00000000907be930 Binary Images Description: 0x1000 - 0x1fff org.python.python 2.5a0 (2.5alpha0) /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 0xe2000 - 0xe4fff _locale.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_locale.so 0x205000 - 0x323fff org.python.python 2.5a0 (2.5) /Library/Frameworks/Python.framework/Versions/2.5/Python 0x5e8000 - 0x5ebfff operator.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/operator.so 0x5f5000 - 0x5f7fff cStringIO.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/cStringIO.so 0x75c000 - 0x75ffff unicodedata.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/unicodedata.so 0x7d8000 - 0x7dbfff strop.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/strop.so 0x7e7000 - 0x7ebfff _struct.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_struct.so 0x1088000 - 0x108afff time.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/time.so 0x10d3000 - 0x10d8fff array.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/array.so 0x8fe00000 - 0x8fe52fff dyld 46.16 /usr/lib/dyld 0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x907bb000 - 0x90895fff com.apple.CoreFoundation 6.4.11 (368.35) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90aea000 - 0x90b5afff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90b70000 - 0x90b82fff libauto.dylib /usr/lib/libauto.dylib 0x90b89000 - 0x90e60fff com.apple.CoreServices.CarbonCore 681.17 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib 0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib 0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib 0x945e4000 - 0x94604fff libmx.A.dylib /usr/lib/libmx.A.dylib Poking around a little, docutils/io.py suggested latin-1 as the fallback locale if LOCALE is not set in the environment. (At least, I'm guessing that's what it does - I know so little about this stuff that it is definitely not better than a guess.) So I tried adding ".. -*- coding: latin-1 -*-" and a blank line to the top of BUGS.txt and then rst2html.py produced BUGS.html OK. I don't know if this means that I need to set LOCALE in my environment - or, if so, what I should set it to - or if the code should handle cases where it is not set. It looks to me as if io.py is supposed to provide a fallback default locale setting for this, but I'm just guessing as I said. - cfr ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2018331&group_id=38414 |