EXC_BAD_ACCESS (SIGSEGV) with python

Discussion in 'Mac Programming' started by roontoon, Dec 21, 2011.

  1. macrumors newbie

    Joined:
    Sep 28, 2010
    #1
    After updating to Lion my python apps are crashing after several minutes. They are running as damons if that matters. Below is the crash report. It is a bit over my head and I would like to see if anyone knows what is going on.
    I had to shave a bit off of the report to post it.

    Code:
    Process:         Python [244]
    Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
    Identifier:      Python
    Version:         ??? (???)
    Code Type:       X86-64 (Native)
    Parent Process:  Python [232]
    
    Date/Time:       2011-12-20 19:04:06.933 -0500
    OS Version:      Mac OS X 10.7.2 (11C74)
    Report Version:  9
    
    Interval Since Last Report:          288941 sec
    Crashes Since Last Report:           14
    Per-App Crashes Since Last Report:   23
    Anonymous UUID:                      3C387DB7-0AA3-4F34-A100-31D1736D2668
    
    Crashed Thread:  0
    
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000108
    
    VM Regions Near 0x108:
    --> 
        __TEXT                 0000000106088000-0000000106089000 [    4K] r-x/rwx SM=COW  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
    
    Application Specific Information:
    objc[219]: garbage collection is OFF
    
    Thread 0 Crashed:
    0   libdispatch.dylib             	0x00007fff8b14ace9 _dispatch_wakeup + 108
    1   libdispatch.dylib             	0x00007fff8b14d876 _dispatch_resume_slow + 20
    2   com.apple.CoreFoundation      	0x00007fff8af8262c -[NSXPCConnection start] + 92
    3   com.apple.CoreFoundation      	0x00007fff8af84ca3 __CFXNotificationCenterSetupConnection + 387
    4   com.apple.CoreFoundation      	0x00007fff8af84b11 __CFXNotificationCenterCreate + 273
    5   com.apple.CoreFoundation      	0x00007fff8af849ea __CFNotificationCenterGetDistributedCenter_block_invoke_1 + 26
    6   libdispatch.dylib             	0x00007fff8b14d224 dispatch_once_f + 53
    7   com.apple.CoreFoundation      	0x00007fff8af73e0a CFNotificationCenterGetDistributedCenter + 74
    8   com.apple.CoreFoundation      	0x00007fff8afb2eb8 ____CFXPreferencesGetSourceForTriplet_block_invoke_1 + 40
    9   libdispatch.dylib             	0x00007fff8b14d224 dispatch_once_f + 53
    10  com.apple.CoreFoundation      	0x00007fff8af7fa4a __CFXPreferencesGetSourceForTriplet + 58
    11  com.apple.CoreFoundation      	0x00007fff8af8be67 __CFXPreferencesGetSearchListForBundleID + 215
    12  com.apple.CoreFoundation      	0x00007fff8af8bd48 ___CFXPreferencesCopyAppValue_block_invoke_1 + 24
    13  com.apple.CoreFoundation      	0x00007fff8af8bcea CFPreferencesCopyAppValue + 218
    14  com.apple.SystemConfiguration 	0x00007fff928f388c SCDynamicStoreCopyProxies + 43
    15  _scproxy.so                   	0x00000001068719ba 0x106871000 + 2490
    16  org.python.python             	0x000000010611ab58 PyEval_EvalFrameEx + 13318
    17  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    18  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    19  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    20  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    21  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    22  org.python.python             	0x00000001060bbabf 0x106093000 + 166591
    23  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    24  org.python.python             	0x00000001060a96e9 0x106093000 + 91881
    25  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    26  org.python.python             	0x0000000106116c40 PyEval_CallObjectWithKeywords + 180
    27  org.python.python             	0x00000001060a6489 PyInstance_New + 273
    28  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    29  org.python.python             	0x000000010611af63 PyEval_EvalFrameEx + 14353
    30  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    31  org.python.python             	0x000000010611de6c 0x106093000 + 568940
    32  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    33  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    34  org.python.python             	0x000000010611de6c 0x106093000 + 568940
    35  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    36  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    37  org.python.python             	0x00000001060bbabf 0x106093000 + 166591
    38  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    39  org.python.python             	0x000000010611b5ec PyEval_EvalFrameEx + 16026
    40  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    41  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    42  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    43  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    44  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    45  org.python.python             	0x00000001060bbabf 0x106093000 + 166591
    46  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    47  org.python.python             	0x00000001060a96e9 0x106093000 + 91881
    48  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    49  org.python.python             	0x00000001060e5484 0x106093000 + 337028
    50  org.python.python             	0x00000001060dfb7a 0x106093000 + 314234
    51  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    52  org.python.python             	0x000000010611af63 PyEval_EvalFrameEx + 14353
    53  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    54  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    55  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    56  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    57  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    58  org.python.python             	0x00000001060bbabf 0x106093000 + 166591
    59  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    60  org.python.python             	0x000000010611b5ec PyEval_EvalFrameEx + 16026
    61  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    62  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    63  org.python.python             	0x000000010611ddf7 0x106093000 + 568823
    64  org.python.python             	0x000000010611ae0a PyEval_EvalFrameEx + 14008
    65  org.python.python             	0x000000010611dcd8 PyEval_EvalCodeEx + 1996
    66  org.python.python             	0x00000001060bbabf 0x106093000 + 166591
    67  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    68  org.python.python             	0x00000001060a96e9 0x106093000 + 91881
    69  org.python.python             	0x000000010609ad32 PyObject_Call + 97
    70  org.python.python             	0x0000000106116c40 PyEval_CallObjectWithKeywords + 180
    71  org.python.python             	0x000000010614840d 0x106093000 + 742413
    72  libsystem_c.dylib             	0x00007fff978098bf _pthread_start + 335
    73  libsystem_c.dylib             	0x00007fff9780cb75 thread_start + 13
    
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x0000000000000100  rbx: 0x00007f96626ae9f0  rcx: 0x00007f96626aea08  rdx: 0x0000000000000001
      rdi: 0x00007f96626aea00  rsi: 0x00007fff8c3d6c40  rbp: 0x0000000106e7c080  rsp: 0x0000000106e7c070
       r8: 0x00007f9663000438   r9: 0x0000000000000738  r10: 0x0000000000000081  r11: 0x00007fff8af825d0
      r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fff7ad93180  r15: 0x00007f96630018f8
      rip: 0x00007fff8b14ace9  rfl: 0x0000000000010206  cr2: 0x0000000000000108
    Logical CPU: 0
    
    Binary Images:
           0x106088000 -        0x106088fff  org.python.python (2.7.1 - 2.7.1) <E2C46621-158F-349B-9131-263E8958B23A> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
           0x106093000 -        0x1061aeff7  org.python.python (2.7.1 - 2.7.1) <A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
           0x1062ef000 -        0x1062f0fff  _locale.so (??? - ???) <FCAE62F7-D07F-3F5F-8057-18224582F344> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
           0x1062f4000 -        0x106300fff  cPickle.so (??? - ???) <FE1D948F-998C-350E-8002-224D3DCDE8B5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cPickle.so
           0x106306000 -        0x106306fff  grp.so (??? - ???) <563EC9A6-F38F-3518-9BBB-912E9F01FDA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/grp.so
           0x10630a000 -        0x10630dfff  _multiprocessing.so (??? - ???) <CFAE1A97-134D-3A6D-9646-D5109117D153> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_multiprocessing.so
           0x106312000 -        0x106314fff  select.so (??? - ???) <FEC6A324-8D3E-3439-9315-BC2AF15A0514> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
           0x1067df000 -        0x1067e3fff  _struct.so (??? - ???) <A871A47E-0BF6-3A21-BF66-A5438C54B237> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
           0x1067e9000 -        0x1067ebff7  binascii.so (??? - ???) <9B353DAC-B0E8-3B4B-91A1-50F6F86AA928> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
           0x1067ef000 -        0x1067f0fff  _hashlib.so (??? - ???) <C6196B8C-5451-3875-BCD9-2942C6A32FCF> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
           0x1067f4000 -        0x1067f9fff  array.so (??? - ???) <177F1D09-ACEE-3E39-8F1E-3EE8BA8A7AC6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
           0x1067ff000 -        0x106805ff7  _socket.so (??? - ???) <CB2B2DF1-46C2-3491-A737-4522C807F5A2> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so
           0x10680d000 -        0x10680efff  _functools.so (??? - ???) <D4679747-9993-34F6-B702-3946FA5BF171> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
           0x106812000 -        0x106816fff  _ssl.so (??? - ???) <50FC05D5-0434-3054-9C09-CA8923FED0C0> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
           0x10681c000 -        0x10681dfff  cStringIO.so (??? - ???) <AE5A2A12-8E57-3FE2-B998-C175083B27F7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
           0x106822000 -        0x106825fff  _collections.so (??? - ???) <62C1B5B7-654D-397A-8840-7EBB907DBCA1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
           0x10682b000 -        0x10682efff  operator.so (??? - ???) <59A152D0-52ED-354C-9C2D-D7390E3EC216> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
           0x106834000 -        0x10683afff  itertools.so (??? - ???) <7C8350B9-8DD3-377A-A5C1-1103A6C955A6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
           0x106843000 -        0x106843fff  _bisect.so (??? - ???) <CD57DCA1-74B4-37F8-B338-ABDDB1750F22> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
           0x106847000 -        0x106848fff  _heapq.so (??? - ???) <A3448C7E-3268-32A5-B4C5-859372FFA7E6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
           0x10684d000 -        0x106852fff  math.so (??? - ???) <BC93F501-541B-3BA8-B1D7-2644AAD6D6CE> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
           0x106858000 -        0x106859ff7  _random.so (??? - ???) <3C7A7C17-1698-32D0-BF09-F50A19F75E4B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
           0x10685d000 -        0x10685efff  fcntl.so (??? - ???) <D2F4AAAE-3C27-3134-84AE-021647AEB1C4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
           0x106862000 -        0x106863fff  time.so (??? - ???) <DA274462-B33A-33EB-90F7-BB9FB8120A5D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
           0x106869000 -        0x10686cfff  strop.so (??? - ???) <A317730F-EDDF-3998-8A22-0E632B3E67A4> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
           0x106871000 -        0x106871fff  _scproxy.so (??? - ???) <F392F576-344C-3CCB-B93C-E11205241E1D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_scproxy.so
           0x106935000 -        0x106940ff7  datetime.so (??? - ???) <9EC1E3BD-3BD3-3B39-AE19-448CCEEA747A> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/datetime.so
           0x106949000 -        0x106952fff  _sqlite3.so (??? - ???) <4F97C26B-1A2D-33D9-A7B4-C791FA3F645B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_sqlite3.so
           0x106b9f000 -        0x106ba3fff  _json.so (??? - ???) <A8E3EEA8-354B-35C6-A3C5-653928D7419D> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
           0x106ba8000 -        0x106bb9fff  _io.so (??? - ???) <5451CA4B-98A0-3F70-9322-DBE6B7D93CF1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
           0x106bc8000 -        0x106bd0fff  parser.so (??? - ???) <2E88032A-DFD4-38F0-BE83-03DA706702B1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/parser.so
           0x106bd5000 -        0x106bd7fff  zlib.so (??? - ???) <81E54FCE-EEAC-3E97-BB05-1143EB6AECA6> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
           0x106d1f000 -        0x106d30fff  _ctypes.so (??? - ???) <2D2AE6AF-704A-3CBB-954B-33BA49B78254> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
        0x7fff65c88000 -     0x7fff65cbcac7  dyld (195.5 - ???) <4A6E2B28-C7A2-3528-ADB7-4076B9836041> /usr/lib/dyld
        0x7fff8ace9000 -     0x7fff8ad22fe7  libssl.0.9.8.dylib (44.0.0 - compatibility 0.9.8) <79AAEC98-1258-3DA4-B1C0-4120049D390B> /usr/lib/libssl.0.9.8.dylib
        0x7fff8ae97000 -     0x7fff8aeb7fff  libsystem_kernel.dylib (1699.22.73 - compatibility 1.0.0) <69F2F501-72D8-3B3B-8357-F4418B3E1348> /usr/lib/system/libsystem_kernel.dylib
        0x7fff8af21000 -     0x7fff8af23fff  libquarantine.dylib (36.0.0 - compatibility 1.0.0) <4C3BFBC7-E592-3939-B376-1C2E2D7C5389> /usr/lib/system/libquarantine.dylib
        0x7fff8af37000 -     0x7fff8b10bfff  com.apple.CoreFoundation (6.7.1 - 635.15) <FE4A86C2-3599-3CF8-AD1A-822F1FEA820F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
     
    
     

Share This Page