Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings segfault on OS X El Capitan #227

Open
SmithSamuelM opened this issue Dec 4, 2015 · 3 comments
Open

Python bindings segfault on OS X El Capitan #227

SmithSamuelM opened this issue Dec 4, 2015 · 3 comments

Comments

@SmithSamuelM
Copy link

I installed hyperdex with python using home-brew on OS X 10.11.1.

In python 2.7 installed with home-brew running

from hyperdex.admin import Admin

SegFaults

@SmithSamuelM
Copy link
Author

Same thing happens for

from hyperdex.client import Client

Process: Python [9778]
Path: /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.10 (2.7.10)
Code Type: X86-64 (Native)
Parent Process: bash [58033]
Responsible: Terminal [3313]
User ID: 2020

Date/Time: 2015-12-04 12:05:26.929 -0700
OS Version: Mac OS X 10.11.1 (15B42)
Report Version: 11
Anonymous UUID: 42A8B9B0-E6D6-E87A-F91E-AED498E7CC9D

Sleep/Wake UUID: C247D090-2553-4645-94B8-DB94E8AB7E57

Time Awake Since Boot: 590000 seconds
Time Since Wake: 320000 seconds

System Integrity Protection: enabled

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

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

VM Regions Near 0x8:
-->
__TEXT 0000000104ce0000-0000000104ce2000 [ 8K] r-x/rwx SM=COW /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.python.python 0x00000001053ec889 PyImport_AddModule + 24
1 client.so 0x000000010527c748 initclient + 348
2 org.python.python 0x0000000104d80327 PyImport_LoadDynamicModule + 140
3 org.python.python 0x0000000104d80003 import_submodule + 270
4 org.python.python 0x0000000104d7fbc6 load_next + 284
5 org.python.python 0x0000000104d7db93 PyImport_ImportModuleLevel + 507
6 org.python.python 0x0000000104d63641 builtin___import
_ + 135
7 org.python.python 0x0000000104ceead7 PyObject_Call + 99
8 org.python.python 0x0000000104d6de2e PyEval_CallObjectWithKeywords + 93
9 org.python.python 0x0000000104d6a274 PyEval_EvalFrameEx + 8334
10 org.python.python 0x0000000104d67fb4 PyEval_EvalCodeEx + 1387
11 org.python.python 0x0000000104d67a43 PyEval_EvalCode + 54
12 org.python.python 0x0000000104d87816 run_mod + 53
13 org.python.python 0x0000000104d87632 PyRun_InteractiveOneFlags + 377
14 org.python.python 0x0000000104d8711e PyRun_InteractiveLoopFlags + 192
15 org.python.python 0x0000000104d86fc8 PyRun_AnyFileExFlags + 60
16 org.python.python 0x0000000104d98e09 Py_Main + 3057
17 libdyld.dylib 0x00007fff91d8d5ad start + 1

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000001 rdx: 0x0000000000000003
rdi: 0x00000001052cccb4 rsi: 0x0000000000000010 rbp: 0x00007fff5af1f1f0 rsp: 0x00007fff5af1f1d0
r8: 0x000000010550f030 r9: 0x0000000000000000 r10: 0x0000000000001002 r11: 0x00000000000ea279
r12: 0x0000000000000000 r13: 0x0000000000000001 r14: 0x00000001052cccb4 r15: 0x8d00cd6658daf867
rip: 0x00000001053ec889 rfl: 0x0000000000010206 cr2: 0x0000000000000008

Logical CPU: 4
Error Code: 0x00000004
Trap Number: 14

Binary Images:
0x104ce0000 - 0x104ce1fff +org.python.python (2.7.10 - 2.7.10) <45F60428-1330-3E97-942D-4B32CE803C41> /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x104ce4000 - 0x104dd5fff +org.python.python (2.7.10, [c] 2001-2015 Python Software Foundation. - 2.7.10) <5D0AE21E-77B6-345E-B3A2-4DD5429C2327> /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/Python
0x1051b7000 - 0x1051b9fff +_locale.so (0) <8C25BC60-39E5-3254-8186-909944B8174C> /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
0x1051fc000 - 0x1051feff7 +readline.so (0) /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so
0x105204000 - 0x105224ff7 +libreadline.6.dylib (0) /usr/local/opt/readline/lib/libreadline.6.dylib
0x10527b000 - 0x1052ccff7 +client.so (0) /usr/local/lib/python2.7/site-packages/hyperdex/client.so
0x1052e8000 - 0x105335ff7 +libhyperdex-client.0.dylib (0) <8C1DB4C2-261D-3492-941A-4F409D77A14E> /usr/local/Cellar/hyperdex/1.4.4/lib/libhyperdex-client.0.dylib
0x105355000 - 0x105446ff7 org.python.python (2.7.10 - 2.7.10) <5A7838D3-24D4-395B-BE96-ADD007C86E55> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x1054ad000 - 0x1054c5ff7 +libreplicant.1.dylib (0) <156C2E58-7942-33E1-97FF-2C3E233A9DA6> /usr/local/opt/replicant/lib/libreplicant.1.dylib
0x1054d1000 - 0x1054e3ff7 +libbusybee.2.dylib (0) /usr/local/opt/busybee/lib/libbusybee.2.dylib
0x1054ec000 - 0x1054f2fff +libe.1.dylib (0) <8A40193B-AFCF-3D06-B9BD-05845C5A8669> /usr/local/opt/libe/lib/libe.1.dylib
0x1054f9000 - 0x1054fefff +libjson-c.2.dylib (0) /usr/local/opt/json-c/lib/libjson-c.2.dylib
0x105503000 - 0x10550afff +libpopt.0.dylib (0) /usr/local/opt/popt/lib/libpopt.0.dylib
0x7fff66fec000 - 0x7fff67022f5f dyld (360.17) <03673B53-B8B7-34D1-ADCE-F449E78E39CC> /usr/lib/dyld
0x7fff8782b000 - 0x7fff8787eff7 libc++.1.dylib (120.1) <54190E1B-EE49-3D6D-AC29-2813D7380BA5> /usr/lib/libc++.1.dylib
0x7fff8797e000 - 0x7fff8797eff7 liblaunch.dylib (755.1.19) <7EC0F297-43CC-3D11-B46B-7E72E372648A> /usr/lib/system/liblaunch.dylib
0x7fff882a2000 - 0x7fff882a6fff libcache.dylib (75) <4948E2C8-867F-3E9D-AAE7-2F30F0B345C6> /usr/lib/system/libcache.dylib
0x7fff882c1000 - 0x7fff882c2ffb libSystem.B.dylib (1225.1.1) <59F79CA0-5D86-359D-A235-4F257409109E> /usr/lib/libSystem.B.dylib
0x7fff882c3000 - 0x7fff886266d7 libobjc.A.dylib (680) <7C5FAD04-2C01-3ED6-AA40-78925C12A456> /usr/lib/libobjc.A.dylib
0x7fff8879b000 - 0x7fff8879dff7 libsystem_configuration.dylib (801.10.2) <93D5FB9A-CC7C-3672-80D8-7A1C4805204B> /usr/lib/system/libsystem_configuration.dylib
0x7fff891ea000 - 0x7fff891ebfff libDiagnosticMessagesClient.dylib (100) /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff89757000 - 0x7fff89bccff7 com.apple.CoreFoundation (6.9 - 1255.1) <86B26482-C917-34F2-80D8-02911B6001E0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff89ce1000 - 0x7fff89d0afff libxpc.dylib (755.1.19) <3E09C275-A33B-357A-B0AB-A2DDF88EC9D5> /usr/lib/system/libxpc.dylib
0x7fff8ae93000 - 0x7fff8aec4ff7 libncurses.5.4.dylib (46) <766F2188-F523-3FAA-AC1F-49447F09E133> /usr/lib/libncurses.5.4.dylib
0x7fff8c36f000 - 0x7fff8c378ff7 libsystem_pthread.dylib (137.1.1) <1373D0F1-C6CA-364E-A6BA-8BDBD0D34670> /usr/lib/system/libsystem_pthread.dylib
0x7fff8cd2a000 - 0x7fff8cf37fff libicucore.A.dylib (551.30) /usr/lib/libicucore.A.dylib
0x7fff8f34d000 - 0x7fff8f34efff libsystem_blocks.dylib (65) <1B4F1F10-823E-3781-8162-6884D14DF0D6> /usr/lib/system/libsystem_blocks.dylib
0x7fff8f4ae000 - 0x7fff8f4b0fff libsystem_coreservices.dylib (19) <692631A0-1923-32CA-9BD5-044B1382FFDE> /usr/lib/system/libsystem_coreservices.dylib
0x7fff9072e000 - 0x7fff90736fff libcopyfile.dylib (127) /usr/lib/system/libcopyfile.dylib
0x7fff90764000 - 0x7fff90780ff7 libsystem_malloc.dylib (67) <1B57A614-3D60-3F87-876F-7DB4AF38120F> /usr/lib/system/libsystem_malloc.dylib
0x7fff90b29000 - 0x7fff90b52fff libc++abi.dylib (125) /usr/lib/libc++abi.dylib
0x7fff90c94000 - 0x7fff90cdaff7 libauto.dylib (186) <460B0167-C89B-37EC-823C-52F684B31C26> /usr/lib/libauto.dylib
0x7fff90fd5000 - 0x7fff91062fe7 libsystem_c.dylib (1081.1.3) /usr/lib/system/libsystem_c.dylib
0x7fff91111000 - 0x7fff9113aff7 libsystem_info.dylib (476) <65D0643A-C8AE-3E8D-9F6E-E4AD823F16B2> /usr/lib/system/libsystem_info.dylib
0x7fff91d8a000 - 0x7fff91d8dffb libdyld.dylib (360.17) <99396189-E53A-3A78-BC49-449236DA7CFF> /usr/lib/system/libdyld.dylib
0x7fff91dfb000 - 0x7fff91e59fff libsystem_network.dylib (582.1.4) /usr/lib/system/libsystem_network.dylib
0x7fff91e7c000 - 0x7fff91ef3fc7 libcorecrypto.dylib (334) <4E1B969F-8449-3B21-9880-51AD58E25AA6> /usr/lib/system/libcorecrypto.dylib
0x7fff92692000 - 0x7fff926bffff libdispatch.dylib (500.10.1) <438F4595-0731-34A2-ACAD-60121A76D1FF> /usr/lib/system/libdispatch.dylib
0x7fff92780000 - 0x7fff9278bff7 libcommonCrypto.dylib (60074) /usr/lib/system/libcommonCrypto.dylib
0x7fff9280b000 - 0x7fff9280eff7 libsystem_sandbox.dylib (459.10.4) /usr/lib/system/libsystem_sandbox.dylib
0x7fff93c83000 - 0x7fff93c9afff libsystem_asl.dylib (322) <97D794DA-8CE5-3676-AC5E-364F6D172BDA> /usr/lib/system/libsystem_asl.dylib
0x7fff947aa000 - 0x7fff9489cff7 libiconv.2.dylib (44) <82529E3B-0485-344C-8075-83C7725D6A6F> /usr/lib/libiconv.2.dylib
0x7fff94d12000 - 0x7fff94d1affb libsystem_dnssd.dylib (624.10.1) <21D63EAB-27BE-3F41-B1D4-604BE7F4C9BA> /usr/lib/system/libsystem_dnssd.dylib
0x7fff951c3000 - 0x7fff951c8ff3 libunwind.dylib (35.3) /usr/lib/system/libunwind.dylib
0x7fff95425000 - 0x7fff95427ff7 libquarantine.dylib (80) <1693C5FE-EA0A-3122-85EB-7950ECC7435A> /usr/lib/system/libquarantine.dylib
0x7fff9546e000 - 0x7fff95476fff libsystem_networkextension.dylib (384.1.2) <4736FCC5-9DBA-31F4-AAC8-CD0A177CF502> /usr/lib/system/libsystem_networkextension.dylib
0x7fff95477000 - 0x7fff9547ffef libsystem_platform.dylib (73.1.1) <3F4D2390-E3DE-3C24-A515-95DFAC8671C4> /usr/lib/system/libsystem_platform.dylib
0x7fff95485000 - 0x7fff95496ff7 libsystem_trace.dylib (200) <1D289F35-BFA2-3B9E-BDF9-20F34F9A01D4> /usr/lib/system/libsystem_trace.dylib
0x7fff9555f000 - 0x7fff95568ffb libsystem_notify.dylib (149) <56ABC155-CB99-30A8-A8B1-C204B5615092> /usr/lib/system/libsystem_notify.dylib
0x7fff957ae000 - 0x7fff957b5ff7 libcompiler_rt.dylib (62) <253B36E5-572D-377D-AE99-A02CE32590E5> /usr/lib/system/libcompiler_rt.dylib
0x7fff95d67000 - 0x7fff95d78fff libz.1.dylib (60) <43317BEA-ACA2-34C2-AF37-902AA926C83A> /usr/lib/libz.1.dylib
0x7fff960ec000 - 0x7fff960ecff7 libunc.dylib (29) /usr/lib/system/libunc.dylib
0x7fff966c4000 - 0x7fff966d8fff libsystem_coretls.dylib (82) <21EDACF1-D9B3-3086-9821-60EB75E7F965> /usr/lib/system/libsystem_coretls.dylib
0x7fff96862000 - 0x7fff96863fff libsystem_secinit.dylib (20) <932ED582-E80F-39DA-B0FA-F1BC5F1AD2F8> /usr/lib/system/libsystem_secinit.dylib
0x7fff96908000 - 0x7fff96908ff7 libkeymgr.dylib (28) <47080280-8B57-3D75-8A20-9E100864DE27> /usr/lib/system/libkeymgr.dylib
0x7fff97911000 - 0x7fff97916ff7 libmacho.dylib (875.1) /usr/lib/system/libmacho.dylib
0x7fff981a5000 - 0x7fff981c3fff libsystem_kernel.dylib (3247.10.11) /usr/lib/system/libsystem_kernel.dylib
0x7fff994b4000 - 0x7fff994b5ffb libremovefile.dylib (41) /usr/lib/system/libremovefile.dylib
0x7fff9959d000 - 0x7fff995ccfc3 libsystem_m.dylib (3105) <07D50372-30ED-3B03-9FA0-0662BF8F0098> /usr/lib/system/libsystem_m.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: 1111725
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=109.7M resident=0K(0%) swapped_out_or_unallocated=109.7M(100%)
Writable regions: Total=42.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=42.4M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 2048K 2
Kernel Alloc Once 4K 2
MALLOC 31.9M 12
MALLOC guard page 16K 4
STACK GUARD 56.0M 2
Stack 8192K 2
VM_ALLOCATE 260K 3
__DATA 3572K 63
__LINKEDIT 91.6M 16
__TEXT 18.1M 60
__UNICODE 552K 2
shared memory 8K 3
=========== ======= =======
TOTAL 211.9M 159

Model: MacBookPro11,3, BootROM MBP112.0138.B16, 4 processors, Intel Core i7, 2.8 GHz, 16 GB,

@SmithSamuelM
Copy link
Author

Any one else trying to get this to work on OS X El Capitain

@rescrv
Copy link
Owner

rescrv commented Dec 9, 2015

Have you tried doing a clean build, wiping all of HyperDex and reinstalling? It seems to be segfaulting when importing in Python, which I've seen happen with conflicting shared libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants