[Pythonmac-SIG] "illegal instruction" while connecting to PostgresDB
Anke
wieni77 at yahoo.de
Mon Jan 21 15:05:24 CET 2008
Hi,
unfortunately, I am not sure if I picked he right list...
My working environment is a Power PC G5, Tiger 10.4.11, Python 2.5.1. and of course I am fighting with a python script :-).
In fact I am nearly sure that its a simple problem, but I am new on the Mac-System and using Ubuntu I never had those problems....
The aim of the script is to connect to postgres-Database...The beginning of the code - which already produces problems is:
import string
from pyPgSQL import PgSQL as pg
import psyco
import sys
import re
import os.path as path
import time
print "hallo1"
psyco.full()
print "hallo2"
con = pg.connect(host='localhost', user='dbuser', password='dbuser', database='DB_SNP_RECEPTOR_GENE')
print "hallo3"
After "hallo2" the program stops with "Illegal instruction".
I found a log file which says the following:
Date/Time: 2008-01-21 14:33:48.617 +0100
OS Version: 10.4.11 (Build 8S165)
Report Version: 4
Command: Python
Path: /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
Parent: bash [632]
Version: 2.5a0 (2.5alpha0)
PID: 698
Thread: 0
Exception: EXC_BAD_INSTRUCTION (0x0002)
Code[0]: 0x00000002
Code[1]: 0x0200801c
Thread 0 Crashed:
0 <<00000000>> 0x0200801c 0 + 33587228
1 org.python.python 0x002ae7f8 PyEval_EvalFrameEx + 424 (ceval.c:3223)
2 org.python.python 0x002b4e10 PyEval_EvalCodeEx + 2096 (ceval.c:2831)
3 org.python.python 0x002b2f08 PyEval_EvalFrameEx + 18616 (ceval.c:3660)
4 org.python.python 0x002b4e10 PyEval_EvalCodeEx + 2096 (ceval.c:2831)
5 org.python.python 0x002b4fb0 PyEval_EvalCode + 48 (ceval.c:500)
6 org.python.python 0x002dacbc PyRun_FileExFlags + 300 (pythonrun.c:1272)
7 org.python.python 0x002daf00 PyRun_SimpleFileExFlags + 448 (pythonrun.c:877)
8 org.python.python 0x002ea8bc Py_Main + 3052 (main.c:523)
9 org.python.python 0x000019bc 0x1000 + 2492
10 org.python.python 0x000016c0 0x1000 + 1728
Thread 0 crashed with PPC Thread State 64:
srr0: 0x000000000200801c srr1: 0x100000000208f030 vrsave: 0x0000000000000000
cr: 0x88224242 xer: 0x0000000000000000 lr: 0x0000000001065124 ctr: 0x0000000002008000
r0: 0x0000000000624298 r1: 0x00000000bfffef40 r2: 0x0000000002008000 r3: 0x0000000002008070
r4: 0x00000000006242c0 r5: 0x0000000000624298 r6: 0x00000000bfffef78 r7: 0x0000000000000a80
r8: 0x0000000000000000 r9: 0x0000000000000001 r10: 0x00000000007bca60 r11: 0x0000000000000001
r12: 0x0000000002008000 r13: 0x0000000000000000 r14: 0x00000000006242d0 r15: 0x000000000079830c
r16: 0x00000000003445f4 r17: 0x0000000000000000 r18: 0x000000000000000a r19: 0xef298001ef200001
r20: 0x0000000000624160 r21: 0x0000000001054e80 r22: 0x0000000000624160 r23: 0x0000000000000000
r24: 0x0000000000000001 r25: 0x00000000007bc2e0 r26: 0x0000000000000000 r27: 0x00000000007afed0
r28: 0x0000000000785bf0 r29: 0x0000000000000000 r30: 0x00000000007bca60 r31: 0x0000000000000000
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
0x44000 - 0x44fff _weakref.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_weakref.so
0xa2000 - 0xa5fff strop.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/strop.so
0xb1000 - 0xbefff mxDateTime.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/mx/DateTime/mxDateTime/mxDateTime.so
0xd5000 - 0xd7fff time.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/time.so
0xe0000 - 0xe1fff math.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/math.so
0xe8000 - 0xedfff array.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/array.so
0x205000 - 0x322fff org.python.python 2.5a0 (2.5) /Library/Frameworks/Python.framework/Versions/2.5/Python
0x745000 - 0x75cfff libpq.5.dylib /usr/local/pgsql/lib/libpq.5.dylib
0x1008000 - 0x101cfff libpqmodule.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyPgSQL/libpq/libpqmodule.so
0x1051000 - 0x10a9fff _psyco.so /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/psyco/_psyco.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.9 (368.31) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908de000 - 0x908defff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908e0000 - 0x909e2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3c000 - 0x90ac0fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90aea000 - 0x90b5cfff com.apple.framework.IOKit 1.4.1 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b72000 - 0x90b84fff libauto.dylib /usr/lib/libauto.dylib
0x90b8b000 - 0x90e62fff com.apple.CoreServices.CarbonCore 681.17 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec8000 - 0x90f48fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f92000 - 0x90fd4fff com.apple.CFNetwork 129.22 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe9000 - 0x91001fff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91011000 - 0x91092fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d8000 - 0x91101fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91112000 - 0x91120fff libz.1.dylib /usr/lib/libz.1.dylib
0x91123000 - 0x912defff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913dd000 - 0x913e6fff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913ed000 - 0x913f5fff libbsm.dylib /usr/lib/libbsm.dylib
0x913f9000 - 0x91421fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91434000 - 0x9143ffff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91a19000 - 0x91ae0fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x94c57000 - 0x94c78fff libmx.A.dylib /usr/lib/libmx.A.dylib
0x94f5a000 - 0x94f87fff com.apple.LDAPFramework 1.4.1 (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x94f8e000 - 0x94f9efff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
0x94fa2000 - 0x94fd1fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x94fe1000 - 0x94ffefff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x954fc000 - 0x9562afff edu.mit.Kerberos 5.5.25 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
The "funny" thing is, that I do not have problems when I connect to the the database on the python shell. I already thought about a path-problem...
I hope somebody has any suggestion???
Thanks in advance...
Anke
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
More information about the Pythonmac-SIG
mailing list