You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Barry Wark <ba...@physion.us> on 2013/05/28 19:46:46 UTC

SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Hi all,

This is an edge case, I realize, but thought I'd throw it out there in case
anyone has come across a solution.

I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
jcc-compiled module (which the project uses). PyCharm's indexer crashes
when indexing this module with the crash report below. When running the
project's unit tests in PyCharm, this jcc-compiled module is imported (and
functions) without issue. PyCharm is a Java app, and I'm sure it's doing
some Java-Python bridging as well, so it's possible there's a conflict that
is the root of this crash. If so, I'll gladly file this as a PyCharm issue,
but though I'd run this by the JCC gurus in case they recognize what's
going on. I've never seen the PyCharm indexer crash before on modules that
don't use jcc.

Thanks,
Barry


The Crash Log:

Process:         python [85552]
Path:            /Users/USER/*/python
Identifier:      python
Version:         60.3
Code Type:       X86-64 (Native)
Parent Process:  pycharm [85481]
User ID:         501

Date/Time:       2013-05-28 13:35:21.728 -0400
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  10
Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-1EE79118E02F

Interval Since Last Report:          36408 sec
Crashes Since Last Report:           3
Per-App Crashes Since Last Report:   3
Anonymous UUID:                      5340B35B-8410-1D7A-63C1-2E05A95E2522

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc

VM Regions Near 0x544857bc:
-->
    __TEXT                 0000000104484000-0000000104485000 [    4K]
r-x/rwx SM=COW  /Users/USER/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
char>::JArray(long) + 37
1   _ovation_api.so               0x0000000105095250 _jclass*
initializeClass<unsigned char>(bool) + 42
2   _ovation_api.so               0x00000001050a290e
JCCEnv::getClass(_jclass* (*)(bool)) const + 18
3   _ovation_api.so               0x00000001050a6dd9
t_descriptor___get__(t_descriptor*, _object*, _object*) + 66
4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx +
9244
6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
1934
7   org.python.python             0x00000001044ac8df 0x10448f000 + 121055
8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
9389
9   org.python.python             0x00000001044ac869 0x10448f000 + 120937
10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
9389
11  org.python.python             0x00000001044ac869 0x10448f000 + 120937
12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
9389
13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
1934
14  org.python.python             0x00000001044ac8df 0x10448f000 + 121055
15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
9389
16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
1934
17  org.python.python             0x00000001044a59b3 PyEval_EvalCode + 54
18  org.python.python             0x00000001044e1c70 0x10448f000 + 339056
19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags + 165
20  org.python.python             0x00000001044e1726
PyRun_SimpleFileExFlags + 410
21  org.python.python             0x0000000104505e27 Py_Main + 2715
22  libdyld.dylib                 0x00007fff907047e1 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx: 0x0000000054485244
 rdx: 0x00000001053c55b0
  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp: 0x00007fff5b77a750
 rsp: 0x00007fff5b77a740
   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10: 0x0000000000000002
 r11: 0x0000000000000003
  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14: 0x0000000000000000
 r15: 0x00007fea32eb2880
  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2: 0x00000000544857bc
Logical CPU: 1

Binary Images:
       0x104484000 -        0x104484fff +python (60.3)
<A3CE5618-7FE0-3307-B2C1-DE2661C936B2> /Users/USER/*/python
       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 - 2.7.2)
<E7F3EED1-E55D-32AF-9649-77C814693F6A>
/System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x104b1f000 -        0x104b22fff +strop.so (60.4)
<282D8F1C-D709-339B-86E2-CE318F0E28E6> /Users/USER/*/strop.so
       0x104b56000 -        0x104b59fff +_struct.so (60.4)
<FF637943-8866-37F5-8B48-B97002F502A3> /Users/USER/*/_struct.so
       0x104b5f000 -        0x104b60fff +time.so (60.4)
<4C0DD616-3B43-309F-B5D9-040A9126146F> /Users/USER/*/time.so
       0x104b67000 -        0x104b6afff +_collections.so (60.4)
<02413565-C29E-3C7A-8E01-8C9C19642F15> /Users/USER/*/_collections.so
       0x104b70000 -        0x104b73fff +operator.so (60.4)
<FD5EC6F3-D0F9-358F-BF08-DC4B4F2109CB> /Users/USER/*/operator.so
       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
<36330819-32C7-3183-B213-2E1142050B3B> /Users/USER/*/itertools.so
       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
<EE97CCA4-3D48-3CEC-B163-37E3AC0DCDA1> /Users/USER/*/_bisect.so
       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
<7B91BA4D-5485-31BA-9FF9-789C6F3D0820> /Users/USER/*/_heapq.so
       0x104b92000 -        0x104b92fff +grp.so (60.4)
<1CF18F5D-68BA-3E03-A441-213B7EE0B553> /Users/USER/*/grp.so
       0x104b96000 -        0x104b98fff +binascii.so (60.4)
<81B4F9E4-1DA8-303B-A19F-78B9BF4B5248> /Users/USER/*/binascii.so
       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
<C625B01B-8C34-38AF-8AF3-E888E89291D3> /Users/USER/*/cStringIO.so
       0x104be5000 -        0x104bf6fff +_io.so (60.4)
<B753B0B7-E615-329D-A004-73F57F8B9F19> /Users/USER/*/_io.so
       0x104c05000 -        0x104c07fff +zlib.so (60.4)
<9F2F691B-1510-335A-B9FE-6600523D90FB> /Users/USER/*/zlib.so
       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
<49716A3A-5F27-384D-85C1-E9BC66F62859> /Users/USER/*/_ovation_api.so
       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 - 14.7.0)
<83C8C2AB-E99D-39FF-80B4-90A7DEB1DAFB>
/System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
<E89BD701-1C4E-3A44-8C32-6F81D2B53D13>
/System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
       0x10577c000 -        0x1057c0fff +_jcc.so (0)
<B875FD61-1E55-3E46-A008-4D8DEB66ED59> /Users/USER/*/_jcc.so
    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
<A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
<08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
(2050.22.13) <5A961E2A-CFB8-362B-BC43-122704AEB047>
/usr/lib/system/libsystem_kernel.dylib
    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore (4.1 -
269.2) <4FD4A7CE-BB00-3AAB-B7AA-AE395D5400EC>
/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.OSServices
(557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-8EFD0D2BFCCD>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
<CE9785E8-B535-3504-B392-82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
<2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8 -
151.10) <FFBBA538-00B5-334E-BA5B-C8AD6CDCDA14>
/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
<BBE558BD-5E55-35E4-89ED-1AA6B056D05A> /usr/lib/system/libxpc.dylib
    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
<20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
<864C409D-D56B-383E-9B44-A435A47F2346> /usr/lib/liblangid.dylib
    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
<21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
<736ABE58-8DED-3289-A042-C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
<14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
<F497D3CE-40D9-3551-84B4-3D5E39600737> /usr/lib/libbsm.0.dylib
    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
<BAAFE0C9-BB86-3CA7-88C0-E3CBA98DA06F> /usr/lib/system/libcommonCrypto.dylib
    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
<44F403C1-660A-3543-AB9C-3902E02F936F>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
1.4.0) <C7F43889-F8BF-3CB9-AD66-11AEFCBCEDE7>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
<4AAF0573-8632-3D06-BE32-C5675F77638D> /usr/lib/system/libkxld.dylib
    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
<73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
<90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
744.18) <A60C3C9B-3764-3291-844C-C487ACF77C2C>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
<6838A6FD-8626-3356-BB4F-BB4787216207>
/usr/lib/system/libsystem_sandbox.dylib
    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
<CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
<365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
<876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
<65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
<441776B8-9130-3893-956F-39C85FFA644F> /usr/lib/libxslt.1.dylib
    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices (1.2
- 184.4) <054F2D6F-9CFF-3EF1-9778-25C551B616C1>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
<EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
<FD6282D8-DF3F-3842-8C2E-CF478D2B9669> /usr/lib/libicucore.A.dylib
    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
<92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
945.16) <89BD68FD-72C8-35C1-94C6-3A07F097C50D>
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7 -
539.7) <DA7C602E-5E01-31B8-925D-B45360CA089F>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
<B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
<6763BC8E-18B8-3AD9-8FFA-B43713A7264F> /usr/lib/system/libremovefile.dylib
    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
<0D99F24E-56FE-380F-B81B-4A4C630EE587>
/usr/lib/system/libsystem_network.dylib
    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
<9DD44CB0-C644-35C3-8F57-0B41B3EC147D>
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
<CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
(1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-E9C1A286A72D>
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration (2.5.2 -
2.5.2) <C713A35A-360E-36CE-AC0A-25C86A3F50CA>
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
<4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
<82E24B9A-7742-3DA3-9E99-ED267D98C05E>
/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.CarbonCore
(1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-EFEA54DADF41>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
<D86169F3-9F31-377A-9AF3-DB17142052E4> /usr/lib/libc++abi.dylib
    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage (1.1
- 132.3) <FD4A84B3-13A8-3C60-A59E-25A361447A17>
/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
<ADE9CB98-D77D-300C-A32A-556B7440769F> /usr/lib/libsqlite3.dylib
    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
<F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
<2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
55179.11) <73958084-5BBC-3597-A751-7370B0C247E5>
/System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
707.5) <4140B1F6-7D73-33C7-B3F2-4DB349C31AE9>
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
<4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
596.3.3) <3739DC8D-8610-3740-80EC-43E130779CB8>
/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
<D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib (148.3)
<F8681222-0969-3B10-8BCE-C55A4B9C520C> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
<47B09CB2-C636-3024-8B55-6040F7829B4C> /usr/lib/libxml2.2.dylib
    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
<616FC901-151E-38BF-B2C4-24A351C5FAAD> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
<370ED355-E516-311E-BAFD-D80633A84BE1> /usr/lib/libxar.1.dylib
    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
<4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
<C8F45864-5B58-3237-87E1-2C258A1D73B8> /usr/lib/libpam.2.dylib
    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit (2.0.1 -
755.22.5) <1547DA6F-9793-30A2-8E92-7368DE84D46C>
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
<BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
<F5BC7D7D-AF28-3C83-A674-DADA48FF7810>
/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
<F2F3B753-FC73-3543-8BBE-859FDBB4D6A6>
/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
<D92DCBC3-541C-37BD-AADE-ACC75A0C59C8>
/usr/lib/system/libsystem_blocks.dylib
    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
<C49275CC-835A-3207-AFBA-8C01374927B6>
/usr/lib/system/libsystem_notify.dylib
    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.dylib
(8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8>
/usr/lib/libDiagnosticMessagesClient.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 10466
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
swapped_out_or_unallocated=56.3M(62%)
Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
swapped_out=0K(0%) unallocated=14.6M(56%)

REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             17.3M
MALLOC guard page                    32K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           4K
__DATA                             4188K
__LINKEDIT                         55.4M
__TEXT                             35.5M
__UNICODE                           544K
shared memory                        12K
===========                      =======
TOTAL                             176.8M

Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
Duo, 2.26 GHz, 4 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
0x31364A53463235363634485A2D3147314631
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
0x31364A53463235363634485A2D3147314631
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D),
Broadcom BCM43xx 1.0 (5.106.98.100.16)
Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial
ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: APPLE SSD TS256A, 251 GB
Serial ATA Device: HL-DT-ST DVDRW  GS23N
USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
0x26500000 / 2
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
0x04600000 / 3
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
0x06110000 / 3

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Barry Wark <ba...@physion.us>.
Ah, not sure why I couldn't find this before. Looks like it may be a
PyCharm issue, though I'm sure they'd be grateful for any guidance...
http://youtrack.jetbrains.com/issue/PY-7691


On Wed, May 29, 2013 at 4:58 PM, Barry Wark <ba...@physion.us> wrote:

>
>
>
> On Wed, May 29, 2013 at 4:44 PM, Andi Vajda <va...@apache.org> wrote:
>
>>
>> On Wed, 29 May 2013, Barry Wark wrote:
>>
>>  On Wed, May 29, 2013 at 1:53 PM, Andi Vajda <va...@apache.org> wrote:
>>>
>>>
>>>> On Tue, 28 May 2013, Barry Wark wrote:
>>>>
>>>>  On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>>>>
>>>>>
>>>>>
>>>>>  On Tue, 28 May 2013, Barry Wark wrote:
>>>>>>
>>>>>>  Hi all,
>>>>>>
>>>>>>
>>>>>>> This is an edge case, I realize, but thought I'd throw it out there
>>>>>>> in
>>>>>>> case
>>>>>>> anyone has come across a solution.
>>>>>>>
>>>>>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains
>>>>>>> a
>>>>>>> jcc-compiled module (which the project uses). PyCharm's indexer
>>>>>>> crashes
>>>>>>>
>>>>>>>
>>>>>>>  Which project ? yours or PyCharm-the-project ?
>>>>>> What version of JCC was this module compiled with ?
>>>>>>
>>>>>>
>>>>>
>>>>> The project is mine, a python wrapper around Physion's Ovation API.
>>>>> We're
>>>>> using JCC 2.16. PyCharm is IDEA's Python IDE (
>>>>> http://www.jetbrains.com/****pycharm/<http://www.jetbrains.com/**pycharm/><
>>>>> http://www.jetbrains.com/**pycharm/<http://www.jetbrains.com/pycharm/>
>>>>> >).
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>  when indexing this module with the crash report below. When running
>>>>>> the
>>>>>>
>>>>>>  project's unit tests in PyCharm, this jcc-compiled module is imported
>>>>>>> (and
>>>>>>> functions) without issue. PyCharm is a Java app, and I'm sure it's
>>>>>>> doing
>>>>>>> some Java-Python bridging as well
>>>>>>>
>>>>>>>
>>>>>>>  If PyCharm is a Java app, what kind of python bridging is it doing
>>>>>> ? And
>>>>>> how does that involve JCC ? I'm assuming that if PyCharm is a Java
>>>>>> module,
>>>>>> its indexing would be implemented in Java too ?
>>>>>>
>>>>>>
>>>>>
>>>>> I don't really know how PyCharm handles Java/Python bridging. PyCharm
>>>>> is
>>>>> built on IDEA's (Java) IDE framework, and it works with Python code.
>>>>> It's
>>>>> purely speculation on my part that PyCharm's Java/Python bridging (if
>>>>> any)
>>>>> is involved here.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>  , so it's possible there's a conflict that
>>>>>>
>>>>>>  is the root of this crash. If so, I'll gladly file this as a PyCharm
>>>>>>> issue,
>>>>>>> but though I'd run this by the JCC gurus in case they recognize
>>>>>>> what's
>>>>>>> going on. I've never seen the PyCharm indexer crash before on modules
>>>>>>> that
>>>>>>> don't use jcc.
>>>>>>>
>>>>>>>
>>>>>>>  What version(s) of JCC are involved here ?
>>>>>>
>>>>>>
>>>>>
>>>>> 2.16 on OS X 10.8, Python 2.7.
>>>>>
>>>>>
>>>> So, to paraphrase to make sure I understand this correctly:
>>>>   - PyCharm is a Java program that can spawn Python processes
>>>>
>>>>
>>> Yes. In particular, it spawns a python process to "index" a python module
>>> for code completion
>>>
>>>
>>>    - Your python project uses JCC and runs fine by itself
>>>>
>>>>
>>> Yes
>>>
>>>
>>>    - Your python project crashes when run under PyCharm
>>>>
>>>>
>>> Almost. My project *runs* fine when spawned under PyCharm, but the
>>> PyCharm
>>>
>>> "indexer" crashes when attempting to index my module built with jcc.
>>>
>>
>> That is not what your stacktrace shows. It's ends up somewhere in your
>> jcc-built extension:
>>
>>
>>   Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>          0   _ovation_api.so
>>
>
> Yes, the process spawned by PyCharm to index ovation_api (for code
> completion, etc.) crashes in the _ovation_api.so module. A Python program
> (e.g. script or unit tests) that import ovation_api (and call initVM(),
> etc.) does *not* crash when run at the command line or from within
> PyCharm. This issue appears restricted to the python process launched by
> PyCharm to "index" the ovation_api module.
>
>
>
>>
>> Andi..
>>
>>  One possibility here is that there is a clash of Java VMs. There can only
>>>> be one Java VM in a given process. JCC can be embedding a Java VM (the
>>>> default case) and it controls and initializes it or JCC can be embedded
>>>> inside a existing Java VM (when run inside Tomcat, for example). This
>>>> latter feature is not well documented but works fine (see the
>>>> PythonVM.java
>>>> file in the JCC sources for more information).
>>>>
>>>>
>>> Interesting. The process that crashes is a python child process spawned
>>> by
>>> PyCharm. I don't know whether there is a JavaVM running in this child
>>> process. I looked at the source of PythonVM.java and I don't see any
>>> comments/docs about the various embedding options. Can you give me a bit
>>> more information?
>>>
>>>
>>>
>>>
>>>> I don't know how PyCharm controls Python programs, does it embed a
>>>> Python
>>>> VM ? does it spawn a sub-process ? There could be an issue here.
>>>>
>>>>
>>> It's not transparent to me how PyCharm handles python VMs either. From
>>> the
>>> crash log, it appears that in this particular case it is spawning a child
>>> process.
>>>
>>> Thank you,
>>> Barry
>>>
>>>
>>>
>>>> Andi..
>>>>
>>>>
>>>>  Thanks,
>>>>> Barry
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Andi..
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Thanks,
>>>>>>
>>>>>>> Barry
>>>>>>>
>>>>>>>
>>>>>>> The Crash Log:
>>>>>>>
>>>>>>> Process:         python [85552]
>>>>>>> Path:            /Users/USER/*/python
>>>>>>> Identifier:      python
>>>>>>> Version:         60.3
>>>>>>> Code Type:       X86-64 (Native)
>>>>>>> Parent Process:  pycharm [85481]
>>>>>>> User ID:         501
>>>>>>>
>>>>>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>>>>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>>>>>> Report Version:  10
>>>>>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-******1EE79118E02F
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Interval Since Last Report:          36408 sec
>>>>>>> Crashes Since Last Report:           3
>>>>>>> Per-App Crashes Since Last Report:   3
>>>>>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>>>>>>
>>>>>>> 2E05A95E2522
>>>>>>>
>>>>>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>>>>>
>>>>>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>>>>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>>>>>
>>>>>>> VM Regions Near 0x544857bc:
>>>>>>> -->
>>>>>>>    __TEXT                 0000000104484000-******0000000104485000 [
>>>>>>>
>>>>>>>  4K]
>>>>>>>
>>>>>>> r-x/rwx SM=COW  /Users/USER/*
>>>>>>>
>>>>>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>>>>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>>>>>> char>::JArray(long) + 37
>>>>>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>>>>>> initializeClass<unsigned char>(bool) + 42
>>>>>>> 2   _ovation_api.so               0x00000001050a290e
>>>>>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>>>>>> 3   _ovation_api.so               0x00000001050a6dd9
>>>>>>> t_descriptor___get__(t_******descriptor*, _object*, _object*) + 66
>>>>>>>
>>>>>>>
>>>>>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 +
>>>>>>> 74673
>>>>>>> 5   org.python.python             0x00000001044a85a9
>>>>>>> PyEval_EvalFrameEx
>>>>>>> +
>>>>>>> 9244
>>>>>>> 6   org.python.python             0x00000001044a6147
>>>>>>> PyEval_EvalCodeEx +
>>>>>>> 1934
>>>>>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>>>> 121055
>>>>>>> 8   org.python.python             0x00000001044a863a
>>>>>>> PyEval_EvalFrameEx
>>>>>>> +
>>>>>>> 9389
>>>>>>> 9   org.python.python             0x00000001044ac869 0x10448f000 +
>>>>>>> 120937
>>>>>>> 10  org.python.python             0x00000001044a863a
>>>>>>> PyEval_EvalFrameEx
>>>>>>> +
>>>>>>> 9389
>>>>>>> 11  org.python.python             0x00000001044ac869 0x10448f000 +
>>>>>>> 120937
>>>>>>> 12  org.python.python             0x00000001044a863a
>>>>>>> PyEval_EvalFrameEx
>>>>>>> +
>>>>>>> 9389
>>>>>>> 13  org.python.python             0x00000001044a6147
>>>>>>> PyEval_EvalCodeEx +
>>>>>>> 1934
>>>>>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>>>> 121055
>>>>>>> 15  org.python.python             0x00000001044a863a
>>>>>>> PyEval_EvalFrameEx
>>>>>>> +
>>>>>>> 9389
>>>>>>> 16  org.python.python             0x00000001044a6147
>>>>>>> PyEval_EvalCodeEx +
>>>>>>> 1934
>>>>>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode
>>>>>>> +
>>>>>>> 54
>>>>>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 +
>>>>>>> 339056
>>>>>>> 19  org.python.python             0x00000001044e1d3c
>>>>>>> PyRun_FileExFlags +
>>>>>>> 165
>>>>>>> 20  org.python.python             0x00000001044e1726
>>>>>>> PyRun_SimpleFileExFlags + 410
>>>>>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>>>>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>>>>>
>>>>>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>>>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx:
>>>>>>> 0x0000000054485244
>>>>>>> rdx: 0x00000001053c55b0
>>>>>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp:
>>>>>>> 0x00007fff5b77a750
>>>>>>> rsp: 0x00007fff5b77a740
>>>>>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10:
>>>>>>> 0x0000000000000002
>>>>>>> r11: 0x0000000000000003
>>>>>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14:
>>>>>>> 0x0000000000000000
>>>>>>> r15: 0x00007fea32eb2880
>>>>>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2:
>>>>>>> 0x00000000544857bc
>>>>>>> Logical CPU: 1
>>>>>>>
>>>>>>> Binary Images:
>>>>>>>       0x104484000 -        0x104484fff +python (60.3)
>>>>>>> <A3CE5618-7FE0-3307-B2C1-******DE2661C936B2> /Users/USER/*/python
>>>>>>>
>>>>>>>
>>>>>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 -
>>>>>>> 2.7.2)
>>>>>>> <E7F3EED1-E55D-32AF-9649-******77C814693F6A>
>>>>>>> /System/Library/Frameworks/******Python.framework/Versions/2.**
>>>>>>> 7/****Python
>>>>>>>
>>>>>>>
>>>>>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>>>>>> <282D8F1C-D709-339B-86E2-******CE318F0E28E6> /Users/USER/*/strop.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>>>>>> <FF637943-8866-37F5-8B48-******B97002F502A3>
>>>>>>> /Users/USER/*/_struct.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>>>>>> <4C0DD616-3B43-309F-B5D9-******040A9126146F> /Users/USER/*/time.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>>>>>> <02413565-C29E-3C7A-8E01-******8C9C19642F15>
>>>>>>>
>>>>>>> /Users/USER/*/_collections.so
>>>>>>>
>>>>>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>>>>>> <FD5EC6F3-D0F9-358F-BF08-******DC4B4F2109CB>
>>>>>>> /Users/USER/*/operator.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>>>>>> <36330819-32C7-3183-B213-******2E1142050B3B>
>>>>>>> /Users/USER/*/itertools.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>>>>>> <EE97CCA4-3D48-3CEC-B163-******37E3AC0DCDA1>
>>>>>>> /Users/USER/*/_bisect.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>>>>>> <7B91BA4D-5485-31BA-9FF9-******789C6F3D0820> /Users/USER/*/_heapq.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>>>>>> <1CF18F5D-68BA-3E03-A441-******213B7EE0B553> /Users/USER/*/grp.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>>>>>> <81B4F9E4-1DA8-303B-A19F-******78B9BF4B5248>
>>>>>>> /Users/USER/*/binascii.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>>>>>> <C625B01B-8C34-38AF-8AF3-******E888E89291D3>
>>>>>>> /Users/USER/*/cStringIO.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>>>>>> <B753B0B7-E615-329D-A004-******73F57F8B9F19> /Users/USER/*/_io.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>>>>>> <9F2F691B-1510-335A-B9FE-******6600523D90FB> /Users/USER/*/zlib.so
>>>>>>>
>>>>>>>
>>>>>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>>>>>> <49716A3A-5F27-384D-85C1-******E9BC66F62859>
>>>>>>>
>>>>>>> /Users/USER/*/_ovation_api.so
>>>>>>>
>>>>>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 -
>>>>>>> 14.7.0)
>>>>>>> <83C8C2AB-E99D-39FF-80B4-******90A7DEB1DAFB>
>>>>>>> /System/Library/Frameworks/******JavaVM.framework/Versions/A/***
>>>>>>> ***JavaVM
>>>>>>>
>>>>>>>
>>>>>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>>>>>> <E89BD701-1C4E-3A44-8C32-******6F81D2B53D13>
>>>>>>> /System/Library/******PrivateFrameworks/******
>>>>>>> JavaLaunching.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/JavaLaunching
>>>>>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>>>>>> <B875FD61-1E55-3E46-A008-******4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>>>>>> <A40597AA-5529-3337-8C09-******D8A014EB1578> /usr/lib/dyld
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>>>>>> <08F8731D-5961-39F1-AD00-******4590321D24A9>
>>>>>>>
>>>>>>> /usr/lib/system/libcompiler_**
>>>>>>>
>>>>>>> rt.dylib
>>>>>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>>>>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-******122704AEB047>
>>>>>>> /usr/lib/system/libsystem_******kernel.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore
>>>>>>> (4.1 -
>>>>>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-******AE395D5400EC>
>>>>>>> /System/Library/******PrivateFrameworks/****
>>>>>>>
>>>>>>> DataDetectorsCore.framework/**
>>>>>>> Versions/A/DataDetectorsCore
>>>>>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>>>>>> OSServices
>>>>>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-******8EFD0D2BFCCD>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******OSServices.framework/Versions/****
>>>>>>>
>>>>>>> **A/OSServices
>>>>>>>
>>>>>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>>>>>> <CE9785E8-B535-3504-B392-******82F0064D9AF2>
>>>>>>> /usr/lib/libbz2.1.0.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>>>>>> <2A1551E8-A272-3DE5-B692-******955974FE1416> /usr/lib/libz.1.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory
>>>>>>> (10.8
>>>>>>> -
>>>>>>> 151.10) <FFBBA538-00B5-334E-BA5B-******C8AD6CDCDA14>
>>>>>>> /System/Library/Frameworks/******OpenDirectory.framework/**
>>>>>>> Versions/A/Frameworks/******CFOpenDirectory.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/CFOpenDirectory
>>>>>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>>>>>> <BBE558BD-5E55-35E4-89ED-******1AA6B056D05A>
>>>>>>> /usr/lib/system/libxpc.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>>>>>> <20E31B90-19B9-3C2A-A9EB-******474E08F9FE05> /usr/lib/libc++.1.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>>>>>> <864C409D-D56B-383E-9B44-******A435A47F2346>
>>>>>>> /usr/lib/liblangid.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>>>>>> <21703D36-2DAB-3D8B-8442-******EAAB23C060D3>
>>>>>>> /usr/lib/system/libunwind.**
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>>>>>> <736ABE58-8DED-3289-A042-******C25AF7AE5B23>
>>>>>>> /usr/lib/libCRFSuite.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>>>>>> <14202FFB-C3CA-3FCC-94B0-******14611BF8692D>
>>>>>>>
>>>>>>> /usr/lib/system/libdnsinfo.**
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>>>>>> <F497D3CE-40D9-3551-84B4-******3D5E39600737> /usr/lib/libbsm.0.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>>>>>> <BAAFE0C9-BB86-3CA7-88C0-******E3CBA98DA06F> /usr/lib/system/**
>>>>>>>
>>>>>>>
>>>>>>> libcommonCrypto.dylib
>>>>>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>>>>>> <44F403C1-660A-3543-AB9C-******3902E02F936F>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/AE.******framework/Versions/A/AE
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>>>>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-******11AEFCBCEDE7>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******SearchKit.framework/Versions/***
>>>>>>> ***A/SearchKit
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>>>>>> <4AAF0573-8632-3D06-BE32-******C5675F77638D>
>>>>>>>
>>>>>>> /usr/lib/system/libkxld.dylib
>>>>>>>
>>>>>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>>>>>> <73CDC482-16E3-3FC7-9BB4-******FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>>>>>> <90D31928-F48D-3E37-874F-******220A51FD9E37>
>>>>>>> /usr/lib/libobjc.A.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation
>>>>>>> (6.8 -
>>>>>>> 744.18) <A60C3C9B-3764-3291-844C-******C487ACF77C2C>
>>>>>>> /System/Library/Frameworks/******CoreFoundation.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/CoreFoundation
>>>>>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib
>>>>>>> (220.2)
>>>>>>> <6838A6FD-8626-3356-BB4F-******BB4787216207>
>>>>>>> /usr/lib/system/libsystem_******sandbox.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>>>>>> <CC9E3394-BE16-397F-926B-******E579B60EE429>
>>>>>>> /usr/lib/system/libkeymgr.**
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>>>>>> <365477AB-D641-389D-B8F4-******A1FAE9657EEE>
>>>>>>> /usr/lib/libSystem.B.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>>>>>> <876573D0-E907-3566-A108-******577EAD1B6182>
>>>>>>>
>>>>>>> /usr/lib/system/libcopyfile.**
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>>>>>> <65187C6E-3FBF-3EB8-A1AA-******389445E2984D>
>>>>>>>
>>>>>>> /usr/lib/system/libcache.dylib
>>>>>>>
>>>>>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>>>>>> <441776B8-9130-3893-956F-******39C85FFA644F>
>>>>>>> /usr/lib/libxslt.1.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices
>>>>>>> (1.2
>>>>>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-******25C551B616C1>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******DictionaryServices.framework/******
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/DictionaryServices
>>>>>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>>>>>> <EAA2B53E-EADE-39CF-A0EF-******FB9D4940672A>
>>>>>>> /usr/lib/libstdc++.6.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>>>>>> <FD6282D8-DF3F-3842-8C2E-******CF478D2B9669>
>>>>>>> /usr/lib/libicucore.A.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>>>>>> <92805328-CD36-34FF-9436-******571AB0485072>
>>>>>>> /usr/lib/system/libunc.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>>>>>> 945.16) <89BD68FD-72C8-35C1-94C6-******3A07F097C50D>
>>>>>>> /System/Library/Frameworks/******Foundation.framework/**Versions/**
>>>>>>>
>>>>>>> **C/Foundation
>>>>>>>
>>>>>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices
>>>>>>> (539.7
>>>>>>> -
>>>>>>> 539.7) <DA7C602E-5E01-31B8-925D-******B45360CA089F>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******LaunchServices.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/LaunchServices
>>>>>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>>>>>> <B434BE5C-25AB-3EBD-BAA7-******5304B34E3441>
>>>>>>>
>>>>>>> /usr/lib/system/libsystem_m.**
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>>>>>> <6763BC8E-18B8-3AD9-8FFA-******B43713A7264F>
>>>>>>> /usr/lib/system/libremovefile.******
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib
>>>>>>> (77.10)
>>>>>>> <0D99F24E-56FE-380F-B81B-******4A4C630EE587>
>>>>>>> /usr/lib/system/libsystem_******network.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 -
>>>>>>> 57)
>>>>>>> <9DD44CB0-C644-35C3-8F57-******0B41B3EC147D>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/CoreServices
>>>>>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>>>>>> <CE0C29A3-C420-339B-ADAA-******52F4683233CC>
>>>>>>> /usr/lib/system/libcorecrypto.******
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>>>>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-******E9C1A286A72D>
>>>>>>> /System/Library/Frameworks/******SystemConfiguration.**
>>>>>>> framework/****
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/SystemConfiguration
>>>>>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration
>>>>>>> (2.5.2 -
>>>>>>> 2.5.2) <C713A35A-360E-36CE-AC0A-******25C86A3F50CA>
>>>>>>> /System/Library/Frameworks/******DiskArbitration.framework/**
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/DiskArbitration
>>>>>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>>>>>> <4BE2E642-A14F-340A-B482-******5BD2AEFD9C24>
>>>>>>> /usr/lib/system/libquarantine.******
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>>>>>> <82E24B9A-7742-3DA3-9E99-******ED267D98C05E>
>>>>>>> /System/Library/Frameworks/******NetFS.framework/Versions/A/****
>>>>>>> **NetFS
>>>>>>>
>>>>>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>>>>>> CarbonCore
>>>>>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-******EFEA54DADF41>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******CarbonCore.framework/Versions/****
>>>>>>>
>>>>>>> **A/CarbonCore
>>>>>>>
>>>>>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>>>>>> <D86169F3-9F31-377A-9AF3-******DB17142052E4>
>>>>>>> /usr/lib/libc++abi.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage
>>>>>>> (1.1
>>>>>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-******25A361447A17>
>>>>>>> /System/Library/******PrivateFrameworks/****
>>>>>>> GenerationalStorage.framework/******
>>>>>>>
>>>>>>>
>>>>>>> Versions/A/GenerationalStorage
>>>>>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>>>>>> <ADE9CB98-D77D-300C-A32A-******556B7440769F>
>>>>>>> /usr/lib/libsqlite3.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>>>>>> <F59367C9-C110-382B-A695-******9035A6DD387E>
>>>>>>>
>>>>>>> /usr/lib/system/libdyld.dylib
>>>>>>>
>>>>>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>>>>>> <2F71CAF8-6524-329E-AC56-******C506658B4C0C>
>>>>>>> /usr/lib/system/liblaunch.**
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>>>>>> 55179.11) <73958084-5BBC-3597-A751-******7370B0C247E5>
>>>>>>> /System/Library/Frameworks/******Security.framework/Versions/**A/**
>>>>>>>
>>>>>>> **Security
>>>>>>>
>>>>>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>>>>>> 707.5) <4140B1F6-7D73-33C7-B3F2-******4DB349C31AE9>
>>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>> Versions/A/Frameworks/******Metadata.framework/Versions/A/**
>>>>>>> ****Metadata
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>>>>>> <4C9EB006-FE1F-3F8F-8074-******DFD94CF2CE7B>
>>>>>>>
>>>>>>> /usr/lib/system/libsystem_c.**
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3
>>>>>>> -
>>>>>>> 596.3.3) <3739DC8D-8610-3740-80EC-******43E130779CB8>
>>>>>>> /System/Library/Frameworks/******CFNetwork.framework/Versions/*****
>>>>>>>
>>>>>>> *A/CFNetwork
>>>>>>>
>>>>>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>>>>>> <D26996BF-FC57-39EB-8829-******F63585561E09>
>>>>>>>
>>>>>>> /usr/lib/system/libdispatch.**
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib
>>>>>>> (148.3)
>>>>>>> <F8681222-0969-3B10-8BCE-******C55A4B9C520C>
>>>>>>> /usr/lib/libOpenScriptingUtil.******
>>>>>>>
>>>>>>>
>>>>>>> dylib
>>>>>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>>>>>> <47B09CB2-C636-3024-8B55-******6040F7829B4C>
>>>>>>> /usr/lib/libxml2.2.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib
>>>>>>> (379.37)
>>>>>>> <616FC901-151E-38BF-B2C4-******24A351C5FAAD>
>>>>>>> /usr/lib/system/libsystem_**
>>>>>>>
>>>>>>>
>>>>>>> dnssd.dylib
>>>>>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>>>>>> <370ED355-E516-311E-BAFD-******D80633A84BE1> /usr/lib/libxar.1.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>>>>>> <4FFCA242-7F04-365F-87A6-******D4EFB89503C1>
>>>>>>> /usr/lib/system/libsystem_**
>>>>>>>
>>>>>>>
>>>>>>> info.dylib
>>>>>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>>>>>> <C8F45864-5B58-3237-87E1-******2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit
>>>>>>> (2.0.1 -
>>>>>>> 755.22.5) <1547DA6F-9793-30A2-8E92-******7368DE84D46C>
>>>>>>> /System/Library/Frameworks/******IOKit.framework/Versions/A/****
>>>>>>> **IOKit
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>>>>>> <BF332AD9-E89F-387E-92A4-******6E1AB74BD4D9>
>>>>>>>
>>>>>>> /usr/lib/system/libmacho.dylib
>>>>>>>
>>>>>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>>>>>> <F5BC7D7D-AF28-3C83-A674-******DADA48FF7810>
>>>>>>> /System/Library/******PrivateFrameworks/NetAuth.**
>>>>>>>
>>>>>>>
>>>>>>> framework/Versions/A/NetAuth
>>>>>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>>>>>> <F2F3B753-FC73-3543-8BBE-******859FDBB4D6A6>
>>>>>>> /System/Library/******PrivateFrameworks/TCC.******
>>>>>>> framework/Versions/A/TCC
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>>>>>> <D92DCBC3-541C-37BD-AADE-******ACC75A0C59C8>
>>>>>>> /usr/lib/system/libsystem_******blocks.dylib
>>>>>>>
>>>>>>>
>>>>>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>>>>>> <C49275CC-835A-3207-AFBA-******8C01374927B6>
>>>>>>> /usr/lib/system/libsystem_******notify.dylib
>>>>>>>
>>>>>>>    0x7fff9471e000 -     0x7fff9471ffff
>>>>>>>  libDiagnosticMessagesClient.**
>>>>>>> dylib
>>>>>>> (8) <8548E0DC-0D2F-30B6-B045-******FE8A038E76D8>
>>>>>>> /usr/lib/******libDiagnosticMessagesClient.******dylib
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> External Modification Summary:
>>>>>>>  Calls made by other processes targeting this process:
>>>>>>>    task_for_pid: 0
>>>>>>>    thread_create: 0
>>>>>>>    thread_set_state: 0
>>>>>>>  Calls made by this process:
>>>>>>>    task_for_pid: 0
>>>>>>>    thread_create: 0
>>>>>>>    thread_set_state: 0
>>>>>>>  Calls made by all processes on this machine:
>>>>>>>    task_for_pid: 10466
>>>>>>>    thread_create: 1
>>>>>>>    thread_set_state: 0
>>>>>>>
>>>>>>> VM Region Summary:
>>>>>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>>>>>> swapped_out_or_unallocated=56.******3M(62%)
>>>>>>>
>>>>>>>
>>>>>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>>>>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>>>>>
>>>>>>> REGION TYPE                      VIRTUAL
>>>>>>> ===========                      =======
>>>>>>> MALLOC                             17.3M
>>>>>>> MALLOC guard page                    32K
>>>>>>> STACK GUARD                        56.0M
>>>>>>> Stack                              8192K
>>>>>>> VM_ALLOCATE                           4K
>>>>>>> __DATA                             4188K
>>>>>>> __LINKEDIT                         55.4M
>>>>>>> __TEXT                             35.5M
>>>>>>> __UNICODE                           544K
>>>>>>> shared memory                        12K
>>>>>>> ===========                      =======
>>>>>>> TOTAL                             176.8M
>>>>>>>
>>>>>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel
>>>>>>> Core 2
>>>>>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>>>>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>>>>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>>>> 0x31364A53463235363634485A2D31******47314631
>>>>>>>
>>>>>>>
>>>>>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>>>> 0x31364A53463235363634485A2D31******47314631
>>>>>>> AirPort: spairport_wireless_card_type_******airport_extreme (0x14E4,
>>>>>>>
>>>>>>> 0x8D),
>>>>>>>
>>>>>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>>>>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming
>>>>>>> serial
>>>>>>> ports
>>>>>>> Network Service: AirPort, AirPort, en1
>>>>>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>>>>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>>>>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>>>>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>>>>>> 0x26500000 / 2
>>>>>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id,
>>>>>>> 0x0236,
>>>>>>> 0x04600000 / 3
>>>>>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>>>>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500,
>>>>>>> 0x06100000
>>>>>>> / 2
>>>>>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>>>>>> 0x06110000 / 3
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>
>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Barry Wark <ba...@physion.us>.
On Wed, May 29, 2013 at 4:44 PM, Andi Vajda <va...@apache.org> wrote:

>
> On Wed, 29 May 2013, Barry Wark wrote:
>
>  On Wed, May 29, 2013 at 1:53 PM, Andi Vajda <va...@apache.org> wrote:
>>
>>
>>> On Tue, 28 May 2013, Barry Wark wrote:
>>>
>>>  On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>>>
>>>>
>>>>
>>>>  On Tue, 28 May 2013, Barry Wark wrote:
>>>>>
>>>>>  Hi all,
>>>>>
>>>>>
>>>>>> This is an edge case, I realize, but thought I'd throw it out there in
>>>>>> case
>>>>>> anyone has come across a solution.
>>>>>>
>>>>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>>>>>> jcc-compiled module (which the project uses). PyCharm's indexer
>>>>>> crashes
>>>>>>
>>>>>>
>>>>>>  Which project ? yours or PyCharm-the-project ?
>>>>> What version of JCC was this module compiled with ?
>>>>>
>>>>>
>>>>
>>>> The project is mine, a python wrapper around Physion's Ovation API.
>>>> We're
>>>> using JCC 2.16. PyCharm is IDEA's Python IDE (
>>>> http://www.jetbrains.com/****pycharm/<http://www.jetbrains.com/**pycharm/><
>>>> http://www.jetbrains.com/**pycharm/ <http://www.jetbrains.com/pycharm/>
>>>> >).
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>  when indexing this module with the crash report below. When running
>>>>> the
>>>>>
>>>>>  project's unit tests in PyCharm, this jcc-compiled module is imported
>>>>>> (and
>>>>>> functions) without issue. PyCharm is a Java app, and I'm sure it's
>>>>>> doing
>>>>>> some Java-Python bridging as well
>>>>>>
>>>>>>
>>>>>>  If PyCharm is a Java app, what kind of python bridging is it doing ?
>>>>> And
>>>>> how does that involve JCC ? I'm assuming that if PyCharm is a Java
>>>>> module,
>>>>> its indexing would be implemented in Java too ?
>>>>>
>>>>>
>>>>
>>>> I don't really know how PyCharm handles Java/Python bridging. PyCharm is
>>>> built on IDEA's (Java) IDE framework, and it works with Python code.
>>>> It's
>>>> purely speculation on my part that PyCharm's Java/Python bridging (if
>>>> any)
>>>> is involved here.
>>>>
>>>>
>>>>
>>>>
>>>>>  , so it's possible there's a conflict that
>>>>>
>>>>>  is the root of this crash. If so, I'll gladly file this as a PyCharm
>>>>>> issue,
>>>>>> but though I'd run this by the JCC gurus in case they recognize what's
>>>>>> going on. I've never seen the PyCharm indexer crash before on modules
>>>>>> that
>>>>>> don't use jcc.
>>>>>>
>>>>>>
>>>>>>  What version(s) of JCC are involved here ?
>>>>>
>>>>>
>>>>
>>>> 2.16 on OS X 10.8, Python 2.7.
>>>>
>>>>
>>> So, to paraphrase to make sure I understand this correctly:
>>>   - PyCharm is a Java program that can spawn Python processes
>>>
>>>
>> Yes. In particular, it spawns a python process to "index" a python module
>> for code completion
>>
>>
>>    - Your python project uses JCC and runs fine by itself
>>>
>>>
>> Yes
>>
>>
>>    - Your python project crashes when run under PyCharm
>>>
>>>
>> Almost. My project *runs* fine when spawned under PyCharm, but the PyCharm
>>
>> "indexer" crashes when attempting to index my module built with jcc.
>>
>
> That is not what your stacktrace shows. It's ends up somewhere in your
> jcc-built extension:
>
>
>   Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>          0   _ovation_api.so
>

Yes, the process spawned by PyCharm to index ovation_api (for code
completion, etc.) crashes in the _ovation_api.so module. A Python program
(e.g. script or unit tests) that import ovation_api (and call initVM(),
etc.) does *not* crash when run at the command line or from within PyCharm.
This issue appears restricted to the python process launched by PyCharm to
"index" the ovation_api module.



>
> Andi..
>
>  One possibility here is that there is a clash of Java VMs. There can only
>>> be one Java VM in a given process. JCC can be embedding a Java VM (the
>>> default case) and it controls and initializes it or JCC can be embedded
>>> inside a existing Java VM (when run inside Tomcat, for example). This
>>> latter feature is not well documented but works fine (see the
>>> PythonVM.java
>>> file in the JCC sources for more information).
>>>
>>>
>> Interesting. The process that crashes is a python child process spawned by
>> PyCharm. I don't know whether there is a JavaVM running in this child
>> process. I looked at the source of PythonVM.java and I don't see any
>> comments/docs about the various embedding options. Can you give me a bit
>> more information?
>>
>>
>>
>>
>>> I don't know how PyCharm controls Python programs, does it embed a Python
>>> VM ? does it spawn a sub-process ? There could be an issue here.
>>>
>>>
>> It's not transparent to me how PyCharm handles python VMs either. From the
>> crash log, it appears that in this particular case it is spawning a child
>> process.
>>
>> Thank you,
>> Barry
>>
>>
>>
>>> Andi..
>>>
>>>
>>>  Thanks,
>>>> Barry
>>>>
>>>>
>>>>
>>>>
>>>>> Andi..
>>>>>
>>>>>
>>>>>
>>>>>  Thanks,
>>>>>
>>>>>> Barry
>>>>>>
>>>>>>
>>>>>> The Crash Log:
>>>>>>
>>>>>> Process:         python [85552]
>>>>>> Path:            /Users/USER/*/python
>>>>>> Identifier:      python
>>>>>> Version:         60.3
>>>>>> Code Type:       X86-64 (Native)
>>>>>> Parent Process:  pycharm [85481]
>>>>>> User ID:         501
>>>>>>
>>>>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>>>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>>>>> Report Version:  10
>>>>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-******1EE79118E02F
>>>>>>
>>>>>>
>>>>>>
>>>>>> Interval Since Last Report:          36408 sec
>>>>>> Crashes Since Last Report:           3
>>>>>> Per-App Crashes Since Last Report:   3
>>>>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>>>>>
>>>>>> 2E05A95E2522
>>>>>>
>>>>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>>>>
>>>>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>>>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>>>>
>>>>>> VM Regions Near 0x544857bc:
>>>>>> -->
>>>>>>    __TEXT                 0000000104484000-******0000000104485000 [
>>>>>>
>>>>>>  4K]
>>>>>>
>>>>>> r-x/rwx SM=COW  /Users/USER/*
>>>>>>
>>>>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>>>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>>>>> char>::JArray(long) + 37
>>>>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>>>>> initializeClass<unsigned char>(bool) + 42
>>>>>> 2   _ovation_api.so               0x00000001050a290e
>>>>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>>>>> 3   _ovation_api.so               0x00000001050a6dd9
>>>>>> t_descriptor___get__(t_******descriptor*, _object*, _object*) + 66
>>>>>>
>>>>>>
>>>>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 +
>>>>>> 74673
>>>>>> 5   org.python.python             0x00000001044a85a9
>>>>>> PyEval_EvalFrameEx
>>>>>> +
>>>>>> 9244
>>>>>> 6   org.python.python             0x00000001044a6147
>>>>>> PyEval_EvalCodeEx +
>>>>>> 1934
>>>>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>>> 121055
>>>>>> 8   org.python.python             0x00000001044a863a
>>>>>> PyEval_EvalFrameEx
>>>>>> +
>>>>>> 9389
>>>>>> 9   org.python.python             0x00000001044ac869 0x10448f000 +
>>>>>> 120937
>>>>>> 10  org.python.python             0x00000001044a863a
>>>>>> PyEval_EvalFrameEx
>>>>>> +
>>>>>> 9389
>>>>>> 11  org.python.python             0x00000001044ac869 0x10448f000 +
>>>>>> 120937
>>>>>> 12  org.python.python             0x00000001044a863a
>>>>>> PyEval_EvalFrameEx
>>>>>> +
>>>>>> 9389
>>>>>> 13  org.python.python             0x00000001044a6147
>>>>>> PyEval_EvalCodeEx +
>>>>>> 1934
>>>>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>>> 121055
>>>>>> 15  org.python.python             0x00000001044a863a
>>>>>> PyEval_EvalFrameEx
>>>>>> +
>>>>>> 9389
>>>>>> 16  org.python.python             0x00000001044a6147
>>>>>> PyEval_EvalCodeEx +
>>>>>> 1934
>>>>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode +
>>>>>> 54
>>>>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 +
>>>>>> 339056
>>>>>> 19  org.python.python             0x00000001044e1d3c
>>>>>> PyRun_FileExFlags +
>>>>>> 165
>>>>>> 20  org.python.python             0x00000001044e1726
>>>>>> PyRun_SimpleFileExFlags + 410
>>>>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>>>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>>>>
>>>>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx:
>>>>>> 0x0000000054485244
>>>>>> rdx: 0x00000001053c55b0
>>>>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp:
>>>>>> 0x00007fff5b77a750
>>>>>> rsp: 0x00007fff5b77a740
>>>>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10:
>>>>>> 0x0000000000000002
>>>>>> r11: 0x0000000000000003
>>>>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14:
>>>>>> 0x0000000000000000
>>>>>> r15: 0x00007fea32eb2880
>>>>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2:
>>>>>> 0x00000000544857bc
>>>>>> Logical CPU: 1
>>>>>>
>>>>>> Binary Images:
>>>>>>       0x104484000 -        0x104484fff +python (60.3)
>>>>>> <A3CE5618-7FE0-3307-B2C1-******DE2661C936B2> /Users/USER/*/python
>>>>>>
>>>>>>
>>>>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 -
>>>>>> 2.7.2)
>>>>>> <E7F3EED1-E55D-32AF-9649-******77C814693F6A>
>>>>>> /System/Library/Frameworks/******Python.framework/Versions/2.**
>>>>>> 7/****Python
>>>>>>
>>>>>>
>>>>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>>>>> <282D8F1C-D709-339B-86E2-******CE318F0E28E6> /Users/USER/*/strop.so
>>>>>>
>>>>>>
>>>>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>>>>> <FF637943-8866-37F5-8B48-******B97002F502A3> /Users/USER/*/_struct.so
>>>>>>
>>>>>>
>>>>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>>>>> <4C0DD616-3B43-309F-B5D9-******040A9126146F> /Users/USER/*/time.so
>>>>>>
>>>>>>
>>>>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>>>>> <02413565-C29E-3C7A-8E01-******8C9C19642F15>
>>>>>>
>>>>>> /Users/USER/*/_collections.so
>>>>>>
>>>>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>>>>> <FD5EC6F3-D0F9-358F-BF08-******DC4B4F2109CB>
>>>>>> /Users/USER/*/operator.so
>>>>>>
>>>>>>
>>>>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>>>>> <36330819-32C7-3183-B213-******2E1142050B3B>
>>>>>> /Users/USER/*/itertools.so
>>>>>>
>>>>>>
>>>>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>>>>> <EE97CCA4-3D48-3CEC-B163-******37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>>>>>
>>>>>>
>>>>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>>>>> <7B91BA4D-5485-31BA-9FF9-******789C6F3D0820> /Users/USER/*/_heapq.so
>>>>>>
>>>>>>
>>>>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>>>>> <1CF18F5D-68BA-3E03-A441-******213B7EE0B553> /Users/USER/*/grp.so
>>>>>>
>>>>>>
>>>>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>>>>> <81B4F9E4-1DA8-303B-A19F-******78B9BF4B5248>
>>>>>> /Users/USER/*/binascii.so
>>>>>>
>>>>>>
>>>>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>>>>> <C625B01B-8C34-38AF-8AF3-******E888E89291D3>
>>>>>> /Users/USER/*/cStringIO.so
>>>>>>
>>>>>>
>>>>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>>>>> <B753B0B7-E615-329D-A004-******73F57F8B9F19> /Users/USER/*/_io.so
>>>>>>
>>>>>>
>>>>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>>>>> <9F2F691B-1510-335A-B9FE-******6600523D90FB> /Users/USER/*/zlib.so
>>>>>>
>>>>>>
>>>>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>>>>> <49716A3A-5F27-384D-85C1-******E9BC66F62859>
>>>>>>
>>>>>> /Users/USER/*/_ovation_api.so
>>>>>>
>>>>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 -
>>>>>> 14.7.0)
>>>>>> <83C8C2AB-E99D-39FF-80B4-******90A7DEB1DAFB>
>>>>>> /System/Library/Frameworks/******JavaVM.framework/Versions/A/***
>>>>>> ***JavaVM
>>>>>>
>>>>>>
>>>>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>>>>> <E89BD701-1C4E-3A44-8C32-******6F81D2B53D13>
>>>>>> /System/Library/******PrivateFrameworks/******
>>>>>> JavaLaunching.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/JavaLaunching
>>>>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>>>>> <B875FD61-1E55-3E46-A008-******4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>>>>
>>>>>>
>>>>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>>>>> <A40597AA-5529-3337-8C09-******D8A014EB1578> /usr/lib/dyld
>>>>>>
>>>>>>
>>>>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>>>>> <08F8731D-5961-39F1-AD00-******4590321D24A9>
>>>>>>
>>>>>> /usr/lib/system/libcompiler_**
>>>>>>
>>>>>> rt.dylib
>>>>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>>>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-******122704AEB047>
>>>>>> /usr/lib/system/libsystem_******kernel.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore
>>>>>> (4.1 -
>>>>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-******AE395D5400EC>
>>>>>> /System/Library/******PrivateFrameworks/****
>>>>>>
>>>>>> DataDetectorsCore.framework/**
>>>>>> Versions/A/DataDetectorsCore
>>>>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>>>>> OSServices
>>>>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-******8EFD0D2BFCCD>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******OSServices.framework/Versions/****
>>>>>>
>>>>>> **A/OSServices
>>>>>>
>>>>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>>>>> <CE9785E8-B535-3504-B392-******82F0064D9AF2>
>>>>>> /usr/lib/libbz2.1.0.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>>>>> <2A1551E8-A272-3DE5-B692-******955974FE1416> /usr/lib/libz.1.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory
>>>>>> (10.8
>>>>>> -
>>>>>> 151.10) <FFBBA538-00B5-334E-BA5B-******C8AD6CDCDA14>
>>>>>> /System/Library/Frameworks/******OpenDirectory.framework/**
>>>>>> Versions/A/Frameworks/******CFOpenDirectory.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/CFOpenDirectory
>>>>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>>>>> <BBE558BD-5E55-35E4-89ED-******1AA6B056D05A>
>>>>>> /usr/lib/system/libxpc.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>>>>> <20E31B90-19B9-3C2A-A9EB-******474E08F9FE05> /usr/lib/libc++.1.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>>>>> <864C409D-D56B-383E-9B44-******A435A47F2346> /usr/lib/liblangid.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>>>>> <21703D36-2DAB-3D8B-8442-******EAAB23C060D3>
>>>>>> /usr/lib/system/libunwind.**
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>>>>> <736ABE58-8DED-3289-A042-******C25AF7AE5B23>
>>>>>> /usr/lib/libCRFSuite.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>>>>> <14202FFB-C3CA-3FCC-94B0-******14611BF8692D>
>>>>>>
>>>>>> /usr/lib/system/libdnsinfo.**
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>>>>> <F497D3CE-40D9-3551-84B4-******3D5E39600737> /usr/lib/libbsm.0.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>>>>> <BAAFE0C9-BB86-3CA7-88C0-******E3CBA98DA06F> /usr/lib/system/**
>>>>>>
>>>>>>
>>>>>> libcommonCrypto.dylib
>>>>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>>>>> <44F403C1-660A-3543-AB9C-******3902E02F936F>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/AE.******framework/Versions/A/AE
>>>>>>
>>>>>>
>>>>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>>>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-******11AEFCBCEDE7>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******SearchKit.framework/Versions/***
>>>>>> ***A/SearchKit
>>>>>>
>>>>>>
>>>>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>>>>> <4AAF0573-8632-3D06-BE32-******C5675F77638D>
>>>>>>
>>>>>> /usr/lib/system/libkxld.dylib
>>>>>>
>>>>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>>>>> <73CDC482-16E3-3FC7-9BB4-******FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>>>>> <90D31928-F48D-3E37-874F-******220A51FD9E37> /usr/lib/libobjc.A.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8
>>>>>> -
>>>>>> 744.18) <A60C3C9B-3764-3291-844C-******C487ACF77C2C>
>>>>>> /System/Library/Frameworks/******CoreFoundation.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/CoreFoundation
>>>>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib
>>>>>> (220.2)
>>>>>> <6838A6FD-8626-3356-BB4F-******BB4787216207>
>>>>>> /usr/lib/system/libsystem_******sandbox.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>>>>> <CC9E3394-BE16-397F-926B-******E579B60EE429>
>>>>>> /usr/lib/system/libkeymgr.**
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>>>>> <365477AB-D641-389D-B8F4-******A1FAE9657EEE>
>>>>>> /usr/lib/libSystem.B.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>>>>> <876573D0-E907-3566-A108-******577EAD1B6182>
>>>>>>
>>>>>> /usr/lib/system/libcopyfile.**
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>>>>> <65187C6E-3FBF-3EB8-A1AA-******389445E2984D>
>>>>>>
>>>>>> /usr/lib/system/libcache.dylib
>>>>>>
>>>>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>>>>> <441776B8-9130-3893-956F-******39C85FFA644F> /usr/lib/libxslt.1.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices
>>>>>> (1.2
>>>>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-******25C551B616C1>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******DictionaryServices.framework/******
>>>>>>
>>>>>>
>>>>>> Versions/A/DictionaryServices
>>>>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>>>>> <EAA2B53E-EADE-39CF-A0EF-******FB9D4940672A>
>>>>>> /usr/lib/libstdc++.6.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>>>>> <FD6282D8-DF3F-3842-8C2E-******CF478D2B9669>
>>>>>> /usr/lib/libicucore.A.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>>>>> <92805328-CD36-34FF-9436-******571AB0485072>
>>>>>> /usr/lib/system/libunc.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>>>>> 945.16) <89BD68FD-72C8-35C1-94C6-******3A07F097C50D>
>>>>>> /System/Library/Frameworks/******Foundation.framework/**Versions/**
>>>>>>
>>>>>> **C/Foundation
>>>>>>
>>>>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices
>>>>>> (539.7
>>>>>> -
>>>>>> 539.7) <DA7C602E-5E01-31B8-925D-******B45360CA089F>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******LaunchServices.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/LaunchServices
>>>>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>>>>> <B434BE5C-25AB-3EBD-BAA7-******5304B34E3441>
>>>>>>
>>>>>> /usr/lib/system/libsystem_m.**
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>>>>> <6763BC8E-18B8-3AD9-8FFA-******B43713A7264F>
>>>>>> /usr/lib/system/libremovefile.******
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib
>>>>>> (77.10)
>>>>>> <0D99F24E-56FE-380F-B81B-******4A4C630EE587>
>>>>>> /usr/lib/system/libsystem_******network.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 -
>>>>>> 57)
>>>>>> <9DD44CB0-C644-35C3-8F57-******0B41B3EC147D>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/CoreServices
>>>>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>>>>> <CE0C29A3-C420-339B-ADAA-******52F4683233CC>
>>>>>> /usr/lib/system/libcorecrypto.******
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>>>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-******E9C1A286A72D>
>>>>>> /System/Library/Frameworks/******SystemConfiguration.**framework/****
>>>>>>
>>>>>>
>>>>>> Versions/A/SystemConfiguration
>>>>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration
>>>>>> (2.5.2 -
>>>>>> 2.5.2) <C713A35A-360E-36CE-AC0A-******25C86A3F50CA>
>>>>>> /System/Library/Frameworks/******DiskArbitration.framework/**
>>>>>>
>>>>>>
>>>>>> Versions/A/DiskArbitration
>>>>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>>>>> <4BE2E642-A14F-340A-B482-******5BD2AEFD9C24>
>>>>>> /usr/lib/system/libquarantine.******
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>>>>> <82E24B9A-7742-3DA3-9E99-******ED267D98C05E>
>>>>>> /System/Library/Frameworks/******NetFS.framework/Versions/A/****
>>>>>> **NetFS
>>>>>>
>>>>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>>>>> CarbonCore
>>>>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-******EFEA54DADF41>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******CarbonCore.framework/Versions/****
>>>>>>
>>>>>> **A/CarbonCore
>>>>>>
>>>>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>>>>> <D86169F3-9F31-377A-9AF3-******DB17142052E4> /usr/lib/libc++abi.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage
>>>>>> (1.1
>>>>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-******25A361447A17>
>>>>>> /System/Library/******PrivateFrameworks/****
>>>>>> GenerationalStorage.framework/******
>>>>>>
>>>>>>
>>>>>> Versions/A/GenerationalStorage
>>>>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>>>>> <ADE9CB98-D77D-300C-A32A-******556B7440769F>
>>>>>> /usr/lib/libsqlite3.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>>>>> <F59367C9-C110-382B-A695-******9035A6DD387E>
>>>>>>
>>>>>> /usr/lib/system/libdyld.dylib
>>>>>>
>>>>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>>>>> <2F71CAF8-6524-329E-AC56-******C506658B4C0C>
>>>>>> /usr/lib/system/liblaunch.**
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>>>>> 55179.11) <73958084-5BBC-3597-A751-******7370B0C247E5>
>>>>>> /System/Library/Frameworks/******Security.framework/Versions/**A/**
>>>>>>
>>>>>> **Security
>>>>>>
>>>>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>>>>> 707.5) <4140B1F6-7D73-33C7-B3F2-******4DB349C31AE9>
>>>>>> /System/Library/Frameworks/******CoreServices.framework/**
>>>>>> Versions/A/Frameworks/******Metadata.framework/Versions/A/**
>>>>>> ****Metadata
>>>>>>
>>>>>>
>>>>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>>>>> <4C9EB006-FE1F-3F8F-8074-******DFD94CF2CE7B>
>>>>>>
>>>>>> /usr/lib/system/libsystem_c.**
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>>>>>> 596.3.3) <3739DC8D-8610-3740-80EC-******43E130779CB8>
>>>>>> /System/Library/Frameworks/******CFNetwork.framework/Versions/*****
>>>>>>
>>>>>> *A/CFNetwork
>>>>>>
>>>>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>>>>> <D26996BF-FC57-39EB-8829-******F63585561E09>
>>>>>>
>>>>>> /usr/lib/system/libdispatch.**
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib
>>>>>> (148.3)
>>>>>> <F8681222-0969-3B10-8BCE-******C55A4B9C520C>
>>>>>> /usr/lib/libOpenScriptingUtil.******
>>>>>>
>>>>>>
>>>>>> dylib
>>>>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>>>>> <47B09CB2-C636-3024-8B55-******6040F7829B4C> /usr/lib/libxml2.2.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>>>>>> <616FC901-151E-38BF-B2C4-******24A351C5FAAD>
>>>>>> /usr/lib/system/libsystem_**
>>>>>>
>>>>>>
>>>>>> dnssd.dylib
>>>>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>>>>> <370ED355-E516-311E-BAFD-******D80633A84BE1> /usr/lib/libxar.1.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>>>>> <4FFCA242-7F04-365F-87A6-******D4EFB89503C1>
>>>>>> /usr/lib/system/libsystem_**
>>>>>>
>>>>>>
>>>>>> info.dylib
>>>>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>>>>> <C8F45864-5B58-3237-87E1-******2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit
>>>>>> (2.0.1 -
>>>>>> 755.22.5) <1547DA6F-9793-30A2-8E92-******7368DE84D46C>
>>>>>> /System/Library/Frameworks/******IOKit.framework/Versions/A/****
>>>>>> **IOKit
>>>>>>
>>>>>>
>>>>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>>>>> <BF332AD9-E89F-387E-92A4-******6E1AB74BD4D9>
>>>>>>
>>>>>> /usr/lib/system/libmacho.dylib
>>>>>>
>>>>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>>>>> <F5BC7D7D-AF28-3C83-A674-******DADA48FF7810>
>>>>>> /System/Library/******PrivateFrameworks/NetAuth.**
>>>>>>
>>>>>>
>>>>>> framework/Versions/A/NetAuth
>>>>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>>>>> <F2F3B753-FC73-3543-8BBE-******859FDBB4D6A6>
>>>>>> /System/Library/******PrivateFrameworks/TCC.******
>>>>>> framework/Versions/A/TCC
>>>>>>
>>>>>>
>>>>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>>>>> <D92DCBC3-541C-37BD-AADE-******ACC75A0C59C8>
>>>>>> /usr/lib/system/libsystem_******blocks.dylib
>>>>>>
>>>>>>
>>>>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>>>>> <C49275CC-835A-3207-AFBA-******8C01374927B6>
>>>>>> /usr/lib/system/libsystem_******notify.dylib
>>>>>>
>>>>>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>>>>>> dylib
>>>>>> (8) <8548E0DC-0D2F-30B6-B045-******FE8A038E76D8>
>>>>>> /usr/lib/******libDiagnosticMessagesClient.******dylib
>>>>>>
>>>>>>
>>>>>>
>>>>>> External Modification Summary:
>>>>>>  Calls made by other processes targeting this process:
>>>>>>    task_for_pid: 0
>>>>>>    thread_create: 0
>>>>>>    thread_set_state: 0
>>>>>>  Calls made by this process:
>>>>>>    task_for_pid: 0
>>>>>>    thread_create: 0
>>>>>>    thread_set_state: 0
>>>>>>  Calls made by all processes on this machine:
>>>>>>    task_for_pid: 10466
>>>>>>    thread_create: 1
>>>>>>    thread_set_state: 0
>>>>>>
>>>>>> VM Region Summary:
>>>>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>>>>> swapped_out_or_unallocated=56.******3M(62%)
>>>>>>
>>>>>>
>>>>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>>>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>>>>
>>>>>> REGION TYPE                      VIRTUAL
>>>>>> ===========                      =======
>>>>>> MALLOC                             17.3M
>>>>>> MALLOC guard page                    32K
>>>>>> STACK GUARD                        56.0M
>>>>>> Stack                              8192K
>>>>>> VM_ALLOCATE                           4K
>>>>>> __DATA                             4188K
>>>>>> __LINKEDIT                         55.4M
>>>>>> __TEXT                             35.5M
>>>>>> __UNICODE                           544K
>>>>>> shared memory                        12K
>>>>>> ===========                      =======
>>>>>> TOTAL                             176.8M
>>>>>>
>>>>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel
>>>>>> Core 2
>>>>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>>>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>>>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>>> 0x31364A53463235363634485A2D31******47314631
>>>>>>
>>>>>>
>>>>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>>> 0x31364A53463235363634485A2D31******47314631
>>>>>> AirPort: spairport_wireless_card_type_******airport_extreme (0x14E4,
>>>>>>
>>>>>> 0x8D),
>>>>>>
>>>>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>>>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming
>>>>>> serial
>>>>>> ports
>>>>>> Network Service: AirPort, AirPort, en1
>>>>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>>>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>>>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>>>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>>>>> 0x26500000 / 2
>>>>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id,
>>>>>> 0x0236,
>>>>>> 0x04600000 / 3
>>>>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>>>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
>>>>>> / 2
>>>>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>>>>> 0x06110000 / 3
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Andi Vajda <va...@apache.org>.
On Wed, 29 May 2013, Barry Wark wrote:

> On Wed, May 29, 2013 at 1:53 PM, Andi Vajda <va...@apache.org> wrote:
>
>>
>> On Tue, 28 May 2013, Barry Wark wrote:
>>
>>  On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>>>
>>>
>>>> On Tue, 28 May 2013, Barry Wark wrote:
>>>>
>>>>  Hi all,
>>>>
>>>>>
>>>>> This is an edge case, I realize, but thought I'd throw it out there in
>>>>> case
>>>>> anyone has come across a solution.
>>>>>
>>>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>>>>> jcc-compiled module (which the project uses). PyCharm's indexer crashes
>>>>>
>>>>>
>>>> Which project ? yours or PyCharm-the-project ?
>>>> What version of JCC was this module compiled with ?
>>>>
>>>
>>>
>>> The project is mine, a python wrapper around Physion's Ovation API. We're
>>> using JCC 2.16. PyCharm is IDEA's Python IDE (
>>> http://www.jetbrains.com/**pycharm/ <http://www.jetbrains.com/pycharm/>).
>>>
>>>
>>>
>>>>
>>>>  when indexing this module with the crash report below. When running the
>>>>
>>>>> project's unit tests in PyCharm, this jcc-compiled module is imported
>>>>> (and
>>>>> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
>>>>> some Java-Python bridging as well
>>>>>
>>>>>
>>>> If PyCharm is a Java app, what kind of python bridging is it doing ? And
>>>> how does that involve JCC ? I'm assuming that if PyCharm is a Java
>>>> module,
>>>> its indexing would be implemented in Java too ?
>>>>
>>>
>>>
>>> I don't really know how PyCharm handles Java/Python bridging. PyCharm is
>>> built on IDEA's (Java) IDE framework, and it works with Python code. It's
>>> purely speculation on my part that PyCharm's Java/Python bridging (if any)
>>> is involved here.
>>>
>>>
>>>
>>>>
>>>>  , so it's possible there's a conflict that
>>>>
>>>>> is the root of this crash. If so, I'll gladly file this as a PyCharm
>>>>> issue,
>>>>> but though I'd run this by the JCC gurus in case they recognize what's
>>>>> going on. I've never seen the PyCharm indexer crash before on modules
>>>>> that
>>>>> don't use jcc.
>>>>>
>>>>>
>>>> What version(s) of JCC are involved here ?
>>>>
>>>
>>>
>>> 2.16 on OS X 10.8, Python 2.7.
>>>
>>
>> So, to paraphrase to make sure I understand this correctly:
>>   - PyCharm is a Java program that can spawn Python processes
>>
>
> Yes. In particular, it spawns a python process to "index" a python module
> for code completion
>
>
>>   - Your python project uses JCC and runs fine by itself
>>
>
> Yes
>
>
>>   - Your python project crashes when run under PyCharm
>>
>
> Almost. My project *runs* fine when spawned under PyCharm, but the PyCharm
> "indexer" crashes when attempting to index my module built with jcc.

That is not what your stacktrace shows. It's ends up somewhere in your 
jcc-built extension:

   Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
          0   _ovation_api.so

Andi..

>> One possibility here is that there is a clash of Java VMs. There can only
>> be one Java VM in a given process. JCC can be embedding a Java VM (the
>> default case) and it controls and initializes it or JCC can be embedded
>> inside a existing Java VM (when run inside Tomcat, for example). This
>> latter feature is not well documented but works fine (see the PythonVM.java
>> file in the JCC sources for more information).
>>
>
> Interesting. The process that crashes is a python child process spawned by
> PyCharm. I don't know whether there is a JavaVM running in this child
> process. I looked at the source of PythonVM.java and I don't see any
> comments/docs about the various embedding options. Can you give me a bit
> more information?
>
>
>
>>
>> I don't know how PyCharm controls Python programs, does it embed a Python
>> VM ? does it spawn a sub-process ? There could be an issue here.
>>
>
> It's not transparent to me how PyCharm handles python VMs either. From the
> crash log, it appears that in this particular case it is spawning a child
> process.
>
> Thank you,
> Barry
>
>
>>
>> Andi..
>>
>>
>>> Thanks,
>>> Barry
>>>
>>>
>>>
>>>>
>>>> Andi..
>>>>
>>>>
>>>>
>>>>  Thanks,
>>>>> Barry
>>>>>
>>>>>
>>>>> The Crash Log:
>>>>>
>>>>> Process:         python [85552]
>>>>> Path:            /Users/USER/*/python
>>>>> Identifier:      python
>>>>> Version:         60.3
>>>>> Code Type:       X86-64 (Native)
>>>>> Parent Process:  pycharm [85481]
>>>>> User ID:         501
>>>>>
>>>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>>>> Report Version:  10
>>>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-****1EE79118E02F
>>>>>
>>>>>
>>>>> Interval Since Last Report:          36408 sec
>>>>> Crashes Since Last Report:           3
>>>>> Per-App Crashes Since Last Report:   3
>>>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>>>>
>>>>> 2E05A95E2522
>>>>>
>>>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>>>
>>>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>>>
>>>>> VM Regions Near 0x544857bc:
>>>>> -->
>>>>>    __TEXT                 0000000104484000-****0000000104485000 [
>>>>>  4K]
>>>>>
>>>>> r-x/rwx SM=COW  /Users/USER/*
>>>>>
>>>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>>>> char>::JArray(long) + 37
>>>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>>>> initializeClass<unsigned char>(bool) + 42
>>>>> 2   _ovation_api.so               0x00000001050a290e
>>>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>>>> 3   _ovation_api.so               0x00000001050a6dd9
>>>>> t_descriptor___get__(t_****descriptor*, _object*, _object*) + 66
>>>>>
>>>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
>>>>> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx
>>>>> +
>>>>> 9244
>>>>> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>> 121055
>>>>> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 9   org.python.python             0x00000001044ac869 0x10448f000 +
>>>>> 120937
>>>>> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 11  org.python.python             0x00000001044ac869 0x10448f000 +
>>>>> 120937
>>>>> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>> 121055
>>>>> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode +
>>>>> 54
>>>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 +
>>>>> 339056
>>>>> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags +
>>>>> 165
>>>>> 20  org.python.python             0x00000001044e1726
>>>>> PyRun_SimpleFileExFlags + 410
>>>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>>>
>>>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx:
>>>>> 0x0000000054485244
>>>>> rdx: 0x00000001053c55b0
>>>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp:
>>>>> 0x00007fff5b77a750
>>>>> rsp: 0x00007fff5b77a740
>>>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10:
>>>>> 0x0000000000000002
>>>>> r11: 0x0000000000000003
>>>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14:
>>>>> 0x0000000000000000
>>>>> r15: 0x00007fea32eb2880
>>>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2:
>>>>> 0x00000000544857bc
>>>>> Logical CPU: 1
>>>>>
>>>>> Binary Images:
>>>>>       0x104484000 -        0x104484fff +python (60.3)
>>>>> <A3CE5618-7FE0-3307-B2C1-****DE2661C936B2> /Users/USER/*/python
>>>>>
>>>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 -
>>>>> 2.7.2)
>>>>> <E7F3EED1-E55D-32AF-9649-****77C814693F6A>
>>>>> /System/Library/Frameworks/****Python.framework/Versions/2.7/****Python
>>>>>
>>>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>>>> <282D8F1C-D709-339B-86E2-****CE318F0E28E6> /Users/USER/*/strop.so
>>>>>
>>>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>>>> <FF637943-8866-37F5-8B48-****B97002F502A3> /Users/USER/*/_struct.so
>>>>>
>>>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>>>> <4C0DD616-3B43-309F-B5D9-****040A9126146F> /Users/USER/*/time.so
>>>>>
>>>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>>>> <02413565-C29E-3C7A-8E01-****8C9C19642F15>
>>>>> /Users/USER/*/_collections.so
>>>>>
>>>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>>>> <FD5EC6F3-D0F9-358F-BF08-****DC4B4F2109CB> /Users/USER/*/operator.so
>>>>>
>>>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>>>> <36330819-32C7-3183-B213-****2E1142050B3B> /Users/USER/*/itertools.so
>>>>>
>>>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>>>> <EE97CCA4-3D48-3CEC-B163-****37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>>>>
>>>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>>>> <7B91BA4D-5485-31BA-9FF9-****789C6F3D0820> /Users/USER/*/_heapq.so
>>>>>
>>>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>>>> <1CF18F5D-68BA-3E03-A441-****213B7EE0B553> /Users/USER/*/grp.so
>>>>>
>>>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>>>> <81B4F9E4-1DA8-303B-A19F-****78B9BF4B5248> /Users/USER/*/binascii.so
>>>>>
>>>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>>>> <C625B01B-8C34-38AF-8AF3-****E888E89291D3> /Users/USER/*/cStringIO.so
>>>>>
>>>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>>>> <B753B0B7-E615-329D-A004-****73F57F8B9F19> /Users/USER/*/_io.so
>>>>>
>>>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>>>> <9F2F691B-1510-335A-B9FE-****6600523D90FB> /Users/USER/*/zlib.so
>>>>>
>>>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>>>> <49716A3A-5F27-384D-85C1-****E9BC66F62859>
>>>>> /Users/USER/*/_ovation_api.so
>>>>>
>>>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 -
>>>>> 14.7.0)
>>>>> <83C8C2AB-E99D-39FF-80B4-****90A7DEB1DAFB>
>>>>> /System/Library/Frameworks/****JavaVM.framework/Versions/A/****JavaVM
>>>>>
>>>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>>>> <E89BD701-1C4E-3A44-8C32-****6F81D2B53D13>
>>>>> /System/Library/****PrivateFrameworks/****JavaLaunching.framework/**
>>>>>
>>>>> Versions/A/JavaLaunching
>>>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>>>> <B875FD61-1E55-3E46-A008-****4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>>>
>>>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>>>> <A40597AA-5529-3337-8C09-****D8A014EB1578> /usr/lib/dyld
>>>>>
>>>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>>>> <08F8731D-5961-39F1-AD00-****4590321D24A9>
>>>>> /usr/lib/system/libcompiler_**
>>>>>
>>>>> rt.dylib
>>>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-****122704AEB047>
>>>>> /usr/lib/system/libsystem_****kernel.dylib
>>>>>
>>>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore
>>>>> (4.1 -
>>>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-****AE395D5400EC>
>>>>> /System/Library/****PrivateFrameworks/****
>>>>> DataDetectorsCore.framework/**
>>>>> Versions/A/DataDetectorsCore
>>>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>>>> OSServices
>>>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-****8EFD0D2BFCCD>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****OSServices.framework/Versions/**
>>>>> **A/OSServices
>>>>>
>>>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>>>> <CE9785E8-B535-3504-B392-****82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>>>>>
>>>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>>>> <2A1551E8-A272-3DE5-B692-****955974FE1416> /usr/lib/libz.1.dylib
>>>>>
>>>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8
>>>>> -
>>>>> 151.10) <FFBBA538-00B5-334E-BA5B-****C8AD6CDCDA14>
>>>>> /System/Library/Frameworks/****OpenDirectory.framework/**
>>>>> Versions/A/Frameworks/****CFOpenDirectory.framework/**
>>>>>
>>>>> Versions/A/CFOpenDirectory
>>>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>>>> <BBE558BD-5E55-35E4-89ED-****1AA6B056D05A> /usr/lib/system/libxpc.dylib
>>>>>
>>>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>>>> <20E31B90-19B9-3C2A-A9EB-****474E08F9FE05> /usr/lib/libc++.1.dylib
>>>>>
>>>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>>>> <864C409D-D56B-383E-9B44-****A435A47F2346> /usr/lib/liblangid.dylib
>>>>>
>>>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>>>> <21703D36-2DAB-3D8B-8442-****EAAB23C060D3> /usr/lib/system/libunwind.**
>>>>>
>>>>> dylib
>>>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>>>> <736ABE58-8DED-3289-A042-****C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>>>>>
>>>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>>>> <14202FFB-C3CA-3FCC-94B0-****14611BF8692D>
>>>>> /usr/lib/system/libdnsinfo.**
>>>>>
>>>>> dylib
>>>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>>>> <F497D3CE-40D9-3551-84B4-****3D5E39600737> /usr/lib/libbsm.0.dylib
>>>>>
>>>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>>>> <BAAFE0C9-BB86-3CA7-88C0-****E3CBA98DA06F> /usr/lib/system/**
>>>>>
>>>>> libcommonCrypto.dylib
>>>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>>>> <44F403C1-660A-3543-AB9C-****3902E02F936F>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/AE.****framework/Versions/A/AE
>>>>>
>>>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-****11AEFCBCEDE7>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****SearchKit.framework/Versions/****A/SearchKit
>>>>>
>>>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>>>> <4AAF0573-8632-3D06-BE32-****C5675F77638D>
>>>>> /usr/lib/system/libkxld.dylib
>>>>>
>>>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>>>> <73CDC482-16E3-3FC7-9BB4-****FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>>>
>>>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>>>> <90D31928-F48D-3E37-874F-****220A51FD9E37> /usr/lib/libobjc.A.dylib
>>>>>
>>>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
>>>>> 744.18) <A60C3C9B-3764-3291-844C-****C487ACF77C2C>
>>>>> /System/Library/Frameworks/****CoreFoundation.framework/**
>>>>>
>>>>> Versions/A/CoreFoundation
>>>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
>>>>> <6838A6FD-8626-3356-BB4F-****BB4787216207>
>>>>> /usr/lib/system/libsystem_****sandbox.dylib
>>>>>
>>>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>>>> <CC9E3394-BE16-397F-926B-****E579B60EE429> /usr/lib/system/libkeymgr.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>>>> <365477AB-D641-389D-B8F4-****A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>>>>>
>>>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>>>> <876573D0-E907-3566-A108-****577EAD1B6182>
>>>>> /usr/lib/system/libcopyfile.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>>>> <65187C6E-3FBF-3EB8-A1AA-****389445E2984D>
>>>>> /usr/lib/system/libcache.dylib
>>>>>
>>>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>>>> <441776B8-9130-3893-956F-****39C85FFA644F> /usr/lib/libxslt.1.dylib
>>>>>
>>>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices
>>>>> (1.2
>>>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-****25C551B616C1>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****DictionaryServices.framework/****
>>>>>
>>>>> Versions/A/DictionaryServices
>>>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>>>> <EAA2B53E-EADE-39CF-A0EF-****FB9D4940672A> /usr/lib/libstdc++.6.dylib
>>>>>
>>>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>>>> <FD6282D8-DF3F-3842-8C2E-****CF478D2B9669> /usr/lib/libicucore.A.dylib
>>>>>
>>>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>>>> <92805328-CD36-34FF-9436-****571AB0485072> /usr/lib/system/libunc.dylib
>>>>>
>>>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>>>> 945.16) <89BD68FD-72C8-35C1-94C6-****3A07F097C50D>
>>>>> /System/Library/Frameworks/****Foundation.framework/Versions/**
>>>>> **C/Foundation
>>>>>
>>>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7
>>>>> -
>>>>> 539.7) <DA7C602E-5E01-31B8-925D-****B45360CA089F>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****LaunchServices.framework/**
>>>>>
>>>>> Versions/A/LaunchServices
>>>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>>>> <B434BE5C-25AB-3EBD-BAA7-****5304B34E3441>
>>>>> /usr/lib/system/libsystem_m.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>>>> <6763BC8E-18B8-3AD9-8FFA-****B43713A7264F>
>>>>> /usr/lib/system/libremovefile.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
>>>>> <0D99F24E-56FE-380F-B81B-****4A4C630EE587>
>>>>> /usr/lib/system/libsystem_****network.dylib
>>>>>
>>>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
>>>>> <9DD44CB0-C644-35C3-8F57-****0B41B3EC147D>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>>
>>>>> Versions/A/CoreServices
>>>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>>>> <CE0C29A3-C420-339B-ADAA-****52F4683233CC>
>>>>> /usr/lib/system/libcorecrypto.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-****E9C1A286A72D>
>>>>> /System/Library/Frameworks/****SystemConfiguration.framework/****
>>>>>
>>>>> Versions/A/SystemConfiguration
>>>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration
>>>>> (2.5.2 -
>>>>> 2.5.2) <C713A35A-360E-36CE-AC0A-****25C86A3F50CA>
>>>>> /System/Library/Frameworks/****DiskArbitration.framework/**
>>>>>
>>>>> Versions/A/DiskArbitration
>>>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>>>> <4BE2E642-A14F-340A-B482-****5BD2AEFD9C24>
>>>>> /usr/lib/system/libquarantine.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>>>> <82E24B9A-7742-3DA3-9E99-****ED267D98C05E>
>>>>> /System/Library/Frameworks/****NetFS.framework/Versions/A/****NetFS
>>>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>>>> CarbonCore
>>>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-****EFEA54DADF41>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****CarbonCore.framework/Versions/**
>>>>> **A/CarbonCore
>>>>>
>>>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>>>> <D86169F3-9F31-377A-9AF3-****DB17142052E4> /usr/lib/libc++abi.dylib
>>>>>
>>>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage
>>>>> (1.1
>>>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-****25A361447A17>
>>>>> /System/Library/****PrivateFrameworks/****
>>>>> GenerationalStorage.framework/****
>>>>>
>>>>> Versions/A/GenerationalStorage
>>>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>>>> <ADE9CB98-D77D-300C-A32A-****556B7440769F> /usr/lib/libsqlite3.dylib
>>>>>
>>>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>>>> <F59367C9-C110-382B-A695-****9035A6DD387E>
>>>>> /usr/lib/system/libdyld.dylib
>>>>>
>>>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>>>> <2F71CAF8-6524-329E-AC56-****C506658B4C0C> /usr/lib/system/liblaunch.**
>>>>>
>>>>> dylib
>>>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>>>> 55179.11) <73958084-5BBC-3597-A751-****7370B0C247E5>
>>>>> /System/Library/Frameworks/****Security.framework/Versions/A/**
>>>>> **Security
>>>>>
>>>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>>>> 707.5) <4140B1F6-7D73-33C7-B3F2-****4DB349C31AE9>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****Metadata.framework/Versions/A/****Metadata
>>>>>
>>>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>>>> <4C9EB006-FE1F-3F8F-8074-****DFD94CF2CE7B>
>>>>> /usr/lib/system/libsystem_c.**
>>>>>
>>>>> dylib
>>>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>>>>> 596.3.3) <3739DC8D-8610-3740-80EC-****43E130779CB8>
>>>>> /System/Library/Frameworks/****CFNetwork.framework/Versions/***
>>>>> *A/CFNetwork
>>>>>
>>>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>>>> <D26996BF-FC57-39EB-8829-****F63585561E09>
>>>>> /usr/lib/system/libdispatch.**
>>>>>
>>>>> dylib
>>>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib
>>>>> (148.3)
>>>>> <F8681222-0969-3B10-8BCE-****C55A4B9C520C>
>>>>> /usr/lib/libOpenScriptingUtil.****
>>>>>
>>>>> dylib
>>>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>>>> <47B09CB2-C636-3024-8B55-****6040F7829B4C> /usr/lib/libxml2.2.dylib
>>>>>
>>>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>>>>> <616FC901-151E-38BF-B2C4-****24A351C5FAAD> /usr/lib/system/libsystem_**
>>>>>
>>>>> dnssd.dylib
>>>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>>>> <370ED355-E516-311E-BAFD-****D80633A84BE1> /usr/lib/libxar.1.dylib
>>>>>
>>>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>>>> <4FFCA242-7F04-365F-87A6-****D4EFB89503C1> /usr/lib/system/libsystem_**
>>>>>
>>>>> info.dylib
>>>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>>>> <C8F45864-5B58-3237-87E1-****2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>>>
>>>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit
>>>>> (2.0.1 -
>>>>> 755.22.5) <1547DA6F-9793-30A2-8E92-****7368DE84D46C>
>>>>> /System/Library/Frameworks/****IOKit.framework/Versions/A/****IOKit
>>>>>
>>>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>>>> <BF332AD9-E89F-387E-92A4-****6E1AB74BD4D9>
>>>>> /usr/lib/system/libmacho.dylib
>>>>>
>>>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>>>> <F5BC7D7D-AF28-3C83-A674-****DADA48FF7810>
>>>>> /System/Library/****PrivateFrameworks/NetAuth.**
>>>>>
>>>>> framework/Versions/A/NetAuth
>>>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>>>> <F2F3B753-FC73-3543-8BBE-****859FDBB4D6A6>
>>>>> /System/Library/****PrivateFrameworks/TCC.****framework/Versions/A/TCC
>>>>>
>>>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>>>> <D92DCBC3-541C-37BD-AADE-****ACC75A0C59C8>
>>>>> /usr/lib/system/libsystem_****blocks.dylib
>>>>>
>>>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>>>> <C49275CC-835A-3207-AFBA-****8C01374927B6>
>>>>> /usr/lib/system/libsystem_****notify.dylib
>>>>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>>>>> dylib
>>>>> (8) <8548E0DC-0D2F-30B6-B045-****FE8A038E76D8>
>>>>> /usr/lib/****libDiagnosticMessagesClient.****dylib
>>>>>
>>>>>
>>>>> External Modification Summary:
>>>>>  Calls made by other processes targeting this process:
>>>>>    task_for_pid: 0
>>>>>    thread_create: 0
>>>>>    thread_set_state: 0
>>>>>  Calls made by this process:
>>>>>    task_for_pid: 0
>>>>>    thread_create: 0
>>>>>    thread_set_state: 0
>>>>>  Calls made by all processes on this machine:
>>>>>    task_for_pid: 10466
>>>>>    thread_create: 1
>>>>>    thread_set_state: 0
>>>>>
>>>>> VM Region Summary:
>>>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>>>> swapped_out_or_unallocated=56.****3M(62%)
>>>>>
>>>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>>>
>>>>> REGION TYPE                      VIRTUAL
>>>>> ===========                      =======
>>>>> MALLOC                             17.3M
>>>>> MALLOC guard page                    32K
>>>>> STACK GUARD                        56.0M
>>>>> Stack                              8192K
>>>>> VM_ALLOCATE                           4K
>>>>> __DATA                             4188K
>>>>> __LINKEDIT                         55.4M
>>>>> __TEXT                             35.5M
>>>>> __UNICODE                           544K
>>>>> shared memory                        12K
>>>>> ===========                      =======
>>>>> TOTAL                             176.8M
>>>>>
>>>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
>>>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>> 0x31364A53463235363634485A2D31****47314631
>>>>>
>>>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>> 0x31364A53463235363634485A2D31****47314631
>>>>> AirPort: spairport_wireless_card_type_****airport_extreme (0x14E4,
>>>>> 0x8D),
>>>>>
>>>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming
>>>>> serial
>>>>> ports
>>>>> Network Service: AirPort, AirPort, en1
>>>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>>>> 0x26500000 / 2
>>>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
>>>>> 0x04600000 / 3
>>>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
>>>>> / 2
>>>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>>>> 0x06110000 / 3
>>>>>
>>>>>
>>>>>
>>>
>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Andi Vajda <va...@apache.org>.
On Wed, 29 May 2013, Barry Wark wrote:

> On Wed, May 29, 2013 at 1:53 PM, Andi Vajda <va...@apache.org> wrote:
>
>>
>> On Tue, 28 May 2013, Barry Wark wrote:
>>
>>  On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>>>
>>>
>>>> On Tue, 28 May 2013, Barry Wark wrote:
>>>>
>>>>  Hi all,
>>>>
>>>>>
>>>>> This is an edge case, I realize, but thought I'd throw it out there in
>>>>> case
>>>>> anyone has come across a solution.
>>>>>
>>>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>>>>> jcc-compiled module (which the project uses). PyCharm's indexer crashes
>>>>>
>>>>>
>>>> Which project ? yours or PyCharm-the-project ?
>>>> What version of JCC was this module compiled with ?
>>>>
>>>
>>>
>>> The project is mine, a python wrapper around Physion's Ovation API. We're
>>> using JCC 2.16. PyCharm is IDEA's Python IDE (
>>> http://www.jetbrains.com/**pycharm/ <http://www.jetbrains.com/pycharm/>).
>>>
>>>
>>>
>>>>
>>>>  when indexing this module with the crash report below. When running the
>>>>
>>>>> project's unit tests in PyCharm, this jcc-compiled module is imported
>>>>> (and
>>>>> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
>>>>> some Java-Python bridging as well
>>>>>
>>>>>
>>>> If PyCharm is a Java app, what kind of python bridging is it doing ? And
>>>> how does that involve JCC ? I'm assuming that if PyCharm is a Java
>>>> module,
>>>> its indexing would be implemented in Java too ?
>>>>
>>>
>>>
>>> I don't really know how PyCharm handles Java/Python bridging. PyCharm is
>>> built on IDEA's (Java) IDE framework, and it works with Python code. It's
>>> purely speculation on my part that PyCharm's Java/Python bridging (if any)
>>> is involved here.
>>>
>>>
>>>
>>>>
>>>>  , so it's possible there's a conflict that
>>>>
>>>>> is the root of this crash. If so, I'll gladly file this as a PyCharm
>>>>> issue,
>>>>> but though I'd run this by the JCC gurus in case they recognize what's
>>>>> going on. I've never seen the PyCharm indexer crash before on modules
>>>>> that
>>>>> don't use jcc.
>>>>>
>>>>>
>>>> What version(s) of JCC are involved here ?
>>>>
>>>
>>>
>>> 2.16 on OS X 10.8, Python 2.7.
>>>
>>
>> So, to paraphrase to make sure I understand this correctly:
>>   - PyCharm is a Java program that can spawn Python processes
>>
>
> Yes. In particular, it spawns a python process to "index" a python module
> for code completion
>
>
>>   - Your python project uses JCC and runs fine by itself
>>
>
> Yes
>
>
>>   - Your python project crashes when run under PyCharm
>>
>
> Almost. My project *runs* fine when spawned under PyCharm, but the PyCharm
> "indexer" crashes when attempting to index my module built with jcc.
>
>
>>
>> One possibility here is that there is a clash of Java VMs. There can only
>> be one Java VM in a given process. JCC can be embedding a Java VM (the
>> default case) and it controls and initializes it or JCC can be embedded
>> inside a existing Java VM (when run inside Tomcat, for example). This
>> latter feature is not well documented but works fine (see the PythonVM.java
>> file in the JCC sources for more information).
>>
>
> Interesting. The process that crashes is a python child process spawned by
> PyCharm. I don't know whether there is a JavaVM running in this child
> process. I looked at the source of PythonVM.java and I don't see any
> comments/docs about the various embedding options. Can you give me a bit
> more information?

See "Embedding a Python VM in a Java VM" at:
   http://lucene.apache.org/pylucene/jcc/features.html

Andi..

>
>
>
>>
>> I don't know how PyCharm controls Python programs, does it embed a Python
>> VM ? does it spawn a sub-process ? There could be an issue here.
>>
>
> It's not transparent to me how PyCharm handles python VMs either. From the
> crash log, it appears that in this particular case it is spawning a child
> process.
>
> Thank you,
> Barry
>
>
>>
>> Andi..
>>
>>
>>> Thanks,
>>> Barry
>>>
>>>
>>>
>>>>
>>>> Andi..
>>>>
>>>>
>>>>
>>>>  Thanks,
>>>>> Barry
>>>>>
>>>>>
>>>>> The Crash Log:
>>>>>
>>>>> Process:         python [85552]
>>>>> Path:            /Users/USER/*/python
>>>>> Identifier:      python
>>>>> Version:         60.3
>>>>> Code Type:       X86-64 (Native)
>>>>> Parent Process:  pycharm [85481]
>>>>> User ID:         501
>>>>>
>>>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>>>> Report Version:  10
>>>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-****1EE79118E02F
>>>>>
>>>>>
>>>>> Interval Since Last Report:          36408 sec
>>>>> Crashes Since Last Report:           3
>>>>> Per-App Crashes Since Last Report:   3
>>>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>>>>
>>>>> 2E05A95E2522
>>>>>
>>>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>>>
>>>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>>>
>>>>> VM Regions Near 0x544857bc:
>>>>> -->
>>>>>    __TEXT                 0000000104484000-****0000000104485000 [
>>>>>  4K]
>>>>>
>>>>> r-x/rwx SM=COW  /Users/USER/*
>>>>>
>>>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>>>> char>::JArray(long) + 37
>>>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>>>> initializeClass<unsigned char>(bool) + 42
>>>>> 2   _ovation_api.so               0x00000001050a290e
>>>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>>>> 3   _ovation_api.so               0x00000001050a6dd9
>>>>> t_descriptor___get__(t_****descriptor*, _object*, _object*) + 66
>>>>>
>>>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
>>>>> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx
>>>>> +
>>>>> 9244
>>>>> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>> 121055
>>>>> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 9   org.python.python             0x00000001044ac869 0x10448f000 +
>>>>> 120937
>>>>> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 11  org.python.python             0x00000001044ac869 0x10448f000 +
>>>>> 120937
>>>>> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 +
>>>>> 121055
>>>>> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>>> +
>>>>> 9389
>>>>> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>>> 1934
>>>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode +
>>>>> 54
>>>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 +
>>>>> 339056
>>>>> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags +
>>>>> 165
>>>>> 20  org.python.python             0x00000001044e1726
>>>>> PyRun_SimpleFileExFlags + 410
>>>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>>>
>>>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx:
>>>>> 0x0000000054485244
>>>>> rdx: 0x00000001053c55b0
>>>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp:
>>>>> 0x00007fff5b77a750
>>>>> rsp: 0x00007fff5b77a740
>>>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10:
>>>>> 0x0000000000000002
>>>>> r11: 0x0000000000000003
>>>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14:
>>>>> 0x0000000000000000
>>>>> r15: 0x00007fea32eb2880
>>>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2:
>>>>> 0x00000000544857bc
>>>>> Logical CPU: 1
>>>>>
>>>>> Binary Images:
>>>>>       0x104484000 -        0x104484fff +python (60.3)
>>>>> <A3CE5618-7FE0-3307-B2C1-****DE2661C936B2> /Users/USER/*/python
>>>>>
>>>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 -
>>>>> 2.7.2)
>>>>> <E7F3EED1-E55D-32AF-9649-****77C814693F6A>
>>>>> /System/Library/Frameworks/****Python.framework/Versions/2.7/****Python
>>>>>
>>>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>>>> <282D8F1C-D709-339B-86E2-****CE318F0E28E6> /Users/USER/*/strop.so
>>>>>
>>>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>>>> <FF637943-8866-37F5-8B48-****B97002F502A3> /Users/USER/*/_struct.so
>>>>>
>>>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>>>> <4C0DD616-3B43-309F-B5D9-****040A9126146F> /Users/USER/*/time.so
>>>>>
>>>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>>>> <02413565-C29E-3C7A-8E01-****8C9C19642F15>
>>>>> /Users/USER/*/_collections.so
>>>>>
>>>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>>>> <FD5EC6F3-D0F9-358F-BF08-****DC4B4F2109CB> /Users/USER/*/operator.so
>>>>>
>>>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>>>> <36330819-32C7-3183-B213-****2E1142050B3B> /Users/USER/*/itertools.so
>>>>>
>>>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>>>> <EE97CCA4-3D48-3CEC-B163-****37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>>>>
>>>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>>>> <7B91BA4D-5485-31BA-9FF9-****789C6F3D0820> /Users/USER/*/_heapq.so
>>>>>
>>>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>>>> <1CF18F5D-68BA-3E03-A441-****213B7EE0B553> /Users/USER/*/grp.so
>>>>>
>>>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>>>> <81B4F9E4-1DA8-303B-A19F-****78B9BF4B5248> /Users/USER/*/binascii.so
>>>>>
>>>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>>>> <C625B01B-8C34-38AF-8AF3-****E888E89291D3> /Users/USER/*/cStringIO.so
>>>>>
>>>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>>>> <B753B0B7-E615-329D-A004-****73F57F8B9F19> /Users/USER/*/_io.so
>>>>>
>>>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>>>> <9F2F691B-1510-335A-B9FE-****6600523D90FB> /Users/USER/*/zlib.so
>>>>>
>>>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>>>> <49716A3A-5F27-384D-85C1-****E9BC66F62859>
>>>>> /Users/USER/*/_ovation_api.so
>>>>>
>>>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 -
>>>>> 14.7.0)
>>>>> <83C8C2AB-E99D-39FF-80B4-****90A7DEB1DAFB>
>>>>> /System/Library/Frameworks/****JavaVM.framework/Versions/A/****JavaVM
>>>>>
>>>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>>>> <E89BD701-1C4E-3A44-8C32-****6F81D2B53D13>
>>>>> /System/Library/****PrivateFrameworks/****JavaLaunching.framework/**
>>>>>
>>>>> Versions/A/JavaLaunching
>>>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>>>> <B875FD61-1E55-3E46-A008-****4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>>>
>>>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>>>> <A40597AA-5529-3337-8C09-****D8A014EB1578> /usr/lib/dyld
>>>>>
>>>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>>>> <08F8731D-5961-39F1-AD00-****4590321D24A9>
>>>>> /usr/lib/system/libcompiler_**
>>>>>
>>>>> rt.dylib
>>>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-****122704AEB047>
>>>>> /usr/lib/system/libsystem_****kernel.dylib
>>>>>
>>>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore
>>>>> (4.1 -
>>>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-****AE395D5400EC>
>>>>> /System/Library/****PrivateFrameworks/****
>>>>> DataDetectorsCore.framework/**
>>>>> Versions/A/DataDetectorsCore
>>>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>>>> OSServices
>>>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-****8EFD0D2BFCCD>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****OSServices.framework/Versions/**
>>>>> **A/OSServices
>>>>>
>>>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>>>> <CE9785E8-B535-3504-B392-****82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>>>>>
>>>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>>>> <2A1551E8-A272-3DE5-B692-****955974FE1416> /usr/lib/libz.1.dylib
>>>>>
>>>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8
>>>>> -
>>>>> 151.10) <FFBBA538-00B5-334E-BA5B-****C8AD6CDCDA14>
>>>>> /System/Library/Frameworks/****OpenDirectory.framework/**
>>>>> Versions/A/Frameworks/****CFOpenDirectory.framework/**
>>>>>
>>>>> Versions/A/CFOpenDirectory
>>>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>>>> <BBE558BD-5E55-35E4-89ED-****1AA6B056D05A> /usr/lib/system/libxpc.dylib
>>>>>
>>>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>>>> <20E31B90-19B9-3C2A-A9EB-****474E08F9FE05> /usr/lib/libc++.1.dylib
>>>>>
>>>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>>>> <864C409D-D56B-383E-9B44-****A435A47F2346> /usr/lib/liblangid.dylib
>>>>>
>>>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>>>> <21703D36-2DAB-3D8B-8442-****EAAB23C060D3> /usr/lib/system/libunwind.**
>>>>>
>>>>> dylib
>>>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>>>> <736ABE58-8DED-3289-A042-****C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>>>>>
>>>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>>>> <14202FFB-C3CA-3FCC-94B0-****14611BF8692D>
>>>>> /usr/lib/system/libdnsinfo.**
>>>>>
>>>>> dylib
>>>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>>>> <F497D3CE-40D9-3551-84B4-****3D5E39600737> /usr/lib/libbsm.0.dylib
>>>>>
>>>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>>>> <BAAFE0C9-BB86-3CA7-88C0-****E3CBA98DA06F> /usr/lib/system/**
>>>>>
>>>>> libcommonCrypto.dylib
>>>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>>>> <44F403C1-660A-3543-AB9C-****3902E02F936F>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/AE.****framework/Versions/A/AE
>>>>>
>>>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-****11AEFCBCEDE7>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****SearchKit.framework/Versions/****A/SearchKit
>>>>>
>>>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>>>> <4AAF0573-8632-3D06-BE32-****C5675F77638D>
>>>>> /usr/lib/system/libkxld.dylib
>>>>>
>>>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>>>> <73CDC482-16E3-3FC7-9BB4-****FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>>>
>>>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>>>> <90D31928-F48D-3E37-874F-****220A51FD9E37> /usr/lib/libobjc.A.dylib
>>>>>
>>>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
>>>>> 744.18) <A60C3C9B-3764-3291-844C-****C487ACF77C2C>
>>>>> /System/Library/Frameworks/****CoreFoundation.framework/**
>>>>>
>>>>> Versions/A/CoreFoundation
>>>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
>>>>> <6838A6FD-8626-3356-BB4F-****BB4787216207>
>>>>> /usr/lib/system/libsystem_****sandbox.dylib
>>>>>
>>>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>>>> <CC9E3394-BE16-397F-926B-****E579B60EE429> /usr/lib/system/libkeymgr.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>>>> <365477AB-D641-389D-B8F4-****A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>>>>>
>>>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>>>> <876573D0-E907-3566-A108-****577EAD1B6182>
>>>>> /usr/lib/system/libcopyfile.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>>>> <65187C6E-3FBF-3EB8-A1AA-****389445E2984D>
>>>>> /usr/lib/system/libcache.dylib
>>>>>
>>>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>>>> <441776B8-9130-3893-956F-****39C85FFA644F> /usr/lib/libxslt.1.dylib
>>>>>
>>>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices
>>>>> (1.2
>>>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-****25C551B616C1>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****DictionaryServices.framework/****
>>>>>
>>>>> Versions/A/DictionaryServices
>>>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>>>> <EAA2B53E-EADE-39CF-A0EF-****FB9D4940672A> /usr/lib/libstdc++.6.dylib
>>>>>
>>>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>>>> <FD6282D8-DF3F-3842-8C2E-****CF478D2B9669> /usr/lib/libicucore.A.dylib
>>>>>
>>>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>>>> <92805328-CD36-34FF-9436-****571AB0485072> /usr/lib/system/libunc.dylib
>>>>>
>>>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>>>> 945.16) <89BD68FD-72C8-35C1-94C6-****3A07F097C50D>
>>>>> /System/Library/Frameworks/****Foundation.framework/Versions/**
>>>>> **C/Foundation
>>>>>
>>>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7
>>>>> -
>>>>> 539.7) <DA7C602E-5E01-31B8-925D-****B45360CA089F>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****LaunchServices.framework/**
>>>>>
>>>>> Versions/A/LaunchServices
>>>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>>>> <B434BE5C-25AB-3EBD-BAA7-****5304B34E3441>
>>>>> /usr/lib/system/libsystem_m.**
>>>>>
>>>>> dylib
>>>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>>>> <6763BC8E-18B8-3AD9-8FFA-****B43713A7264F>
>>>>> /usr/lib/system/libremovefile.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
>>>>> <0D99F24E-56FE-380F-B81B-****4A4C630EE587>
>>>>> /usr/lib/system/libsystem_****network.dylib
>>>>>
>>>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
>>>>> <9DD44CB0-C644-35C3-8F57-****0B41B3EC147D>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>>
>>>>> Versions/A/CoreServices
>>>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>>>> <CE0C29A3-C420-339B-ADAA-****52F4683233CC>
>>>>> /usr/lib/system/libcorecrypto.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-****E9C1A286A72D>
>>>>> /System/Library/Frameworks/****SystemConfiguration.framework/****
>>>>>
>>>>> Versions/A/SystemConfiguration
>>>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration
>>>>> (2.5.2 -
>>>>> 2.5.2) <C713A35A-360E-36CE-AC0A-****25C86A3F50CA>
>>>>> /System/Library/Frameworks/****DiskArbitration.framework/**
>>>>>
>>>>> Versions/A/DiskArbitration
>>>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>>>> <4BE2E642-A14F-340A-B482-****5BD2AEFD9C24>
>>>>> /usr/lib/system/libquarantine.****
>>>>>
>>>>> dylib
>>>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>>>> <82E24B9A-7742-3DA3-9E99-****ED267D98C05E>
>>>>> /System/Library/Frameworks/****NetFS.framework/Versions/A/****NetFS
>>>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>>>> CarbonCore
>>>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-****EFEA54DADF41>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****CarbonCore.framework/Versions/**
>>>>> **A/CarbonCore
>>>>>
>>>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>>>> <D86169F3-9F31-377A-9AF3-****DB17142052E4> /usr/lib/libc++abi.dylib
>>>>>
>>>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage
>>>>> (1.1
>>>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-****25A361447A17>
>>>>> /System/Library/****PrivateFrameworks/****
>>>>> GenerationalStorage.framework/****
>>>>>
>>>>> Versions/A/GenerationalStorage
>>>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>>>> <ADE9CB98-D77D-300C-A32A-****556B7440769F> /usr/lib/libsqlite3.dylib
>>>>>
>>>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>>>> <F59367C9-C110-382B-A695-****9035A6DD387E>
>>>>> /usr/lib/system/libdyld.dylib
>>>>>
>>>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>>>> <2F71CAF8-6524-329E-AC56-****C506658B4C0C> /usr/lib/system/liblaunch.**
>>>>>
>>>>> dylib
>>>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>>>> 55179.11) <73958084-5BBC-3597-A751-****7370B0C247E5>
>>>>> /System/Library/Frameworks/****Security.framework/Versions/A/**
>>>>> **Security
>>>>>
>>>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>>>> 707.5) <4140B1F6-7D73-33C7-B3F2-****4DB349C31AE9>
>>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>> Versions/A/Frameworks/****Metadata.framework/Versions/A/****Metadata
>>>>>
>>>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>>>> <4C9EB006-FE1F-3F8F-8074-****DFD94CF2CE7B>
>>>>> /usr/lib/system/libsystem_c.**
>>>>>
>>>>> dylib
>>>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>>>>> 596.3.3) <3739DC8D-8610-3740-80EC-****43E130779CB8>
>>>>> /System/Library/Frameworks/****CFNetwork.framework/Versions/***
>>>>> *A/CFNetwork
>>>>>
>>>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>>>> <D26996BF-FC57-39EB-8829-****F63585561E09>
>>>>> /usr/lib/system/libdispatch.**
>>>>>
>>>>> dylib
>>>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib
>>>>> (148.3)
>>>>> <F8681222-0969-3B10-8BCE-****C55A4B9C520C>
>>>>> /usr/lib/libOpenScriptingUtil.****
>>>>>
>>>>> dylib
>>>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>>>> <47B09CB2-C636-3024-8B55-****6040F7829B4C> /usr/lib/libxml2.2.dylib
>>>>>
>>>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>>>>> <616FC901-151E-38BF-B2C4-****24A351C5FAAD> /usr/lib/system/libsystem_**
>>>>>
>>>>> dnssd.dylib
>>>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>>>> <370ED355-E516-311E-BAFD-****D80633A84BE1> /usr/lib/libxar.1.dylib
>>>>>
>>>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>>>> <4FFCA242-7F04-365F-87A6-****D4EFB89503C1> /usr/lib/system/libsystem_**
>>>>>
>>>>> info.dylib
>>>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>>>> <C8F45864-5B58-3237-87E1-****2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>>>
>>>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit
>>>>> (2.0.1 -
>>>>> 755.22.5) <1547DA6F-9793-30A2-8E92-****7368DE84D46C>
>>>>> /System/Library/Frameworks/****IOKit.framework/Versions/A/****IOKit
>>>>>
>>>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>>>> <BF332AD9-E89F-387E-92A4-****6E1AB74BD4D9>
>>>>> /usr/lib/system/libmacho.dylib
>>>>>
>>>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>>>> <F5BC7D7D-AF28-3C83-A674-****DADA48FF7810>
>>>>> /System/Library/****PrivateFrameworks/NetAuth.**
>>>>>
>>>>> framework/Versions/A/NetAuth
>>>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>>>> <F2F3B753-FC73-3543-8BBE-****859FDBB4D6A6>
>>>>> /System/Library/****PrivateFrameworks/TCC.****framework/Versions/A/TCC
>>>>>
>>>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>>>> <D92DCBC3-541C-37BD-AADE-****ACC75A0C59C8>
>>>>> /usr/lib/system/libsystem_****blocks.dylib
>>>>>
>>>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>>>> <C49275CC-835A-3207-AFBA-****8C01374927B6>
>>>>> /usr/lib/system/libsystem_****notify.dylib
>>>>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>>>>> dylib
>>>>> (8) <8548E0DC-0D2F-30B6-B045-****FE8A038E76D8>
>>>>> /usr/lib/****libDiagnosticMessagesClient.****dylib
>>>>>
>>>>>
>>>>> External Modification Summary:
>>>>>  Calls made by other processes targeting this process:
>>>>>    task_for_pid: 0
>>>>>    thread_create: 0
>>>>>    thread_set_state: 0
>>>>>  Calls made by this process:
>>>>>    task_for_pid: 0
>>>>>    thread_create: 0
>>>>>    thread_set_state: 0
>>>>>  Calls made by all processes on this machine:
>>>>>    task_for_pid: 10466
>>>>>    thread_create: 1
>>>>>    thread_set_state: 0
>>>>>
>>>>> VM Region Summary:
>>>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>>>> swapped_out_or_unallocated=56.****3M(62%)
>>>>>
>>>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>>>
>>>>> REGION TYPE                      VIRTUAL
>>>>> ===========                      =======
>>>>> MALLOC                             17.3M
>>>>> MALLOC guard page                    32K
>>>>> STACK GUARD                        56.0M
>>>>> Stack                              8192K
>>>>> VM_ALLOCATE                           4K
>>>>> __DATA                             4188K
>>>>> __LINKEDIT                         55.4M
>>>>> __TEXT                             35.5M
>>>>> __UNICODE                           544K
>>>>> shared memory                        12K
>>>>> ===========                      =======
>>>>> TOTAL                             176.8M
>>>>>
>>>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
>>>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>> 0x31364A53463235363634485A2D31****47314631
>>>>>
>>>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>>> 0x31364A53463235363634485A2D31****47314631
>>>>> AirPort: spairport_wireless_card_type_****airport_extreme (0x14E4,
>>>>> 0x8D),
>>>>>
>>>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming
>>>>> serial
>>>>> ports
>>>>> Network Service: AirPort, AirPort, en1
>>>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>>>> 0x26500000 / 2
>>>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
>>>>> 0x04600000 / 3
>>>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
>>>>> / 2
>>>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>>>> 0x06110000 / 3
>>>>>
>>>>>
>>>>>
>>>
>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Barry Wark <ba...@physion.us>.
On Wed, May 29, 2013 at 1:53 PM, Andi Vajda <va...@apache.org> wrote:

>
> On Tue, 28 May 2013, Barry Wark wrote:
>
>  On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>>
>>
>>> On Tue, 28 May 2013, Barry Wark wrote:
>>>
>>>  Hi all,
>>>
>>>>
>>>> This is an edge case, I realize, but thought I'd throw it out there in
>>>> case
>>>> anyone has come across a solution.
>>>>
>>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>>>> jcc-compiled module (which the project uses). PyCharm's indexer crashes
>>>>
>>>>
>>> Which project ? yours or PyCharm-the-project ?
>>> What version of JCC was this module compiled with ?
>>>
>>
>>
>> The project is mine, a python wrapper around Physion's Ovation API. We're
>> using JCC 2.16. PyCharm is IDEA's Python IDE (
>> http://www.jetbrains.com/**pycharm/ <http://www.jetbrains.com/pycharm/>).
>>
>>
>>
>>>
>>>  when indexing this module with the crash report below. When running the
>>>
>>>> project's unit tests in PyCharm, this jcc-compiled module is imported
>>>> (and
>>>> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
>>>> some Java-Python bridging as well
>>>>
>>>>
>>> If PyCharm is a Java app, what kind of python bridging is it doing ? And
>>> how does that involve JCC ? I'm assuming that if PyCharm is a Java
>>> module,
>>> its indexing would be implemented in Java too ?
>>>
>>
>>
>> I don't really know how PyCharm handles Java/Python bridging. PyCharm is
>> built on IDEA's (Java) IDE framework, and it works with Python code. It's
>> purely speculation on my part that PyCharm's Java/Python bridging (if any)
>> is involved here.
>>
>>
>>
>>>
>>>  , so it's possible there's a conflict that
>>>
>>>> is the root of this crash. If so, I'll gladly file this as a PyCharm
>>>> issue,
>>>> but though I'd run this by the JCC gurus in case they recognize what's
>>>> going on. I've never seen the PyCharm indexer crash before on modules
>>>> that
>>>> don't use jcc.
>>>>
>>>>
>>> What version(s) of JCC are involved here ?
>>>
>>
>>
>> 2.16 on OS X 10.8, Python 2.7.
>>
>
> So, to paraphrase to make sure I understand this correctly:
>   - PyCharm is a Java program that can spawn Python processes
>

Yes. In particular, it spawns a python process to "index" a python module
for code completion


>   - Your python project uses JCC and runs fine by itself
>

Yes


>   - Your python project crashes when run under PyCharm
>

Almost. My project *runs* fine when spawned under PyCharm, but the PyCharm
"indexer" crashes when attempting to index my module built with jcc.


>
> One possibility here is that there is a clash of Java VMs. There can only
> be one Java VM in a given process. JCC can be embedding a Java VM (the
> default case) and it controls and initializes it or JCC can be embedded
> inside a existing Java VM (when run inside Tomcat, for example). This
> latter feature is not well documented but works fine (see the PythonVM.java
> file in the JCC sources for more information).
>

Interesting. The process that crashes is a python child process spawned by
PyCharm. I don't know whether there is a JavaVM running in this child
process. I looked at the source of PythonVM.java and I don't see any
comments/docs about the various embedding options. Can you give me a bit
more information?



>
> I don't know how PyCharm controls Python programs, does it embed a Python
> VM ? does it spawn a sub-process ? There could be an issue here.
>

It's not transparent to me how PyCharm handles python VMs either. From the
crash log, it appears that in this particular case it is spawning a child
process.

Thank you,
Barry


>
> Andi..
>
>
>> Thanks,
>> Barry
>>
>>
>>
>>>
>>> Andi..
>>>
>>>
>>>
>>>  Thanks,
>>>> Barry
>>>>
>>>>
>>>> The Crash Log:
>>>>
>>>> Process:         python [85552]
>>>> Path:            /Users/USER/*/python
>>>> Identifier:      python
>>>> Version:         60.3
>>>> Code Type:       X86-64 (Native)
>>>> Parent Process:  pycharm [85481]
>>>> User ID:         501
>>>>
>>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>>> Report Version:  10
>>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-****1EE79118E02F
>>>>
>>>>
>>>> Interval Since Last Report:          36408 sec
>>>> Crashes Since Last Report:           3
>>>> Per-App Crashes Since Last Report:   3
>>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>>>
>>>> 2E05A95E2522
>>>>
>>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>>
>>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>>
>>>> VM Regions Near 0x544857bc:
>>>> -->
>>>>    __TEXT                 0000000104484000-****0000000104485000 [
>>>>  4K]
>>>>
>>>> r-x/rwx SM=COW  /Users/USER/*
>>>>
>>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>>> char>::JArray(long) + 37
>>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>>> initializeClass<unsigned char>(bool) + 42
>>>> 2   _ovation_api.so               0x00000001050a290e
>>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>>> 3   _ovation_api.so               0x00000001050a6dd9
>>>> t_descriptor___get__(t_****descriptor*, _object*, _object*) + 66
>>>>
>>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
>>>> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx
>>>> +
>>>> 9244
>>>> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>> 1934
>>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 +
>>>> 121055
>>>> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>> +
>>>> 9389
>>>> 9   org.python.python             0x00000001044ac869 0x10448f000 +
>>>> 120937
>>>> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>> +
>>>> 9389
>>>> 11  org.python.python             0x00000001044ac869 0x10448f000 +
>>>> 120937
>>>> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>> +
>>>> 9389
>>>> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>> 1934
>>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 +
>>>> 121055
>>>> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx
>>>> +
>>>> 9389
>>>> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>>> 1934
>>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode +
>>>> 54
>>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 +
>>>> 339056
>>>> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags +
>>>> 165
>>>> 20  org.python.python             0x00000001044e1726
>>>> PyRun_SimpleFileExFlags + 410
>>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>>
>>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx:
>>>> 0x0000000054485244
>>>> rdx: 0x00000001053c55b0
>>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp:
>>>> 0x00007fff5b77a750
>>>> rsp: 0x00007fff5b77a740
>>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10:
>>>> 0x0000000000000002
>>>> r11: 0x0000000000000003
>>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14:
>>>> 0x0000000000000000
>>>> r15: 0x00007fea32eb2880
>>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2:
>>>> 0x00000000544857bc
>>>> Logical CPU: 1
>>>>
>>>> Binary Images:
>>>>       0x104484000 -        0x104484fff +python (60.3)
>>>> <A3CE5618-7FE0-3307-B2C1-****DE2661C936B2> /Users/USER/*/python
>>>>
>>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 -
>>>> 2.7.2)
>>>> <E7F3EED1-E55D-32AF-9649-****77C814693F6A>
>>>> /System/Library/Frameworks/****Python.framework/Versions/2.7/****Python
>>>>
>>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>>> <282D8F1C-D709-339B-86E2-****CE318F0E28E6> /Users/USER/*/strop.so
>>>>
>>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>>> <FF637943-8866-37F5-8B48-****B97002F502A3> /Users/USER/*/_struct.so
>>>>
>>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>>> <4C0DD616-3B43-309F-B5D9-****040A9126146F> /Users/USER/*/time.so
>>>>
>>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>>> <02413565-C29E-3C7A-8E01-****8C9C19642F15>
>>>> /Users/USER/*/_collections.so
>>>>
>>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>>> <FD5EC6F3-D0F9-358F-BF08-****DC4B4F2109CB> /Users/USER/*/operator.so
>>>>
>>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>>> <36330819-32C7-3183-B213-****2E1142050B3B> /Users/USER/*/itertools.so
>>>>
>>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>>> <EE97CCA4-3D48-3CEC-B163-****37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>>>
>>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>>> <7B91BA4D-5485-31BA-9FF9-****789C6F3D0820> /Users/USER/*/_heapq.so
>>>>
>>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>>> <1CF18F5D-68BA-3E03-A441-****213B7EE0B553> /Users/USER/*/grp.so
>>>>
>>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>>> <81B4F9E4-1DA8-303B-A19F-****78B9BF4B5248> /Users/USER/*/binascii.so
>>>>
>>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>>> <C625B01B-8C34-38AF-8AF3-****E888E89291D3> /Users/USER/*/cStringIO.so
>>>>
>>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>>> <B753B0B7-E615-329D-A004-****73F57F8B9F19> /Users/USER/*/_io.so
>>>>
>>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>>> <9F2F691B-1510-335A-B9FE-****6600523D90FB> /Users/USER/*/zlib.so
>>>>
>>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>>> <49716A3A-5F27-384D-85C1-****E9BC66F62859>
>>>> /Users/USER/*/_ovation_api.so
>>>>
>>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 -
>>>> 14.7.0)
>>>> <83C8C2AB-E99D-39FF-80B4-****90A7DEB1DAFB>
>>>> /System/Library/Frameworks/****JavaVM.framework/Versions/A/****JavaVM
>>>>
>>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>>> <E89BD701-1C4E-3A44-8C32-****6F81D2B53D13>
>>>> /System/Library/****PrivateFrameworks/****JavaLaunching.framework/**
>>>>
>>>> Versions/A/JavaLaunching
>>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>>> <B875FD61-1E55-3E46-A008-****4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>>
>>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>>> <A40597AA-5529-3337-8C09-****D8A014EB1578> /usr/lib/dyld
>>>>
>>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>>> <08F8731D-5961-39F1-AD00-****4590321D24A9>
>>>> /usr/lib/system/libcompiler_**
>>>>
>>>> rt.dylib
>>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-****122704AEB047>
>>>> /usr/lib/system/libsystem_****kernel.dylib
>>>>
>>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore
>>>> (4.1 -
>>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-****AE395D5400EC>
>>>> /System/Library/****PrivateFrameworks/****
>>>> DataDetectorsCore.framework/**
>>>> Versions/A/DataDetectorsCore
>>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>>> OSServices
>>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-****8EFD0D2BFCCD>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****OSServices.framework/Versions/**
>>>> **A/OSServices
>>>>
>>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>>> <CE9785E8-B535-3504-B392-****82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>>>>
>>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>>> <2A1551E8-A272-3DE5-B692-****955974FE1416> /usr/lib/libz.1.dylib
>>>>
>>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8
>>>> -
>>>> 151.10) <FFBBA538-00B5-334E-BA5B-****C8AD6CDCDA14>
>>>> /System/Library/Frameworks/****OpenDirectory.framework/**
>>>> Versions/A/Frameworks/****CFOpenDirectory.framework/**
>>>>
>>>> Versions/A/CFOpenDirectory
>>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>>> <BBE558BD-5E55-35E4-89ED-****1AA6B056D05A> /usr/lib/system/libxpc.dylib
>>>>
>>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>>> <20E31B90-19B9-3C2A-A9EB-****474E08F9FE05> /usr/lib/libc++.1.dylib
>>>>
>>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>>> <864C409D-D56B-383E-9B44-****A435A47F2346> /usr/lib/liblangid.dylib
>>>>
>>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>>> <21703D36-2DAB-3D8B-8442-****EAAB23C060D3> /usr/lib/system/libunwind.**
>>>>
>>>> dylib
>>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>>> <736ABE58-8DED-3289-A042-****C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>>>>
>>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>>> <14202FFB-C3CA-3FCC-94B0-****14611BF8692D>
>>>> /usr/lib/system/libdnsinfo.**
>>>>
>>>> dylib
>>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>>> <F497D3CE-40D9-3551-84B4-****3D5E39600737> /usr/lib/libbsm.0.dylib
>>>>
>>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>>> <BAAFE0C9-BB86-3CA7-88C0-****E3CBA98DA06F> /usr/lib/system/**
>>>>
>>>> libcommonCrypto.dylib
>>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>>> <44F403C1-660A-3543-AB9C-****3902E02F936F>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/AE.****framework/Versions/A/AE
>>>>
>>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-****11AEFCBCEDE7>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****SearchKit.framework/Versions/****A/SearchKit
>>>>
>>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>>> <4AAF0573-8632-3D06-BE32-****C5675F77638D>
>>>> /usr/lib/system/libkxld.dylib
>>>>
>>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>>> <73CDC482-16E3-3FC7-9BB4-****FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>>
>>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>>> <90D31928-F48D-3E37-874F-****220A51FD9E37> /usr/lib/libobjc.A.dylib
>>>>
>>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
>>>> 744.18) <A60C3C9B-3764-3291-844C-****C487ACF77C2C>
>>>> /System/Library/Frameworks/****CoreFoundation.framework/**
>>>>
>>>> Versions/A/CoreFoundation
>>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
>>>> <6838A6FD-8626-3356-BB4F-****BB4787216207>
>>>> /usr/lib/system/libsystem_****sandbox.dylib
>>>>
>>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>>> <CC9E3394-BE16-397F-926B-****E579B60EE429> /usr/lib/system/libkeymgr.**
>>>>
>>>> dylib
>>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>>> <365477AB-D641-389D-B8F4-****A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>>>>
>>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>>> <876573D0-E907-3566-A108-****577EAD1B6182>
>>>> /usr/lib/system/libcopyfile.**
>>>>
>>>> dylib
>>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>>> <65187C6E-3FBF-3EB8-A1AA-****389445E2984D>
>>>> /usr/lib/system/libcache.dylib
>>>>
>>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>>> <441776B8-9130-3893-956F-****39C85FFA644F> /usr/lib/libxslt.1.dylib
>>>>
>>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices
>>>> (1.2
>>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-****25C551B616C1>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****DictionaryServices.framework/****
>>>>
>>>> Versions/A/DictionaryServices
>>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>>> <EAA2B53E-EADE-39CF-A0EF-****FB9D4940672A> /usr/lib/libstdc++.6.dylib
>>>>
>>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>>> <FD6282D8-DF3F-3842-8C2E-****CF478D2B9669> /usr/lib/libicucore.A.dylib
>>>>
>>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>>> <92805328-CD36-34FF-9436-****571AB0485072> /usr/lib/system/libunc.dylib
>>>>
>>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>>> 945.16) <89BD68FD-72C8-35C1-94C6-****3A07F097C50D>
>>>> /System/Library/Frameworks/****Foundation.framework/Versions/**
>>>> **C/Foundation
>>>>
>>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7
>>>> -
>>>> 539.7) <DA7C602E-5E01-31B8-925D-****B45360CA089F>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****LaunchServices.framework/**
>>>>
>>>> Versions/A/LaunchServices
>>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>>> <B434BE5C-25AB-3EBD-BAA7-****5304B34E3441>
>>>> /usr/lib/system/libsystem_m.**
>>>>
>>>> dylib
>>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>>> <6763BC8E-18B8-3AD9-8FFA-****B43713A7264F>
>>>> /usr/lib/system/libremovefile.****
>>>>
>>>> dylib
>>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
>>>> <0D99F24E-56FE-380F-B81B-****4A4C630EE587>
>>>> /usr/lib/system/libsystem_****network.dylib
>>>>
>>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
>>>> <9DD44CB0-C644-35C3-8F57-****0B41B3EC147D>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>>
>>>> Versions/A/CoreServices
>>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>>> <CE0C29A3-C420-339B-ADAA-****52F4683233CC>
>>>> /usr/lib/system/libcorecrypto.****
>>>>
>>>> dylib
>>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-****E9C1A286A72D>
>>>> /System/Library/Frameworks/****SystemConfiguration.framework/****
>>>>
>>>> Versions/A/SystemConfiguration
>>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration
>>>> (2.5.2 -
>>>> 2.5.2) <C713A35A-360E-36CE-AC0A-****25C86A3F50CA>
>>>> /System/Library/Frameworks/****DiskArbitration.framework/**
>>>>
>>>> Versions/A/DiskArbitration
>>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>>> <4BE2E642-A14F-340A-B482-****5BD2AEFD9C24>
>>>> /usr/lib/system/libquarantine.****
>>>>
>>>> dylib
>>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>>> <82E24B9A-7742-3DA3-9E99-****ED267D98C05E>
>>>> /System/Library/Frameworks/****NetFS.framework/Versions/A/****NetFS
>>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>>> CarbonCore
>>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-****EFEA54DADF41>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****CarbonCore.framework/Versions/**
>>>> **A/CarbonCore
>>>>
>>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>>> <D86169F3-9F31-377A-9AF3-****DB17142052E4> /usr/lib/libc++abi.dylib
>>>>
>>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage
>>>> (1.1
>>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-****25A361447A17>
>>>> /System/Library/****PrivateFrameworks/****
>>>> GenerationalStorage.framework/****
>>>>
>>>> Versions/A/GenerationalStorage
>>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>>> <ADE9CB98-D77D-300C-A32A-****556B7440769F> /usr/lib/libsqlite3.dylib
>>>>
>>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>>> <F59367C9-C110-382B-A695-****9035A6DD387E>
>>>> /usr/lib/system/libdyld.dylib
>>>>
>>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>>> <2F71CAF8-6524-329E-AC56-****C506658B4C0C> /usr/lib/system/liblaunch.**
>>>>
>>>> dylib
>>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>>> 55179.11) <73958084-5BBC-3597-A751-****7370B0C247E5>
>>>> /System/Library/Frameworks/****Security.framework/Versions/A/**
>>>> **Security
>>>>
>>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>>> 707.5) <4140B1F6-7D73-33C7-B3F2-****4DB349C31AE9>
>>>> /System/Library/Frameworks/****CoreServices.framework/**
>>>> Versions/A/Frameworks/****Metadata.framework/Versions/A/****Metadata
>>>>
>>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>>> <4C9EB006-FE1F-3F8F-8074-****DFD94CF2CE7B>
>>>> /usr/lib/system/libsystem_c.**
>>>>
>>>> dylib
>>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>>>> 596.3.3) <3739DC8D-8610-3740-80EC-****43E130779CB8>
>>>> /System/Library/Frameworks/****CFNetwork.framework/Versions/***
>>>> *A/CFNetwork
>>>>
>>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>>> <D26996BF-FC57-39EB-8829-****F63585561E09>
>>>> /usr/lib/system/libdispatch.**
>>>>
>>>> dylib
>>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib
>>>> (148.3)
>>>> <F8681222-0969-3B10-8BCE-****C55A4B9C520C>
>>>> /usr/lib/libOpenScriptingUtil.****
>>>>
>>>> dylib
>>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>>> <47B09CB2-C636-3024-8B55-****6040F7829B4C> /usr/lib/libxml2.2.dylib
>>>>
>>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>>>> <616FC901-151E-38BF-B2C4-****24A351C5FAAD> /usr/lib/system/libsystem_**
>>>>
>>>> dnssd.dylib
>>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>>> <370ED355-E516-311E-BAFD-****D80633A84BE1> /usr/lib/libxar.1.dylib
>>>>
>>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>>> <4FFCA242-7F04-365F-87A6-****D4EFB89503C1> /usr/lib/system/libsystem_**
>>>>
>>>> info.dylib
>>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>>> <C8F45864-5B58-3237-87E1-****2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>>
>>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit
>>>> (2.0.1 -
>>>> 755.22.5) <1547DA6F-9793-30A2-8E92-****7368DE84D46C>
>>>> /System/Library/Frameworks/****IOKit.framework/Versions/A/****IOKit
>>>>
>>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>>> <BF332AD9-E89F-387E-92A4-****6E1AB74BD4D9>
>>>> /usr/lib/system/libmacho.dylib
>>>>
>>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>>> <F5BC7D7D-AF28-3C83-A674-****DADA48FF7810>
>>>> /System/Library/****PrivateFrameworks/NetAuth.**
>>>>
>>>> framework/Versions/A/NetAuth
>>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>>> <F2F3B753-FC73-3543-8BBE-****859FDBB4D6A6>
>>>> /System/Library/****PrivateFrameworks/TCC.****framework/Versions/A/TCC
>>>>
>>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>>> <D92DCBC3-541C-37BD-AADE-****ACC75A0C59C8>
>>>> /usr/lib/system/libsystem_****blocks.dylib
>>>>
>>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>>> <C49275CC-835A-3207-AFBA-****8C01374927B6>
>>>> /usr/lib/system/libsystem_****notify.dylib
>>>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>>>> dylib
>>>> (8) <8548E0DC-0D2F-30B6-B045-****FE8A038E76D8>
>>>> /usr/lib/****libDiagnosticMessagesClient.****dylib
>>>>
>>>>
>>>> External Modification Summary:
>>>>  Calls made by other processes targeting this process:
>>>>    task_for_pid: 0
>>>>    thread_create: 0
>>>>    thread_set_state: 0
>>>>  Calls made by this process:
>>>>    task_for_pid: 0
>>>>    thread_create: 0
>>>>    thread_set_state: 0
>>>>  Calls made by all processes on this machine:
>>>>    task_for_pid: 10466
>>>>    thread_create: 1
>>>>    thread_set_state: 0
>>>>
>>>> VM Region Summary:
>>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>>> swapped_out_or_unallocated=56.****3M(62%)
>>>>
>>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>>
>>>> REGION TYPE                      VIRTUAL
>>>> ===========                      =======
>>>> MALLOC                             17.3M
>>>> MALLOC guard page                    32K
>>>> STACK GUARD                        56.0M
>>>> Stack                              8192K
>>>> VM_ALLOCATE                           4K
>>>> __DATA                             4188K
>>>> __LINKEDIT                         55.4M
>>>> __TEXT                             35.5M
>>>> __UNICODE                           544K
>>>> shared memory                        12K
>>>> ===========                      =======
>>>> TOTAL                             176.8M
>>>>
>>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
>>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>> 0x31364A53463235363634485A2D31****47314631
>>>>
>>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>>> 0x31364A53463235363634485A2D31****47314631
>>>> AirPort: spairport_wireless_card_type_****airport_extreme (0x14E4,
>>>> 0x8D),
>>>>
>>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming
>>>> serial
>>>> ports
>>>> Network Service: AirPort, AirPort, en1
>>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>>> 0x26500000 / 2
>>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
>>>> 0x04600000 / 3
>>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000
>>>> / 2
>>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>>> 0x06110000 / 3
>>>>
>>>>
>>>>
>>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Andi Vajda <va...@apache.org>.
On Tue, 28 May 2013, Barry Wark wrote:

> On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:
>
>>
>> On Tue, 28 May 2013, Barry Wark wrote:
>>
>>  Hi all,
>>>
>>> This is an edge case, I realize, but thought I'd throw it out there in
>>> case
>>> anyone has come across a solution.
>>>
>>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>>> jcc-compiled module (which the project uses). PyCharm's indexer crashes
>>>
>>
>> Which project ? yours or PyCharm-the-project ?
>> What version of JCC was this module compiled with ?
>
>
> The project is mine, a python wrapper around Physion's Ovation API. We're
> using JCC 2.16. PyCharm is IDEA's Python IDE (
> http://www.jetbrains.com/pycharm/).
>
>
>>
>>
>>  when indexing this module with the crash report below. When running the
>>> project's unit tests in PyCharm, this jcc-compiled module is imported (and
>>> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
>>> some Java-Python bridging as well
>>>
>>
>> If PyCharm is a Java app, what kind of python bridging is it doing ? And
>> how does that involve JCC ? I'm assuming that if PyCharm is a Java module,
>> its indexing would be implemented in Java too ?
>
>
> I don't really know how PyCharm handles Java/Python bridging. PyCharm is
> built on IDEA's (Java) IDE framework, and it works with Python code. It's
> purely speculation on my part that PyCharm's Java/Python bridging (if any)
> is involved here.
>
>
>>
>>
>>  , so it's possible there's a conflict that
>>> is the root of this crash. If so, I'll gladly file this as a PyCharm
>>> issue,
>>> but though I'd run this by the JCC gurus in case they recognize what's
>>> going on. I've never seen the PyCharm indexer crash before on modules that
>>> don't use jcc.
>>>
>>
>> What version(s) of JCC are involved here ?
>
>
> 2.16 on OS X 10.8, Python 2.7.

So, to paraphrase to make sure I understand this correctly:
   - PyCharm is a Java program that can spawn Python processes
   - Your python project uses JCC and runs fine by itself
   - Your python project crashes when run under PyCharm

One possibility here is that there is a clash of Java VMs. There can only be 
one Java VM in a given process. JCC can be embedding a Java VM (the default 
case) and it controls and initializes it or JCC can be embedded inside a 
existing Java VM (when run inside Tomcat, for example). This latter feature 
is not well documented but works fine (see the PythonVM.java file in the JCC 
sources for more information).

I don't know how PyCharm controls Python programs, does it embed a Python 
VM ? does it spawn a sub-process ? There could be an issue here.

Andi..

>
> Thanks,
> Barry
>
>
>>
>>
>> Andi..
>>
>>
>>
>>> Thanks,
>>> Barry
>>>
>>>
>>> The Crash Log:
>>>
>>> Process:         python [85552]
>>> Path:            /Users/USER/*/python
>>> Identifier:      python
>>> Version:         60.3
>>> Code Type:       X86-64 (Native)
>>> Parent Process:  pycharm [85481]
>>> User ID:         501
>>>
>>> Date/Time:       2013-05-28 13:35:21.728 -0400
>>> OS Version:      Mac OS X 10.8.3 (12D78)
>>> Report Version:  10
>>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-**1EE79118E02F
>>>
>>> Interval Since Last Report:          36408 sec
>>> Crashes Since Last Report:           3
>>> Per-App Crashes Since Last Report:   3
>>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>>> 2E05A95E2522
>>>
>>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>>
>>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>>
>>> VM Regions Near 0x544857bc:
>>> -->
>>>    __TEXT                 0000000104484000-**0000000104485000 [    4K]
>>> r-x/rwx SM=COW  /Users/USER/*
>>>
>>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>>> char>::JArray(long) + 37
>>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>>> initializeClass<unsigned char>(bool) + 42
>>> 2   _ovation_api.so               0x00000001050a290e
>>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>>> 3   _ovation_api.so               0x00000001050a6dd9
>>> t_descriptor___get__(t_**descriptor*, _object*, _object*) + 66
>>> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
>>> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx +
>>> 9244
>>> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>> 1934
>>> 7   org.python.python             0x00000001044ac8df 0x10448f000 + 121055
>>> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>>> 9389
>>> 9   org.python.python             0x00000001044ac869 0x10448f000 + 120937
>>> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>>> 9389
>>> 11  org.python.python             0x00000001044ac869 0x10448f000 + 120937
>>> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>>> 9389
>>> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>> 1934
>>> 14  org.python.python             0x00000001044ac8df 0x10448f000 + 121055
>>> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>>> 9389
>>> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>>> 1934
>>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode + 54
>>> 18  org.python.python             0x00000001044e1c70 0x10448f000 + 339056
>>> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags +
>>> 165
>>> 20  org.python.python             0x00000001044e1726
>>> PyRun_SimpleFileExFlags + 410
>>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>>
>>> Thread 0 crashed with X86 Thread State (64-bit):
>>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx: 0x0000000054485244
>>> rdx: 0x00000001053c55b0
>>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp: 0x00007fff5b77a750
>>> rsp: 0x00007fff5b77a740
>>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10: 0x0000000000000002
>>> r11: 0x0000000000000003
>>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14: 0x0000000000000000
>>> r15: 0x00007fea32eb2880
>>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2: 0x00000000544857bc
>>> Logical CPU: 1
>>>
>>> Binary Images:
>>>       0x104484000 -        0x104484fff +python (60.3)
>>> <A3CE5618-7FE0-3307-B2C1-**DE2661C936B2> /Users/USER/*/python
>>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 - 2.7.2)
>>> <E7F3EED1-E55D-32AF-9649-**77C814693F6A>
>>> /System/Library/Frameworks/**Python.framework/Versions/2.7/**Python
>>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>>> <282D8F1C-D709-339B-86E2-**CE318F0E28E6> /Users/USER/*/strop.so
>>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>>> <FF637943-8866-37F5-8B48-**B97002F502A3> /Users/USER/*/_struct.so
>>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>>> <4C0DD616-3B43-309F-B5D9-**040A9126146F> /Users/USER/*/time.so
>>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>>> <02413565-C29E-3C7A-8E01-**8C9C19642F15> /Users/USER/*/_collections.so
>>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>>> <FD5EC6F3-D0F9-358F-BF08-**DC4B4F2109CB> /Users/USER/*/operator.so
>>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>>> <36330819-32C7-3183-B213-**2E1142050B3B> /Users/USER/*/itertools.so
>>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>>> <EE97CCA4-3D48-3CEC-B163-**37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>>> <7B91BA4D-5485-31BA-9FF9-**789C6F3D0820> /Users/USER/*/_heapq.so
>>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>>> <1CF18F5D-68BA-3E03-A441-**213B7EE0B553> /Users/USER/*/grp.so
>>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>>> <81B4F9E4-1DA8-303B-A19F-**78B9BF4B5248> /Users/USER/*/binascii.so
>>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>>> <C625B01B-8C34-38AF-8AF3-**E888E89291D3> /Users/USER/*/cStringIO.so
>>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>>> <B753B0B7-E615-329D-A004-**73F57F8B9F19> /Users/USER/*/_io.so
>>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>>> <9F2F691B-1510-335A-B9FE-**6600523D90FB> /Users/USER/*/zlib.so
>>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>>> <49716A3A-5F27-384D-85C1-**E9BC66F62859> /Users/USER/*/_ovation_api.so
>>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 - 14.7.0)
>>> <83C8C2AB-E99D-39FF-80B4-**90A7DEB1DAFB>
>>> /System/Library/Frameworks/**JavaVM.framework/Versions/A/**JavaVM
>>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>>> <E89BD701-1C4E-3A44-8C32-**6F81D2B53D13>
>>> /System/Library/**PrivateFrameworks/**JavaLaunching.framework/**
>>> Versions/A/JavaLaunching
>>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>>> <B875FD61-1E55-3E46-A008-**4D8DEB66ED59> /Users/USER/*/_jcc.so
>>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>>> <A40597AA-5529-3337-8C09-**D8A014EB1578> /usr/lib/dyld
>>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>>> <08F8731D-5961-39F1-AD00-**4590321D24A9> /usr/lib/system/libcompiler_**
>>> rt.dylib
>>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-**122704AEB047>
>>> /usr/lib/system/libsystem_**kernel.dylib
>>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore (4.1 -
>>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-**AE395D5400EC>
>>> /System/Library/**PrivateFrameworks/**DataDetectorsCore.framework/**
>>> Versions/A/DataDetectorsCore
>>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>>> OSServices
>>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-**8EFD0D2BFCCD>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**OSServices.framework/Versions/**A/OSServices
>>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>>> <CE9785E8-B535-3504-B392-**82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>>> <2A1551E8-A272-3DE5-B692-**955974FE1416> /usr/lib/libz.1.dylib
>>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8 -
>>> 151.10) <FFBBA538-00B5-334E-BA5B-**C8AD6CDCDA14>
>>> /System/Library/Frameworks/**OpenDirectory.framework/**
>>> Versions/A/Frameworks/**CFOpenDirectory.framework/**
>>> Versions/A/CFOpenDirectory
>>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>>> <BBE558BD-5E55-35E4-89ED-**1AA6B056D05A> /usr/lib/system/libxpc.dylib
>>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>>> <20E31B90-19B9-3C2A-A9EB-**474E08F9FE05> /usr/lib/libc++.1.dylib
>>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>>> <864C409D-D56B-383E-9B44-**A435A47F2346> /usr/lib/liblangid.dylib
>>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>>> <21703D36-2DAB-3D8B-8442-**EAAB23C060D3> /usr/lib/system/libunwind.**
>>> dylib
>>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>>> <736ABE58-8DED-3289-A042-**C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>>> <14202FFB-C3CA-3FCC-94B0-**14611BF8692D> /usr/lib/system/libdnsinfo.**
>>> dylib
>>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>>> <F497D3CE-40D9-3551-84B4-**3D5E39600737> /usr/lib/libbsm.0.dylib
>>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>>> <BAAFE0C9-BB86-3CA7-88C0-**E3CBA98DA06F> /usr/lib/system/**
>>> libcommonCrypto.dylib
>>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>>> <44F403C1-660A-3543-AB9C-**3902E02F936F>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/AE.**framework/Versions/A/AE
>>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-**11AEFCBCEDE7>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**SearchKit.framework/Versions/**A/SearchKit
>>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>>> <4AAF0573-8632-3D06-BE32-**C5675F77638D> /usr/lib/system/libkxld.dylib
>>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>>> <73CDC482-16E3-3FC7-9BB4-**FBA2DA44DBC2> /usr/lib/libauto.dylib
>>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>>> <90D31928-F48D-3E37-874F-**220A51FD9E37> /usr/lib/libobjc.A.dylib
>>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
>>> 744.18) <A60C3C9B-3764-3291-844C-**C487ACF77C2C>
>>> /System/Library/Frameworks/**CoreFoundation.framework/**
>>> Versions/A/CoreFoundation
>>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
>>> <6838A6FD-8626-3356-BB4F-**BB4787216207>
>>> /usr/lib/system/libsystem_**sandbox.dylib
>>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>>> <CC9E3394-BE16-397F-926B-**E579B60EE429> /usr/lib/system/libkeymgr.**
>>> dylib
>>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>>> <365477AB-D641-389D-B8F4-**A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>>> <876573D0-E907-3566-A108-**577EAD1B6182> /usr/lib/system/libcopyfile.**
>>> dylib
>>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>>> <65187C6E-3FBF-3EB8-A1AA-**389445E2984D> /usr/lib/system/libcache.dylib
>>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>>> <441776B8-9130-3893-956F-**39C85FFA644F> /usr/lib/libxslt.1.dylib
>>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices (1.2
>>> - 184.4) <054F2D6F-9CFF-3EF1-9778-**25C551B616C1>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**DictionaryServices.framework/**
>>> Versions/A/DictionaryServices
>>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>>> <EAA2B53E-EADE-39CF-A0EF-**FB9D4940672A> /usr/lib/libstdc++.6.dylib
>>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>>> <FD6282D8-DF3F-3842-8C2E-**CF478D2B9669> /usr/lib/libicucore.A.dylib
>>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>>> <92805328-CD36-34FF-9436-**571AB0485072> /usr/lib/system/libunc.dylib
>>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>>> 945.16) <89BD68FD-72C8-35C1-94C6-**3A07F097C50D>
>>> /System/Library/Frameworks/**Foundation.framework/Versions/**C/Foundation
>>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7 -
>>> 539.7) <DA7C602E-5E01-31B8-925D-**B45360CA089F>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**LaunchServices.framework/**
>>> Versions/A/LaunchServices
>>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>>> <B434BE5C-25AB-3EBD-BAA7-**5304B34E3441> /usr/lib/system/libsystem_m.**
>>> dylib
>>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>>> <6763BC8E-18B8-3AD9-8FFA-**B43713A7264F> /usr/lib/system/libremovefile.**
>>> dylib
>>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
>>> <0D99F24E-56FE-380F-B81B-**4A4C630EE587>
>>> /usr/lib/system/libsystem_**network.dylib
>>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
>>> <9DD44CB0-C644-35C3-8F57-**0B41B3EC147D>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/CoreServices
>>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>>> <CE0C29A3-C420-339B-ADAA-**52F4683233CC> /usr/lib/system/libcorecrypto.**
>>> dylib
>>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-**E9C1A286A72D>
>>> /System/Library/Frameworks/**SystemConfiguration.framework/**
>>> Versions/A/SystemConfiguration
>>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration (2.5.2 -
>>> 2.5.2) <C713A35A-360E-36CE-AC0A-**25C86A3F50CA>
>>> /System/Library/Frameworks/**DiskArbitration.framework/**
>>> Versions/A/DiskArbitration
>>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>>> <4BE2E642-A14F-340A-B482-**5BD2AEFD9C24> /usr/lib/system/libquarantine.**
>>> dylib
>>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>>> <82E24B9A-7742-3DA3-9E99-**ED267D98C05E>
>>> /System/Library/Frameworks/**NetFS.framework/Versions/A/**NetFS
>>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>>> CarbonCore
>>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-**EFEA54DADF41>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**CarbonCore.framework/Versions/**A/CarbonCore
>>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>>> <D86169F3-9F31-377A-9AF3-**DB17142052E4> /usr/lib/libc++abi.dylib
>>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage (1.1
>>> - 132.3) <FD4A84B3-13A8-3C60-A59E-**25A361447A17>
>>> /System/Library/**PrivateFrameworks/**GenerationalStorage.framework/**
>>> Versions/A/GenerationalStorage
>>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>>> <ADE9CB98-D77D-300C-A32A-**556B7440769F> /usr/lib/libsqlite3.dylib
>>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>>> <F59367C9-C110-382B-A695-**9035A6DD387E> /usr/lib/system/libdyld.dylib
>>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>>> <2F71CAF8-6524-329E-AC56-**C506658B4C0C> /usr/lib/system/liblaunch.**
>>> dylib
>>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>>> 55179.11) <73958084-5BBC-3597-A751-**7370B0C247E5>
>>> /System/Library/Frameworks/**Security.framework/Versions/A/**Security
>>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>>> 707.5) <4140B1F6-7D73-33C7-B3F2-**4DB349C31AE9>
>>> /System/Library/Frameworks/**CoreServices.framework/**
>>> Versions/A/Frameworks/**Metadata.framework/Versions/A/**Metadata
>>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>>> <4C9EB006-FE1F-3F8F-8074-**DFD94CF2CE7B> /usr/lib/system/libsystem_c.**
>>> dylib
>>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>>> 596.3.3) <3739DC8D-8610-3740-80EC-**43E130779CB8>
>>> /System/Library/Frameworks/**CFNetwork.framework/Versions/**A/CFNetwork
>>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>>> <D26996BF-FC57-39EB-8829-**F63585561E09> /usr/lib/system/libdispatch.**
>>> dylib
>>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib (148.3)
>>> <F8681222-0969-3B10-8BCE-**C55A4B9C520C> /usr/lib/libOpenScriptingUtil.**
>>> dylib
>>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>>> <47B09CB2-C636-3024-8B55-**6040F7829B4C> /usr/lib/libxml2.2.dylib
>>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>>> <616FC901-151E-38BF-B2C4-**24A351C5FAAD> /usr/lib/system/libsystem_**
>>> dnssd.dylib
>>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>>> <370ED355-E516-311E-BAFD-**D80633A84BE1> /usr/lib/libxar.1.dylib
>>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>>> <4FFCA242-7F04-365F-87A6-**D4EFB89503C1> /usr/lib/system/libsystem_**
>>> info.dylib
>>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>>> <C8F45864-5B58-3237-87E1-**2C258A1D73B8> /usr/lib/libpam.2.dylib
>>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit (2.0.1 -
>>> 755.22.5) <1547DA6F-9793-30A2-8E92-**7368DE84D46C>
>>> /System/Library/Frameworks/**IOKit.framework/Versions/A/**IOKit
>>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>>> <BF332AD9-E89F-387E-92A4-**6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
>>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>>> <F5BC7D7D-AF28-3C83-A674-**DADA48FF7810>
>>> /System/Library/**PrivateFrameworks/NetAuth.**
>>> framework/Versions/A/NetAuth
>>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>>> <F2F3B753-FC73-3543-8BBE-**859FDBB4D6A6>
>>> /System/Library/**PrivateFrameworks/TCC.**framework/Versions/A/TCC
>>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>>> <D92DCBC3-541C-37BD-AADE-**ACC75A0C59C8>
>>> /usr/lib/system/libsystem_**blocks.dylib
>>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>>> <C49275CC-835A-3207-AFBA-**8C01374927B6>
>>> /usr/lib/system/libsystem_**notify.dylib
>>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>>> dylib
>>> (8) <8548E0DC-0D2F-30B6-B045-**FE8A038E76D8>
>>> /usr/lib/**libDiagnosticMessagesClient.**dylib
>>>
>>> External Modification Summary:
>>>  Calls made by other processes targeting this process:
>>>    task_for_pid: 0
>>>    thread_create: 0
>>>    thread_set_state: 0
>>>  Calls made by this process:
>>>    task_for_pid: 0
>>>    thread_create: 0
>>>    thread_set_state: 0
>>>  Calls made by all processes on this machine:
>>>    task_for_pid: 10466
>>>    thread_create: 1
>>>    thread_set_state: 0
>>>
>>> VM Region Summary:
>>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>>> swapped_out_or_unallocated=56.**3M(62%)
>>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>>
>>> REGION TYPE                      VIRTUAL
>>> ===========                      =======
>>> MALLOC                             17.3M
>>> MALLOC guard page                    32K
>>> STACK GUARD                        56.0M
>>> Stack                              8192K
>>> VM_ALLOCATE                           4K
>>> __DATA                             4188K
>>> __LINKEDIT                         55.4M
>>> __TEXT                             35.5M
>>> __UNICODE                           544K
>>> shared memory                        12K
>>> ===========                      =======
>>> TOTAL                             176.8M
>>>
>>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
>>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>> 0x31364A53463235363634485A2D31**47314631
>>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>>> 0x31364A53463235363634485A2D31**47314631
>>> AirPort: spairport_wireless_card_type_**airport_extreme (0x14E4, 0x8D),
>>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial
>>> ports
>>> Network Service: AirPort, AirPort, en1
>>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>>> 0x26500000 / 2
>>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
>>> 0x04600000 / 3
>>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
>>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>>> 0x06110000 / 3
>>>
>>>
>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Barry Wark <ba...@physion.us>.
On Tue, May 28, 2013 at 11:09 PM, Andi Vajda <va...@apache.org> wrote:

>
> On Tue, 28 May 2013, Barry Wark wrote:
>
>  Hi all,
>>
>> This is an edge case, I realize, but thought I'd throw it out there in
>> case
>> anyone has come across a solution.
>>
>> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
>> jcc-compiled module (which the project uses). PyCharm's indexer crashes
>>
>
> Which project ? yours or PyCharm-the-project ?
> What version of JCC was this module compiled with ?


The project is mine, a python wrapper around Physion's Ovation API. We're
using JCC 2.16. PyCharm is IDEA's Python IDE (
http://www.jetbrains.com/pycharm/).


>
>
>  when indexing this module with the crash report below. When running the
>> project's unit tests in PyCharm, this jcc-compiled module is imported (and
>> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
>> some Java-Python bridging as well
>>
>
> If PyCharm is a Java app, what kind of python bridging is it doing ? And
> how does that involve JCC ? I'm assuming that if PyCharm is a Java module,
> its indexing would be implemented in Java too ?


I don't really know how PyCharm handles Java/Python bridging. PyCharm is
built on IDEA's (Java) IDE framework, and it works with Python code. It's
purely speculation on my part that PyCharm's Java/Python bridging (if any)
is involved here.


>
>
>  , so it's possible there's a conflict that
>> is the root of this crash. If so, I'll gladly file this as a PyCharm
>> issue,
>> but though I'd run this by the JCC gurus in case they recognize what's
>> going on. I've never seen the PyCharm indexer crash before on modules that
>> don't use jcc.
>>
>
> What version(s) of JCC are involved here ?


2.16 on OS X 10.8, Python 2.7.

Thanks,
Barry


>
>
> Andi..
>
>
>
>> Thanks,
>> Barry
>>
>>
>> The Crash Log:
>>
>> Process:         python [85552]
>> Path:            /Users/USER/*/python
>> Identifier:      python
>> Version:         60.3
>> Code Type:       X86-64 (Native)
>> Parent Process:  pycharm [85481]
>> User ID:         501
>>
>> Date/Time:       2013-05-28 13:35:21.728 -0400
>> OS Version:      Mac OS X 10.8.3 (12D78)
>> Report Version:  10
>> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-**1EE79118E02F
>>
>> Interval Since Last Report:          36408 sec
>> Crashes Since Last Report:           3
>> Per-App Crashes Since Last Report:   3
>> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-**
>> 2E05A95E2522
>>
>> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>>
>> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
>> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>>
>> VM Regions Near 0x544857bc:
>> -->
>>    __TEXT                 0000000104484000-**0000000104485000 [    4K]
>> r-x/rwx SM=COW  /Users/USER/*
>>
>> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
>> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
>> char>::JArray(long) + 37
>> 1   _ovation_api.so               0x0000000105095250 _jclass*
>> initializeClass<unsigned char>(bool) + 42
>> 2   _ovation_api.so               0x00000001050a290e
>> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
>> 3   _ovation_api.so               0x00000001050a6dd9
>> t_descriptor___get__(t_**descriptor*, _object*, _object*) + 66
>> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
>> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx +
>> 9244
>> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>> 1934
>> 7   org.python.python             0x00000001044ac8df 0x10448f000 + 121055
>> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>> 9389
>> 9   org.python.python             0x00000001044ac869 0x10448f000 + 120937
>> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>> 9389
>> 11  org.python.python             0x00000001044ac869 0x10448f000 + 120937
>> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>> 9389
>> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>> 1934
>> 14  org.python.python             0x00000001044ac8df 0x10448f000 + 121055
>> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
>> 9389
>> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
>> 1934
>> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode + 54
>> 18  org.python.python             0x00000001044e1c70 0x10448f000 + 339056
>> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags +
>> 165
>> 20  org.python.python             0x00000001044e1726
>> PyRun_SimpleFileExFlags + 410
>> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
>> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>>
>> Thread 0 crashed with X86 Thread State (64-bit):
>>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx: 0x0000000054485244
>> rdx: 0x00000001053c55b0
>>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp: 0x00007fff5b77a750
>> rsp: 0x00007fff5b77a740
>>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10: 0x0000000000000002
>> r11: 0x0000000000000003
>>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14: 0x0000000000000000
>> r15: 0x00007fea32eb2880
>>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2: 0x00000000544857bc
>> Logical CPU: 1
>>
>> Binary Images:
>>       0x104484000 -        0x104484fff +python (60.3)
>> <A3CE5618-7FE0-3307-B2C1-**DE2661C936B2> /Users/USER/*/python
>>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 - 2.7.2)
>> <E7F3EED1-E55D-32AF-9649-**77C814693F6A>
>> /System/Library/Frameworks/**Python.framework/Versions/2.7/**Python
>>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
>> <282D8F1C-D709-339B-86E2-**CE318F0E28E6> /Users/USER/*/strop.so
>>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
>> <FF637943-8866-37F5-8B48-**B97002F502A3> /Users/USER/*/_struct.so
>>       0x104b5f000 -        0x104b60fff +time.so (60.4)
>> <4C0DD616-3B43-309F-B5D9-**040A9126146F> /Users/USER/*/time.so
>>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
>> <02413565-C29E-3C7A-8E01-**8C9C19642F15> /Users/USER/*/_collections.so
>>       0x104b70000 -        0x104b73fff +operator.so (60.4)
>> <FD5EC6F3-D0F9-358F-BF08-**DC4B4F2109CB> /Users/USER/*/operator.so
>>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
>> <36330819-32C7-3183-B213-**2E1142050B3B> /Users/USER/*/itertools.so
>>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
>> <EE97CCA4-3D48-3CEC-B163-**37E3AC0DCDA1> /Users/USER/*/_bisect.so
>>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
>> <7B91BA4D-5485-31BA-9FF9-**789C6F3D0820> /Users/USER/*/_heapq.so
>>       0x104b92000 -        0x104b92fff +grp.so (60.4)
>> <1CF18F5D-68BA-3E03-A441-**213B7EE0B553> /Users/USER/*/grp.so
>>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
>> <81B4F9E4-1DA8-303B-A19F-**78B9BF4B5248> /Users/USER/*/binascii.so
>>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
>> <C625B01B-8C34-38AF-8AF3-**E888E89291D3> /Users/USER/*/cStringIO.so
>>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
>> <B753B0B7-E615-329D-A004-**73F57F8B9F19> /Users/USER/*/_io.so
>>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
>> <9F2F691B-1510-335A-B9FE-**6600523D90FB> /Users/USER/*/zlib.so
>>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
>> <49716A3A-5F27-384D-85C1-**E9BC66F62859> /Users/USER/*/_ovation_api.so
>>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 - 14.7.0)
>> <83C8C2AB-E99D-39FF-80B4-**90A7DEB1DAFB>
>> /System/Library/Frameworks/**JavaVM.framework/Versions/A/**JavaVM
>>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
>> <E89BD701-1C4E-3A44-8C32-**6F81D2B53D13>
>> /System/Library/**PrivateFrameworks/**JavaLaunching.framework/**
>> Versions/A/JavaLaunching
>>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
>> <B875FD61-1E55-3E46-A008-**4D8DEB66ED59> /Users/USER/*/_jcc.so
>>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
>> <A40597AA-5529-3337-8C09-**D8A014EB1578> /usr/lib/dyld
>>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
>> <08F8731D-5961-39F1-AD00-**4590321D24A9> /usr/lib/system/libcompiler_**
>> rt.dylib
>>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
>> (2050.22.13) <5A961E2A-CFB8-362B-BC43-**122704AEB047>
>> /usr/lib/system/libsystem_**kernel.dylib
>>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore (4.1 -
>> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-**AE395D5400EC>
>> /System/Library/**PrivateFrameworks/**DataDetectorsCore.framework/**
>> Versions/A/DataDetectorsCore
>>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.**
>> OSServices
>> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-**8EFD0D2BFCCD>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**OSServices.framework/Versions/**A/OSServices
>>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
>> <CE9785E8-B535-3504-B392-**82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
>> <2A1551E8-A272-3DE5-B692-**955974FE1416> /usr/lib/libz.1.dylib
>>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8 -
>> 151.10) <FFBBA538-00B5-334E-BA5B-**C8AD6CDCDA14>
>> /System/Library/Frameworks/**OpenDirectory.framework/**
>> Versions/A/Frameworks/**CFOpenDirectory.framework/**
>> Versions/A/CFOpenDirectory
>>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
>> <BBE558BD-5E55-35E4-89ED-**1AA6B056D05A> /usr/lib/system/libxpc.dylib
>>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
>> <20E31B90-19B9-3C2A-A9EB-**474E08F9FE05> /usr/lib/libc++.1.dylib
>>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
>> <864C409D-D56B-383E-9B44-**A435A47F2346> /usr/lib/liblangid.dylib
>>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
>> <21703D36-2DAB-3D8B-8442-**EAAB23C060D3> /usr/lib/system/libunwind.**
>> dylib
>>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
>> <736ABE58-8DED-3289-A042-**C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
>> <14202FFB-C3CA-3FCC-94B0-**14611BF8692D> /usr/lib/system/libdnsinfo.**
>> dylib
>>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
>> <F497D3CE-40D9-3551-84B4-**3D5E39600737> /usr/lib/libbsm.0.dylib
>>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
>> <BAAFE0C9-BB86-3CA7-88C0-**E3CBA98DA06F> /usr/lib/system/**
>> libcommonCrypto.dylib
>>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
>> <44F403C1-660A-3543-AB9C-**3902E02F936F>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/AE.**framework/Versions/A/AE
>>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
>> 1.4.0) <C7F43889-F8BF-3CB9-AD66-**11AEFCBCEDE7>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**SearchKit.framework/Versions/**A/SearchKit
>>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
>> <4AAF0573-8632-3D06-BE32-**C5675F77638D> /usr/lib/system/libkxld.dylib
>>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
>> <73CDC482-16E3-3FC7-9BB4-**FBA2DA44DBC2> /usr/lib/libauto.dylib
>>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
>> <90D31928-F48D-3E37-874F-**220A51FD9E37> /usr/lib/libobjc.A.dylib
>>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
>> 744.18) <A60C3C9B-3764-3291-844C-**C487ACF77C2C>
>> /System/Library/Frameworks/**CoreFoundation.framework/**
>> Versions/A/CoreFoundation
>>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
>> <6838A6FD-8626-3356-BB4F-**BB4787216207>
>> /usr/lib/system/libsystem_**sandbox.dylib
>>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
>> <CC9E3394-BE16-397F-926B-**E579B60EE429> /usr/lib/system/libkeymgr.**
>> dylib
>>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
>> <365477AB-D641-389D-B8F4-**A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
>> <876573D0-E907-3566-A108-**577EAD1B6182> /usr/lib/system/libcopyfile.**
>> dylib
>>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
>> <65187C6E-3FBF-3EB8-A1AA-**389445E2984D> /usr/lib/system/libcache.dylib
>>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
>> <441776B8-9130-3893-956F-**39C85FFA644F> /usr/lib/libxslt.1.dylib
>>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices (1.2
>> - 184.4) <054F2D6F-9CFF-3EF1-9778-**25C551B616C1>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**DictionaryServices.framework/**
>> Versions/A/DictionaryServices
>>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
>> <EAA2B53E-EADE-39CF-A0EF-**FB9D4940672A> /usr/lib/libstdc++.6.dylib
>>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
>> <FD6282D8-DF3F-3842-8C2E-**CF478D2B9669> /usr/lib/libicucore.A.dylib
>>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
>> <92805328-CD36-34FF-9436-**571AB0485072> /usr/lib/system/libunc.dylib
>>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
>> 945.16) <89BD68FD-72C8-35C1-94C6-**3A07F097C50D>
>> /System/Library/Frameworks/**Foundation.framework/Versions/**C/Foundation
>>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7 -
>> 539.7) <DA7C602E-5E01-31B8-925D-**B45360CA089F>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**LaunchServices.framework/**
>> Versions/A/LaunchServices
>>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
>> <B434BE5C-25AB-3EBD-BAA7-**5304B34E3441> /usr/lib/system/libsystem_m.**
>> dylib
>>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
>> <6763BC8E-18B8-3AD9-8FFA-**B43713A7264F> /usr/lib/system/libremovefile.**
>> dylib
>>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
>> <0D99F24E-56FE-380F-B81B-**4A4C630EE587>
>> /usr/lib/system/libsystem_**network.dylib
>>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
>> <9DD44CB0-C644-35C3-8F57-**0B41B3EC147D>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/CoreServices
>>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
>> <CE0C29A3-C420-339B-ADAA-**52F4683233CC> /usr/lib/system/libcorecrypto.**
>> dylib
>>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
>> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-**E9C1A286A72D>
>> /System/Library/Frameworks/**SystemConfiguration.framework/**
>> Versions/A/SystemConfiguration
>>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration (2.5.2 -
>> 2.5.2) <C713A35A-360E-36CE-AC0A-**25C86A3F50CA>
>> /System/Library/Frameworks/**DiskArbitration.framework/**
>> Versions/A/DiskArbitration
>>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
>> <4BE2E642-A14F-340A-B482-**5BD2AEFD9C24> /usr/lib/system/libquarantine.**
>> dylib
>>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
>> <82E24B9A-7742-3DA3-9E99-**ED267D98C05E>
>> /System/Library/Frameworks/**NetFS.framework/Versions/A/**NetFS
>>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.**
>> CarbonCore
>> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-**EFEA54DADF41>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**CarbonCore.framework/Versions/**A/CarbonCore
>>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
>> <D86169F3-9F31-377A-9AF3-**DB17142052E4> /usr/lib/libc++abi.dylib
>>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage (1.1
>> - 132.3) <FD4A84B3-13A8-3C60-A59E-**25A361447A17>
>> /System/Library/**PrivateFrameworks/**GenerationalStorage.framework/**
>> Versions/A/GenerationalStorage
>>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
>> <ADE9CB98-D77D-300C-A32A-**556B7440769F> /usr/lib/libsqlite3.dylib
>>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
>> <F59367C9-C110-382B-A695-**9035A6DD387E> /usr/lib/system/libdyld.dylib
>>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
>> <2F71CAF8-6524-329E-AC56-**C506658B4C0C> /usr/lib/system/liblaunch.**
>> dylib
>>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
>> 55179.11) <73958084-5BBC-3597-A751-**7370B0C247E5>
>> /System/Library/Frameworks/**Security.framework/Versions/A/**Security
>>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
>> 707.5) <4140B1F6-7D73-33C7-B3F2-**4DB349C31AE9>
>> /System/Library/Frameworks/**CoreServices.framework/**
>> Versions/A/Frameworks/**Metadata.framework/Versions/A/**Metadata
>>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
>> <4C9EB006-FE1F-3F8F-8074-**DFD94CF2CE7B> /usr/lib/system/libsystem_c.**
>> dylib
>>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
>> 596.3.3) <3739DC8D-8610-3740-80EC-**43E130779CB8>
>> /System/Library/Frameworks/**CFNetwork.framework/Versions/**A/CFNetwork
>>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
>> <D26996BF-FC57-39EB-8829-**F63585561E09> /usr/lib/system/libdispatch.**
>> dylib
>>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib (148.3)
>> <F8681222-0969-3B10-8BCE-**C55A4B9C520C> /usr/lib/libOpenScriptingUtil.**
>> dylib
>>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
>> <47B09CB2-C636-3024-8B55-**6040F7829B4C> /usr/lib/libxml2.2.dylib
>>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
>> <616FC901-151E-38BF-B2C4-**24A351C5FAAD> /usr/lib/system/libsystem_**
>> dnssd.dylib
>>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
>> <370ED355-E516-311E-BAFD-**D80633A84BE1> /usr/lib/libxar.1.dylib
>>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
>> <4FFCA242-7F04-365F-87A6-**D4EFB89503C1> /usr/lib/system/libsystem_**
>> info.dylib
>>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
>> <C8F45864-5B58-3237-87E1-**2C258A1D73B8> /usr/lib/libpam.2.dylib
>>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit (2.0.1 -
>> 755.22.5) <1547DA6F-9793-30A2-8E92-**7368DE84D46C>
>> /System/Library/Frameworks/**IOKit.framework/Versions/A/**IOKit
>>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
>> <BF332AD9-E89F-387E-92A4-**6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
>>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
>> <F5BC7D7D-AF28-3C83-A674-**DADA48FF7810>
>> /System/Library/**PrivateFrameworks/NetAuth.**
>> framework/Versions/A/NetAuth
>>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
>> <F2F3B753-FC73-3543-8BBE-**859FDBB4D6A6>
>> /System/Library/**PrivateFrameworks/TCC.**framework/Versions/A/TCC
>>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
>> <D92DCBC3-541C-37BD-AADE-**ACC75A0C59C8>
>> /usr/lib/system/libsystem_**blocks.dylib
>>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
>> <C49275CC-835A-3207-AFBA-**8C01374927B6>
>> /usr/lib/system/libsystem_**notify.dylib
>>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.**
>> dylib
>> (8) <8548E0DC-0D2F-30B6-B045-**FE8A038E76D8>
>> /usr/lib/**libDiagnosticMessagesClient.**dylib
>>
>> External Modification Summary:
>>  Calls made by other processes targeting this process:
>>    task_for_pid: 0
>>    thread_create: 0
>>    thread_set_state: 0
>>  Calls made by this process:
>>    task_for_pid: 0
>>    thread_create: 0
>>    thread_set_state: 0
>>  Calls made by all processes on this machine:
>>    task_for_pid: 10466
>>    thread_create: 1
>>    thread_set_state: 0
>>
>> VM Region Summary:
>> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
>> swapped_out_or_unallocated=56.**3M(62%)
>> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
>> swapped_out=0K(0%) unallocated=14.6M(56%)
>>
>> REGION TYPE                      VIRTUAL
>> ===========                      =======
>> MALLOC                             17.3M
>> MALLOC guard page                    32K
>> STACK GUARD                        56.0M
>> Stack                              8192K
>> VM_ALLOCATE                           4K
>> __DATA                             4188K
>> __LINKEDIT                         55.4M
>> __TEXT                             35.5M
>> __UNICODE                           544K
>> shared memory                        12K
>> ===========                      =======
>> TOTAL                             176.8M
>>
>> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
>> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
>> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
>> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>> 0x31364A53463235363634485A2D31**47314631
>> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
>> 0x31364A53463235363634485A2D31**47314631
>> AirPort: spairport_wireless_card_type_**airport_extreme (0x14E4, 0x8D),
>> Broadcom BCM43xx 1.0 (5.106.98.100.16)
>> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial
>> ports
>> Network Service: AirPort, AirPort, en1
>> Serial ATA Device: APPLE SSD TS256A, 251 GB
>> Serial ATA Device: HL-DT-ST DVDRW  GS23N
>> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
>> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
>> 0x26500000 / 2
>> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
>> 0x04600000 / 3
>> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
>> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
>> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
>> 0x06110000 / 3
>>
>>

Re: SIGSEGV indexing jcc-compiled module in IDEA PyCharm

Posted by Andi Vajda <va...@apache.org>.
On Tue, 28 May 2013, Barry Wark wrote:

> Hi all,
>
> This is an edge case, I realize, but thought I'd throw it out there in case
> anyone has come across a solution.
>
> I'm using IDEA's PyCharm IDE (v2.7). The project virtualenv contains a
> jcc-compiled module (which the project uses). PyCharm's indexer crashes

Which project ? yours or PyCharm-the-project ?
What version of JCC was this module compiled with ?

> when indexing this module with the crash report below. When running the
> project's unit tests in PyCharm, this jcc-compiled module is imported (and
> functions) without issue. PyCharm is a Java app, and I'm sure it's doing
> some Java-Python bridging as well

If PyCharm is a Java app, what kind of python bridging is it doing ? And how 
does that involve JCC ? I'm assuming that if PyCharm is a Java module, its 
indexing would be implemented in Java too ?

> , so it's possible there's a conflict that
> is the root of this crash. If so, I'll gladly file this as a PyCharm issue,
> but though I'd run this by the JCC gurus in case they recognize what's
> going on. I've never seen the PyCharm indexer crash before on modules that
> don't use jcc.

What version(s) of JCC are involved here ?

Andi..

>
> Thanks,
> Barry
>
>
> The Crash Log:
>
> Process:         python [85552]
> Path:            /Users/USER/*/python
> Identifier:      python
> Version:         60.3
> Code Type:       X86-64 (Native)
> Parent Process:  pycharm [85481]
> User ID:         501
>
> Date/Time:       2013-05-28 13:35:21.728 -0400
> OS Version:      Mac OS X 10.8.3 (12D78)
> Report Version:  10
> Sleep/Wake UUID: 45FF7EDE-FE31-4248-B03D-1EE79118E02F
>
> Interval Since Last Report:          36408 sec
> Crashes Since Last Report:           3
> Per-App Crashes Since Last Report:   3
> Anonymous UUID:                      5340B35B-8410-1D7A-63C1-2E05A95E2522
>
> Crashed Thread:  0  Dispatch queue: com.apple.main-thread
>
> Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes: KERN_INVALID_ADDRESS at 0x00000000544857bc
>
> VM Regions Near 0x544857bc:
> -->
>    __TEXT                 0000000104484000-0000000104485000 [    4K]
> r-x/rwx SM=COW  /Users/USER/*
>
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   _ovation_api.so               0x000000010509e6c5 JArray<unsigned
> char>::JArray(long) + 37
> 1   _ovation_api.so               0x0000000105095250 _jclass*
> initializeClass<unsigned char>(bool) + 42
> 2   _ovation_api.so               0x00000001050a290e
> JCCEnv::getClass(_jclass* (*)(bool)) const + 18
> 3   _ovation_api.so               0x00000001050a6dd9
> t_descriptor___get__(t_descriptor*, _object*, _object*) + 66
> 4   org.python.python             0x00000001044a13b1 0x10448f000 + 74673
> 5   org.python.python             0x00000001044a85a9 PyEval_EvalFrameEx +
> 9244
> 6   org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
> 1934
> 7   org.python.python             0x00000001044ac8df 0x10448f000 + 121055
> 8   org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
> 9389
> 9   org.python.python             0x00000001044ac869 0x10448f000 + 120937
> 10  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
> 9389
> 11  org.python.python             0x00000001044ac869 0x10448f000 + 120937
> 12  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
> 9389
> 13  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
> 1934
> 14  org.python.python             0x00000001044ac8df 0x10448f000 + 121055
> 15  org.python.python             0x00000001044a863a PyEval_EvalFrameEx +
> 9389
> 16  org.python.python             0x00000001044a6147 PyEval_EvalCodeEx +
> 1934
> 17  org.python.python             0x00000001044a59b3 PyEval_EvalCode + 54
> 18  org.python.python             0x00000001044e1c70 0x10448f000 + 339056
> 19  org.python.python             0x00000001044e1d3c PyRun_FileExFlags + 165
> 20  org.python.python             0x00000001044e1726
> PyRun_SimpleFileExFlags + 410
> 21  org.python.python             0x0000000104505e27 Py_Main + 2715
> 22  libdyld.dylib                 0x00007fff907047e1 start + 1
>
> Thread 0 crashed with X86 Thread State (64-bit):
>  rax: 0x00007fff78dee180  rbx: 0x00007fff5b77a768  rcx: 0x0000000054485244
> rdx: 0x00000001053c55b0
>  rdi: 0x00007fff78dee180  rsi: 0x0000000000000000  rbp: 0x00007fff5b77a750
> rsp: 0x00007fff5b77a740
>   r8: 0x00007fff5b77a838   r9: 0x00007fff5b77a828  r10: 0x0000000000000002
> r11: 0x0000000000000003
>  r12: 0x000000010465c320  r13: 0x0000000104bd37a0  r14: 0x0000000000000000
> r15: 0x00007fea32eb2880
>  rip: 0x000000010509e6c5  rfl: 0x0000000000010246  cr2: 0x00000000544857bc
> Logical CPU: 1
>
> Binary Images:
>       0x104484000 -        0x104484fff +python (60.3)
> <A3CE5618-7FE0-3307-B2C1-DE2661C936B2> /Users/USER/*/python
>       0x10448f000 -        0x10459cfff  org.python.python (2.7.2 - 2.7.2)
> <E7F3EED1-E55D-32AF-9649-77C814693F6A>
> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
>       0x104b1f000 -        0x104b22fff +strop.so (60.4)
> <282D8F1C-D709-339B-86E2-CE318F0E28E6> /Users/USER/*/strop.so
>       0x104b56000 -        0x104b59fff +_struct.so (60.4)
> <FF637943-8866-37F5-8B48-B97002F502A3> /Users/USER/*/_struct.so
>       0x104b5f000 -        0x104b60fff +time.so (60.4)
> <4C0DD616-3B43-309F-B5D9-040A9126146F> /Users/USER/*/time.so
>       0x104b67000 -        0x104b6afff +_collections.so (60.4)
> <02413565-C29E-3C7A-8E01-8C9C19642F15> /Users/USER/*/_collections.so
>       0x104b70000 -        0x104b73fff +operator.so (60.4)
> <FD5EC6F3-D0F9-358F-BF08-DC4B4F2109CB> /Users/USER/*/operator.so
>       0x104b79000 -        0x104b7ffff +itertools.so (60.4)
> <36330819-32C7-3183-B213-2E1142050B3B> /Users/USER/*/itertools.so
>       0x104b88000 -        0x104b88fff +_bisect.so (60.4)
> <EE97CCA4-3D48-3CEC-B163-37E3AC0DCDA1> /Users/USER/*/_bisect.so
>       0x104b8c000 -        0x104b8dfff +_heapq.so (60.4)
> <7B91BA4D-5485-31BA-9FF9-789C6F3D0820> /Users/USER/*/_heapq.so
>       0x104b92000 -        0x104b92fff +grp.so (60.4)
> <1CF18F5D-68BA-3E03-A441-213B7EE0B553> /Users/USER/*/grp.so
>       0x104b96000 -        0x104b98fff +binascii.so (60.4)
> <81B4F9E4-1DA8-303B-A19F-78B9BF4B5248> /Users/USER/*/binascii.so
>       0x104bdf000 -        0x104be0fff +cStringIO.so (60.4)
> <C625B01B-8C34-38AF-8AF3-E888E89291D3> /Users/USER/*/cStringIO.so
>       0x104be5000 -        0x104bf6fff +_io.so (60.4)
> <B753B0B7-E615-329D-A004-73F57F8B9F19> /Users/USER/*/_io.so
>       0x104c05000 -        0x104c07fff +zlib.so (60.4)
> <9F2F691B-1510-335A-B9FE-6600523D90FB> /Users/USER/*/zlib.so
>       0x104c0c000 -        0x105349ff7 +_ovation_api.so (0)
> <49716A3A-5F27-384D-85C1-E9BC66F62859> /Users/USER/*/_ovation_api.so
>       0x1056a3000 -        0x1056a8fff  com.apple.JavaVM (14.7.0 - 14.7.0)
> <83C8C2AB-E99D-39FF-80B4-90A7DEB1DAFB>
> /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
>       0x1056b0000 -        0x1056b5fff  JavaLaunching (1)
> <E89BD701-1C4E-3A44-8C32-6F81D2B53D13>
> /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
>       0x10577c000 -        0x1057c0fff +_jcc.so (0)
> <B875FD61-1E55-3E46-A008-4D8DEB66ED59> /Users/USER/*/_jcc.so
>    0x7fff64084000 -     0x7fff640b893f  dyld (210.2.3)
> <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
>    0x7fff8779f000 -     0x7fff877a4fff  libcompiler_rt.dylib (30)
> <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
>    0x7fff87b60000 -     0x7fff87b7bff7  libsystem_kernel.dylib
> (2050.22.13) <5A961E2A-CFB8-362B-BC43-122704AEB047>
> /usr/lib/system/libsystem_kernel.dylib
>    0x7fff87c46000 -     0x7fff87cb3ff7  com.apple.datadetectorscore (4.1 -
> 269.2) <4FD4A7CE-BB00-3AAB-B7AA-AE395D5400EC>
> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
>    0x7fff88a5f000 -     0x7fff88b05ff7  com.apple.CoreServices.OSServices
> (557.6 - 557.6) <1BDB5456-0CE9-301C-99C1-8EFD0D2BFCCD>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
>    0x7fff88b06000 -     0x7fff88b13fff  libbz2.1.0.dylib (29)
> <CE9785E8-B535-3504-B392-82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
>    0x7fff88b85000 -     0x7fff88b97ff7  libz.1.dylib (43)
> <2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
>    0x7fff88d07000 -     0x7fff88d1efff  com.apple.CFOpenDirectory (10.8 -
> 151.10) <FFBBA538-00B5-334E-BA5B-C8AD6CDCDA14>
> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
>    0x7fff88f3d000 -     0x7fff88f5fff7  libxpc.dylib (140.42)
> <BBE558BD-5E55-35E4-89ED-1AA6B056D05A> /usr/lib/system/libxpc.dylib
>    0x7fff89365000 -     0x7fff893cdff7  libc++.1.dylib (65.1)
> <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
>    0x7fff893e3000 -     0x7fff893e4fff  liblangid.dylib (116)
> <864C409D-D56B-383E-9B44-A435A47F2346> /usr/lib/liblangid.dylib
>    0x7fff894be000 -     0x7fff894c4ff7  libunwind.dylib (35.1)
> <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
>    0x7fff894da000 -     0x7fff894fbff7  libCRFSuite.dylib (33)
> <736ABE58-8DED-3289-A042-C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
>    0x7fff8951e000 -     0x7fff8951fff7  libdnsinfo.dylib (453.19)
> <14202FFB-C3CA-3FCC-94B0-14611BF8692D> /usr/lib/system/libdnsinfo.dylib
>    0x7fff89975000 -     0x7fff89988ff7  libbsm.0.dylib (32)
> <F497D3CE-40D9-3551-84B4-3D5E39600737> /usr/lib/libbsm.0.dylib
>    0x7fff89a1e000 -     0x7fff89a2cfff  libcommonCrypto.dylib (60027)
> <BAAFE0C9-BB86-3CA7-88C0-E3CBA98DA06F> /usr/lib/system/libcommonCrypto.dylib
>    0x7fff89a55000 -     0x7fff89ab4fff  com.apple.AE (645.6 - 645.6)
> <44F403C1-660A-3543-AB9C-3902E02F936F>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
>    0x7fff89ab5000 -     0x7fff89b42ff7  com.apple.SearchKit (1.4.0 -
> 1.4.0) <C7F43889-F8BF-3CB9-AD66-11AEFCBCEDE7>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
>    0x7fff89b5f000 -     0x7fff89b6dff7  libkxld.dylib (2050.22.13)
> <4AAF0573-8632-3D06-BE32-C5675F77638D> /usr/lib/system/libkxld.dylib
>    0x7fff89b6e000 -     0x7fff89bbaff7  libauto.dylib (185.1)
> <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
>    0x7fff89d05000 -     0x7fff89e1d92f  libobjc.A.dylib (532.2)
> <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
>    0x7fff8a189000 -     0x7fff8a373ff7  com.apple.CoreFoundation (6.8 -
> 744.18) <A60C3C9B-3764-3291-844C-C487ACF77C2C>
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
>    0x7fff8a9b4000 -     0x7fff8a9b5ff7  libsystem_sandbox.dylib (220.2)
> <6838A6FD-8626-3356-BB4F-BB4787216207>
> /usr/lib/system/libsystem_sandbox.dylib
>    0x7fff8a9b6000 -     0x7fff8a9b6fff  libkeymgr.dylib (25)
> <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
>    0x7fff8b555000 -     0x7fff8b556ff7  libSystem.B.dylib (169.3)
> <365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
>    0x7fff8ba75000 -     0x7fff8ba7cfff  libcopyfile.dylib (89)
> <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
>    0x7fff8bac6000 -     0x7fff8bacbfff  libcache.dylib (57)
> <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
>    0x7fff8bb12000 -     0x7fff8bb3dfff  libxslt.1.dylib (11.3)
> <441776B8-9130-3893-956F-39C85FFA644F> /usr/lib/libxslt.1.dylib
>    0x7fff8bb58000 -     0x7fff8bb89ff7  com.apple.DictionaryServices (1.2
> - 184.4) <054F2D6F-9CFF-3EF1-9778-25C551B616C1>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
>    0x7fff8bbe5000 -     0x7fff8bc4efff  libstdc++.6.dylib (56)
> <EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
>    0x7fff8bec6000 -     0x7fff8c0c6fff  libicucore.A.dylib (491.11.2)
> <FD6282D8-DF3F-3842-8C2E-CF478D2B9669> /usr/lib/libicucore.A.dylib
>    0x7fff8c178000 -     0x7fff8c17aff7  libunc.dylib (25)
> <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
>    0x7fff8c1ce000 -     0x7fff8c52bff7  com.apple.Foundation (6.8 -
> 945.16) <89BD68FD-72C8-35C1-94C6-3A07F097C50D>
> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
>    0x7fff8c61e000 -     0x7fff8c6cffff  com.apple.LaunchServices (539.7 -
> 539.7) <DA7C602E-5E01-31B8-925D-B45360CA089F>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
>    0x7fff8c6d0000 -     0x7fff8c6feff7  libsystem_m.dylib (3022.6)
> <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
>    0x7fff8c9ff000 -     0x7fff8ca00ff7  libremovefile.dylib (23.2)
> <6763BC8E-18B8-3AD9-8FFA-B43713A7264F> /usr/lib/system/libremovefile.dylib
>    0x7fff8dc40000 -     0x7fff8dc4eff7  libsystem_network.dylib (77.10)
> <0D99F24E-56FE-380F-B81B-4A4C630EE587>
> /usr/lib/system/libsystem_network.dylib
>    0x7fff8dce4000 -     0x7fff8dce4fff  com.apple.CoreServices (57 - 57)
> <9DD44CB0-C644-35C3-8F57-0B41B3EC147D>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
>    0x7fff8dce5000 -     0x7fff8dd34ff7  libcorecrypto.dylib (106.2)
> <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
>    0x7fff8e138000 -     0x7fff8e189ff7  com.apple.SystemConfiguration
> (1.12.2 - 1.12.2) <A4341BBD-A330-3A57-8891-E9C1A286A72D>
> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
>    0x7fff8e18a000 -     0x7fff8e190fff  com.apple.DiskArbitration (2.5.2 -
> 2.5.2) <C713A35A-360E-36CE-AC0A-25C86A3F50CA>
> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
>    0x7fff8ecdf000 -     0x7fff8ece1fff  libquarantine.dylib (52)
> <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
>    0x7fff8ef4b000 -     0x7fff8ef52fff  com.apple.NetFS (5.0 - 4.0)
> <82E24B9A-7742-3DA3-9E99-ED267D98C05E>
> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
>    0x7fff8f92c000 -     0x7fff8fc43ff7  com.apple.CoreServices.CarbonCore
> (1037.5 - 1037.5) <731D8F92-1C52-3613-BA01-EFEA54DADF41>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
>    0x7fff8ff12000 -     0x7fff8ff37ff7  libc++abi.dylib (26)
> <D86169F3-9F31-377A-9AF3-DB17142052E4> /usr/lib/libc++abi.dylib
>    0x7fff90432000 -     0x7fff90449fff  com.apple.GenerationalStorage (1.1
> - 132.3) <FD4A84B3-13A8-3C60-A59E-25A361447A17>
> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
>    0x7fff90604000 -     0x7fff90701fff  libsqlite3.dylib (138.1)
> <ADE9CB98-D77D-300C-A32A-556B7440769F> /usr/lib/libsqlite3.dylib
>    0x7fff90702000 -     0x7fff90705ff7  libdyld.dylib (210.2.3)
> <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
>    0x7fff90905000 -     0x7fff9090dfff  liblaunch.dylib (442.26.2)
> <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
>    0x7fff90911000 -     0x7fff90be2ff7  com.apple.security (7.0 -
> 55179.11) <73958084-5BBC-3597-A751-7370B0C247E5>
> /System/Library/Frameworks/Security.framework/Versions/A/Security
>    0x7fff90be3000 -     0x7fff90c64fff  com.apple.Metadata (10.7.0 -
> 707.5) <4140B1F6-7D73-33C7-B3F2-4DB349C31AE9>
> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
>    0x7fff918a4000 -     0x7fff91970ff7  libsystem_c.dylib (825.26)
> <4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
>    0x7fff91cd2000 -     0x7fff91e47fff  com.apple.CFNetwork (596.3.3 -
> 596.3.3) <3739DC8D-8610-3740-80EC-43E130779CB8>
> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
>    0x7fff9288e000 -     0x7fff928a3ff7  libdispatch.dylib (228.23)
> <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
>    0x7fff92c2f000 -     0x7fff92c2ffff  libOpenScriptingUtil.dylib (148.3)
> <F8681222-0969-3B10-8BCE-C55A4B9C520C> /usr/lib/libOpenScriptingUtil.dylib
>    0x7fff92f8a000 -     0x7fff93087ff7  libxml2.2.dylib (22.3)
> <47B09CB2-C636-3024-8B55-6040F7829B4C> /usr/lib/libxml2.2.dylib
>    0x7fff93a97000 -     0x7fff93a9fff7  libsystem_dnssd.dylib (379.37)
> <616FC901-151E-38BF-B2C4-24A351C5FAAD> /usr/lib/system/libsystem_dnssd.dylib
>    0x7fff93aa0000 -     0x7fff93aafff7  libxar.1.dylib (105)
> <370ED355-E516-311E-BAFD-D80633A84BE1> /usr/lib/libxar.1.dylib
>    0x7fff93ab0000 -     0x7fff93ae6fff  libsystem_info.dylib (406.17)
> <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
>    0x7fff93b14000 -     0x7fff93b18fff  libpam.2.dylib (20)
> <C8F45864-5B58-3237-87E1-2C258A1D73B8> /usr/lib/libpam.2.dylib
>    0x7fff93ba4000 -     0x7fff93c12fff  com.apple.framework.IOKit (2.0.1 -
> 755.22.5) <1547DA6F-9793-30A2-8E92-7368DE84D46C>
> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
>    0x7fff9400b000 -     0x7fff94011fff  libmacho.dylib (829)
> <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
>    0x7fff94012000 -     0x7fff9401fff7  com.apple.NetAuth (4.0 - 4.0)
> <F5BC7D7D-AF28-3C83-A674-DADA48FF7810>
> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
>    0x7fff941cf000 -     0x7fff941d3ff7  com.apple.TCC (1.0 - 1)
> <F2F3B753-FC73-3543-8BBE-859FDBB4D6A6>
> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
>    0x7fff941d4000 -     0x7fff941d5fff  libsystem_blocks.dylib (59)
> <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8>
> /usr/lib/system/libsystem_blocks.dylib
>    0x7fff941f4000 -     0x7fff941fffff  libsystem_notify.dylib (98.5)
> <C49275CC-835A-3207-AFBA-8C01374927B6>
> /usr/lib/system/libsystem_notify.dylib
>    0x7fff9471e000 -     0x7fff9471ffff  libDiagnosticMessagesClient.dylib
> (8) <8548E0DC-0D2F-30B6-B045-FE8A038E76D8>
> /usr/lib/libDiagnosticMessagesClient.dylib
>
> External Modification Summary:
>  Calls made by other processes targeting this process:
>    task_for_pid: 0
>    thread_create: 0
>    thread_set_state: 0
>  Calls made by this process:
>    task_for_pid: 0
>    thread_create: 0
>    thread_set_state: 0
>  Calls made by all processes on this machine:
>    task_for_pid: 10466
>    thread_create: 1
>    thread_set_state: 0
>
> VM Region Summary:
> ReadOnly portion of Libraries: Total=90.9M resident=34.5M(38%)
> swapped_out_or_unallocated=56.3M(62%)
> Writable regions: Total=26.2M written=9932K(37%) resident=11.6M(44%)
> swapped_out=0K(0%) unallocated=14.6M(56%)
>
> REGION TYPE                      VIRTUAL
> ===========                      =======
> MALLOC                             17.3M
> MALLOC guard page                    32K
> STACK GUARD                        56.0M
> Stack                              8192K
> VM_ALLOCATE                           4K
> __DATA                             4188K
> __LINKEDIT                         55.4M
> __TEXT                             35.5M
> __UNICODE                           544K
> shared memory                        12K
> ===========                      =======
> TOTAL                             176.8M
>
> Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2
> Duo, 2.26 GHz, 4 GB, SMC 1.47f2
> Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
> Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
> 0x31364A53463235363634485A2D3147314631
> Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C,
> 0x31364A53463235363634485A2D3147314631
> AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D),
> Broadcom BCM43xx 1.0 (5.106.98.100.16)
> Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial
> ports
> Network Service: AirPort, AirPort, en1
> Serial ATA Device: APPLE SSD TS256A, 251 GB
> Serial ATA Device: HL-DT-ST DVDRW  GS23N
> USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24400000 / 2
> USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403,
> 0x26500000 / 2
> USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0236,
> 0x04600000 / 3
> USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
> USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
> USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8213,
> 0x06110000 / 3
>