Author andreb
Recipients Watchman, andreb, benjamin.peterson, donbraffitt, fzero, kjohnson, leoofborg, mtsch, naufraghi, ohmi, tebeka, tommusic, wordtech
Date 2008-10-19.18:25:53
SpamBayes Score 5.14588e-14
Marked as misclassified No
Message-id <1224440815.91.0.475653443878.issue4017@psf.upfronthosting.co.za>
In-reply-to
Content
Per instructions in the helpful post outlining the Library search order,
I downloaded and installed AquaTk 8.5.4, then I downloaded
Python-2.6.tar.gz source, ran ./configure --enable-framework, sudo make
build, sudo make install.

IDLE appears to be working well so far. Also the Python interactive
interpreter appears to be working. Except that whenever I do an import
<module> I get a Bus Error and the Python interpreter crashes. 
This appears randomly, but no less than the second import <module>
statement I type one after the other. It is interesting to note that the
interactive prompt in the IDLE does not have this problem. Only the
command line (e.g. Terminal) interactive interpreter does, as well as
IPython.

Following is the crash report shown by the Apple Crash Reporter.
Hopefully someone can make sense of it, as I can't (I am not a hardcore
programmer, unfortunately.)


-------------------------- CRASH REPORT ----------------------------
Parent Process:  bash [766]

Date/Time:       2008-10-19 20:11:18.643 +0200
OS Version:      Mac OS X 10.5.5 (9F33)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   readline.so                   	0x000bba3c call_readline + 732
1   org.python.python             	0x001d43ae PyOS_Readline + 254
2   org.python.python             	0x001d5ba0 tok_nextc + 64
3   org.python.python             	0x001d6425 PyTokenizer_Get + 101
4   org.python.python             	0x001d0da0 parsetok + 256
5   org.python.python             	0x002b0942 PyRun_InteractiveOneFlags
+ 306
6   org.python.python             	0x002b0c83 PyRun_InteractiveLoopFlags
+ 99
7   org.python.python             	0x002b1549 PyRun_AnyFileExFlags + 185
8   org.python.python             	0x002c2506 Py_Main + 3046
9   org.python.python.app         	0x00001f7b 0x1000 + 3963
10  org.python.python.app         	0x00001ea9 0x1000 + 3753

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x000bb76b  ecx: 0xbfffeff8  edx: 0x00417ea0
  edi: 0x004291d0  esi: 0x004256d0  ebp: 0xbffff108  esp: 0xbffff020
   ss: 0x0000001f  efl: 0x00010246  eip: 0x000bba3c   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000000

Binary Images:
    0x1000 -     0x1ff5 +org.python.python.app 2.6 (2.6)
<c2196bdf25a197afe6742856fe1a0d2c>
/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
   0x48000 -    0x48ffc +_functools.so ??? (???)
<29c6937481e9eeb3b02765cca7ccf287>
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_functools.so
   0xba000 -    0xbbff1 +readline.so ??? (???)
<0a2a766193b43567110e66bf2231dafa>
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/readline.so
   0xc1000 -    0xd7fea  libedit.2.dylib ??? (???)
<be5a6f391887bb96bdeeafd443cf19fb> /usr/lib/libedit.2.dylib
   0xe2000 -    0xe5ff3 +_collections.so ??? (???)
<b8e1e58e2741f43942d616980ceff543>
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_collections.so
   0xeb000 -    0xeefff +operator.so ??? (???)
<fc3afb280fb4a4ac8d2ec1a2fd8c67c6>
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/operator.so
   0xf5000 -    0xf6fff +time.so ??? (???)
<fbe4f462c631fcfffa042ab980f367aa>
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/time.so
  0x1cf000 -   0x2f5fe3 +org.python.python 2.6.0, (c) 2004-2008 Python
Software Foundation. (2.6.0) <44f73bce7c729a42509bd1761feecc32>
/Library/Frameworks/Python.framework/Versions/2.6/Python
0x8fe00000 - 0x8fe2da53  dyld 96.2 (???)
<7af47d3b00b2268947563c7fa8c59a07> /usr/lib/dyld
0x92778000 - 0x9277ffe9  libgcc_s.1.dylib ??? (???)
<a9ab135a5f81f6e345527df87f51bfc9> /usr/lib/libgcc_s.1.dylib
0x94583000 - 0x94587fff  libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x94a36000 - 0x94b96ff3  libSystem.B.dylib ??? (???)
<a12f397abf2285077b89bd726bff5b18> /usr/lib/libSystem.B.dylib
0x95526000 - 0x95555ff7  libncurses.5.4.dylib ??? (???)
<3b2ac2ca8190942b6b81d2a7012ea859> /usr/lib/libncurses.5.4.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???)
/usr/lib/libSystem.B.dylib

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

I have MacPorts installed and also an old Fink installation. Could this
be causing it? I also looked through the README troubleshooting section,
and I did not change the default installation location for the framework
as suggested in the README.

If someone could help I'd be most grateful.

André
History
Date User Action Args
2008-10-19 18:26:56andrebsetrecipients: + andreb, tebeka, kjohnson, wordtech, benjamin.peterson, naufraghi, fzero, ohmi, tommusic, leoofborg, Watchman, donbraffitt, mtsch
2008-10-19 18:26:55andrebsetmessageid: <1224440815.91.0.475653443878.issue4017@psf.upfronthosting.co.za>
2008-10-19 18:25:55andreblinkissue4017 messages
2008-10-19 18:25:53andrebcreate