Open Kirkman opened 8 years ago
I should add that all the compiled C demos in /examples/
work just fine.
I tried installing on a second Mac, this one a MacBook running OS X 10.9.5. But again the example Python scripts fail with segmentation fault 11.
Like before, I used homebrew to install libcaca, downloaded the Github repo, ran python setup.py install
in the libcaca /python/
directory, then tried to run one of the example Python scripts.
Hi @Kirkman,
Can you try this fix to see if it correct your issue: https://github.com/cacalabs/libcaca/pull/16
Thanks,
Just tried and getting the same thing.
Here is my dump:
Process: Python [22178]
Path: /System/Library/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 [29238]
Responsible: Python [22178]
User ID: 501
PlugIn Path: /usr/local/lib/libcaca.dylib
PlugIn Identifier: libcaca.dylib
PlugIn Version: ??? (0)
Date/Time: 2016-09-09 14:17:30.577 -0400
OS Version: Mac OS X 10.12 (16A313a)
Report Version: 12
Anonymous UUID: 2F399FDB-22DA-ED92-D237-6EE0E5437B30
Time Awake Since Boot: 130000 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 0x000000002e737d78
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x2e737d78:
-->
__TEXT 000000010f5f6000-000000010f5f7000 [ 4K] r-x/rwx SM=COW /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libcaca.dylib 0x000000010f9d1e54 caca_set_color_ansi + 23
1 libffi.dylib 0x00007fffac84df1c ffi_call_unix64 + 76
2 libffi.dylib 0x00007fffac84e7b1 ffi_call + 937
3 _ctypes.so 0x000000010f96179a _ctypes_callproc + 591
4 _ctypes.so 0x000000010f95bde9 0x10f959000 + 11753
5 org.python.python 0x000000010f60875b PyObject_Call + 99
6 org.python.python 0x000000010f6837eb PyEval_EvalFrameEx + 11223
7 org.python.python 0x000000010f6874d5 0x10f5fe000 + 562389
8 org.python.python 0x000000010f683eae PyEval_EvalFrameEx + 12954
9 org.python.python 0x000000010f6874d5 0x10f5fe000 + 562389
10 org.python.python 0x000000010f683eae PyEval_EvalFrameEx + 12954
11 org.python.python 0x000000010f680a1e PyEval_EvalCodeEx + 1617
12 org.python.python 0x000000010f6803c7 PyEval_EvalCode + 48
13 org.python.python 0x000000010f6a063d 0x10f5fe000 + 665149
14 org.python.python 0x000000010f6a06e0 PyRun_FileExFlags + 133
15 org.python.python 0x000000010f6a0231 PyRun_SimpleFileExFlags + 702
16 org.python.python 0x000000010f6b1bca Py_Main + 3094
17 libdyld.dylib 0x00007fffad7ed255 start + 1
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000800000 rbx: 0x12bf680b7ba100da rcx: 0x0000000000000100 rdx: 0x0000000000000020
rdi: 0x000000002e737ca0 rsi: 0x0000000000000010 rbp: 0x00007fff50609090 rsp: 0x00007fff50609088
r8: 0x0000000000000000 r9: 0x000000010ff1e1d0 r10: 0x00007fff50608fe0 r11: 0x000000010f9d1e3d
r12: 0xfffffffffffffff9 r13: 0x0000000000000003 r14: 0x12bf680b7ba100da r15: 0x00007fff506091c0
rip: 0x000000010f9d1e54 rfl: 0x0000000000010206 cr2: 0x000000002e737d78
Logical CPU: 6
Error Code: 0x00000004
Trap Number: 14
Binary Images:
0x10f5f6000 - 0x10f5f6fff org.python.python (2.7.10 - 2.7.10) <0ACA1F25-3364-33EF-A2A3-BD48E5B45A6D> /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x10f5fe000 - 0x10f6effff org.python.python (2.7.10 - 2.7.10) <2DDEACFA-E4A4-3E8E-BD4B-70F0694ADC0C> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x10f8bb000 - 0x10f8bcfff _locale.so (97) <2DECC7D7-CD2B-3549-8367-ECC427DCFA59> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
0x10f941000 - 0x10f943fff zlib.so (97) <D162243E-9C6D-3B25-8123-F4D255E522A8> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so
0x10f949000 - 0x10f94cfff operator.so (97) <5F936CEA-899E-308E-9A97-5BFE983B35C1> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
0x10f953000 - 0x10f954fff _functools.so (97) <AEF12822-229B-3101-AFFA-1459CA7F0BF5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_functools.so
0x10f959000 - 0x10f967ffb _ctypes.so (97) <427EDB64-E8E1-3DA7-AB9B-4DFAC4C949A5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
0x10f973000 - 0x10f976ffb _struct.so (97) <3B27B66F-3079-3ADA-9868-857BA862D8D8> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
0x10f9be000 - 0x10f9c2fff itertools.so (97) <CA822FF2-D69D-3188-9916-F3403D372A25> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
0x10f9cc000 - 0x10fa85ff7 +libcaca.dylib (0) <BCABAEDD-F2E7-3E30-B95E-AD835B9CACC5> /usr/local/lib/libcaca.dylib
0x10fb8d000 - 0x10fb8effb time.so (97) <A77D5D26-8FE2-3266-BAA8-DD232CCD7CB5> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
0x10fb95000 - 0x10fb96fff cStringIO.so (97) <B5C21B8F-B5C6-31F4-8E39-D46356821E3C> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
0x10fbdc000 - 0x10fbdeff7 _collections.so (97) <FC4AB6CD-B192-373F-AA8C-629C0DA7C148> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
0x10fbe5000 - 0x10fbe6fff _heapq.so (97) <8020D7C6-2255-3AC2-894E-BCB5769A973E> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
0x10fbec000 - 0x10fbefff7 math.so (97) <49AC0A82-3D72-37B0-900D-04771A30DB7B> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
0x10fbf6000 - 0x10fc33ff7 +_imaging.so (???) <FA1B1B65-6704-319B-B483-8E02EE460CD4> /Library/Python/2.7/site-packages/PIL/_imaging.so
0x10fc57000 - 0x10fcabff7 +libjpeg.9.dylib (0) <5D095ADF-D8DD-376A-82E1-71C8D0905EBC> /Library/Python/2.7/site-packages/PIL/.dylibs/libjpeg.9.dylib
0x10fcb3000 - 0x10fcf9fff +libopenjp2.2.1.0.dylib (0) <DA5137E2-557A-34A4-932C-9577503FC0C3> /Library/Python/2.7/site-packages/PIL/.dylibs/libopenjp2.2.1.0.dylib
0x10fd03000 - 0x10fd1eff7 +libz.1.2.8.dylib (0) <CF43B422-B0DF-381C-93BC-47F3FA438247> /Library/Python/2.7/site-packages/PIL/.dylibs/libz.1.2.8.dylib
0x10fd22000 - 0x10fdafff7 +libtiff.5.dylib (0) <C4D37E16-12DF-39B9-85FD-C9C3BEF1B504> /Library/Python/2.7/site-packages/PIL/.dylibs/libtiff.5.dylib
0x10fdc0000 - 0x10fdeffff +liblzma.5.dylib (0) <871AE05D-013C-370E-B2A1-3EB4F1C2C3E0> /Library/Python/2.7/site-packages/PIL/.dylibs/liblzma.5.dylib
0x10fe36000 - 0x10fe45ffb _io.so (97) <C7ED26BC-C940-3081-BF16-A7292249A7C7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so
0x10fe57000 - 0x10fe5bfff array.so (97) <8729058D-CEA6-371A-88D1-4F6F4F275E30> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/array.so
0x10ff22000 - 0x10ff25fff strop.so (97) <06128E54-E932-38EB-A2D0-AFF0CA8FE7D7> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/strop.so
0x11d236000 - 0x11d2731c7 dyld (421.1) <A525EAEA-AF86-30C2-B360-3D093B4F0828> /usr/lib/dyld
0x7fff98734000 - 0x7fff98bcdfef com.apple.CoreFoundation (6.9 - 1348.1) <4F7826EC-CC36-38B4-A8F3-DC57BF00EE9B> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fffac01b000 - 0x7fffac01cff3 libDiagnosticMessagesClient.dylib (102) <422911A4-E273-3E88-BFC4-DF6470E48242> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fffac259000 - 0x7fffac25aff3 libSystem.B.dylib (1238) <A99A4507-D2DF-36D2-B67B-75B6C6D006FE> /usr/lib/libSystem.B.dylib
0x7fffac36a000 - 0x7fffac36aff3 libauto.dylib (187) <5BBF6A00-CC76-389D-84E7-CA88EDADE683> /usr/lib/libauto.dylib
0x7fffac38b000 - 0x7fffac3e1ff7 libc++.1.dylib (307.4) <BEE86868-F831-384C-919E-2B286ACFE87C> /usr/lib/libc++.1.dylib
0x7fffac3e2000 - 0x7fffac40cfff libc++abi.dylib (307.2) <1CEF8ABB-7E6D-3C2F-8E0A-E7884478DD23> /usr/lib/libc++abi.dylib
0x7fffac84d000 - 0x7fffac84efff libffi.dylib (18.1) <49D03682-E111-351C-8266-4519B3B82BE9> /usr/lib/libffi.dylib
0x7fffac948000 - 0x7fffacb6dfff libicucore.A.dylib (57131.0.1) <6B7A93A1-CC98-3671-B2FA-CDC0587459B7> /usr/lib/libicucore.A.dylib
0x7ffface50000 - 0x7ffface81ff3 libncurses.5.4.dylib (51) <6B88562D-86DB-3EFA-8C55-0148C30DC642> /usr/lib/libncurses.5.4.dylib
0x7fffacefb000 - 0x7fffad2cbd97 libobjc.A.dylib (706) <F9AFE665-A3A2-3285-9495-19803A565861> /usr/lib/libobjc.A.dylib
0x7fffad6f1000 - 0x7fffad702ff3 libz.1.dylib (67) <46E3FFA2-4328-327A-8D34-A03E20BFFB8E> /usr/lib/libz.1.dylib
0x7fffad711000 - 0x7fffad715ff7 libcache.dylib (79) <84E55656-FDA9-3B29-9E4F-BE31B2C0AA3C> /usr/lib/system/libcache.dylib
0x7fffad716000 - 0x7fffad720fff libcommonCrypto.dylib (60092.1.2) <79F738D8-0AD7-3DEA-AF80-E0F8B90B74E3> /usr/lib/system/libcommonCrypto.dylib
0x7fffad721000 - 0x7fffad728fff libcompiler_rt.dylib (62) <486BDE52-81B4-3446-BD72-23977CAE556F> /usr/lib/system/libcompiler_rt.dylib
0x7fffad729000 - 0x7fffad731fff libcopyfile.dylib (138) <0DA49B77-56EC-362D-98FF-FA78CFD986D6> /usr/lib/system/libcopyfile.dylib
0x7fffad732000 - 0x7fffad7b4ff3 libcorecrypto.dylib (442.1.3) <1CA8B679-810E-3C04-945A-4AC19372CDC7> /usr/lib/system/libcorecrypto.dylib
0x7fffad7b5000 - 0x7fffad7e7fff libdispatch.dylib (703.1.4) <12B1D95B-283D-325D-85AB-29A2FFD36987> /usr/lib/system/libdispatch.dylib
0x7fffad7e8000 - 0x7fffad7edff3 libdyld.dylib (421.1) <930EE92E-A376-3F4E-AB64-9E318655B30C> /usr/lib/system/libdyld.dylib
0x7fffad7ee000 - 0x7fffad7eeffb libkeymgr.dylib (28) <09CD7CA6-46D2-3A9F-B9F1-7C4CA5CA0D68> /usr/lib/system/libkeymgr.dylib
0x7fffad7fc000 - 0x7fffad7fcfff liblaunch.dylib (972.1.5) <DC31FDEA-FD81-335E-BAA8-5A7395D20772> /usr/lib/system/liblaunch.dylib
0x7fffad7fd000 - 0x7fffad802fff libmacho.dylib (894) <D70EE1FC-2518-3C5B-AE50-421C42D29847> /usr/lib/system/libmacho.dylib
0x7fffad803000 - 0x7fffad805ff3 libquarantine.dylib (85) <78EF62D8-C890-3FC0-937A-C2FD8CEF8992> /usr/lib/system/libquarantine.dylib
0x7fffad806000 - 0x7fffad807ffb libremovefile.dylib (45) <C4FC07FF-ED86-382E-B06F-33C34718080C> /usr/lib/system/libremovefile.dylib
0x7fffad808000 - 0x7fffad820ff7 libsystem_asl.dylib (349.1.1) <F0987490-8427-367F-B302-A05A7D61FEBF> /usr/lib/system/libsystem_asl.dylib
0x7fffad821000 - 0x7fffad821ff7 libsystem_blocks.dylib (67) <B8C3701D-5A91-3D35-999D-2DC8D5393525> /usr/lib/system/libsystem_blocks.dylib
0x7fffad822000 - 0x7fffad8affe7 libsystem_c.dylib (1158.1.2) <5F260836-48E4-3F57-8553-62D2DA228A1F> /usr/lib/system/libsystem_c.dylib
0x7fffad8b0000 - 0x7fffad8b3ffb libsystem_configuration.dylib (888.1.2) <67BB9D8B-2430-38AD-81A7-F0EC924B2590> /usr/lib/system/libsystem_configuration.dylib
0x7fffad8b4000 - 0x7fffad8b7fff libsystem_coreservices.dylib (41.1) <11F22E6C-0DCB-3699-A4F0-C99E301E56E9> /usr/lib/system/libsystem_coreservices.dylib
0x7fffad8b8000 - 0x7fffad8d0ffb libsystem_coretls.dylib (121.1.1) <8F7E9B12-400D-3276-A9C5-4546B0258554> /usr/lib/system/libsystem_coretls.dylib
0x7fffad8d1000 - 0x7fffad8d7fff libsystem_dnssd.dylib (765.1.2) <EEDE854A-97AC-3437-BFB0-4C5CE86F2E73> /usr/lib/system/libsystem_dnssd.dylib
0x7fffad8d8000 - 0x7fffad901fff libsystem_info.dylib (503) <C686B834-5E7D-382C-AF6E-44AB78EE83E2> /usr/lib/system/libsystem_info.dylib
0x7fffad902000 - 0x7fffad924ff7 libsystem_kernel.dylib (3789.1.31) <45619BB3-076F-3076-9638-169062838904> /usr/lib/system/libsystem_kernel.dylib
0x7fffad925000 - 0x7fffad96cfe7 libsystem_m.dylib (3121.4) <E13F0D70-D2B8-32B9-84D0-29833727A6B1> /usr/lib/system/libsystem_m.dylib
0x7fffad96d000 - 0x7fffad98bff7 libsystem_malloc.dylib (116) <3DD17B88-B7A4-38B9-9E95-AB88E1C3B647> /usr/lib/system/libsystem_malloc.dylib
0x7fffad98c000 - 0x7fffad9e2fff libsystem_network.dylib (856.1.8) <A8973360-956A-33BF-9971-14D59C84E0D1> /usr/lib/system/libsystem_network.dylib
0x7fffad9e3000 - 0x7fffad9ecff3 libsystem_networkextension.dylib (563.1.11) <1C551832-9360-36DD-A7BA-52B55A171720> /usr/lib/system/libsystem_networkextension.dylib
0x7fffad9ed000 - 0x7fffad9f6ffb libsystem_notify.dylib (165) <AF77D471-6B13-36BA-B144-7E7DDB9DBA9F> /usr/lib/system/libsystem_notify.dylib
0x7fffad9f7000 - 0x7fffad9fffe7 libsystem_platform.dylib (126.1.2) <5798A1C4-F656-3729-A5FD-963268105B2A> /usr/lib/system/libsystem_platform.dylib
0x7fffada00000 - 0x7fffada0afff libsystem_pthread.dylib (218.1.3) <050AE77B-4F4B-334A-A5BA-CF0D10AF5304> /usr/lib/system/libsystem_pthread.dylib
0x7fffada0b000 - 0x7fffada0efff libsystem_sandbox.dylib (592.1.3) <90FEF628-316D-3F84-9EF4-F7F510A4FBBB> /usr/lib/system/libsystem_sandbox.dylib
0x7fffada0f000 - 0x7fffada10fff libsystem_secinit.dylib (24) <A54B8FEF-E792-3C54-8E0B-E80A376662F2> /usr/lib/system/libsystem_secinit.dylib
0x7fffada11000 - 0x7fffada18fff libsystem_symptoms.dylib (532.1.1) <B26F656E-94F9-3834-9B03-51C4FF11D1BF> /usr/lib/system/libsystem_symptoms.dylib
0x7fffada19000 - 0x7fffada39ff7 libsystem_trace.dylib (518.1.16) <5CEAEF53-0BE1-3DC5-9B66-8558768E75DD> /usr/lib/system/libsystem_trace.dylib
0x7fffada3a000 - 0x7fffada3fffb libunwind.dylib (35.3) <9F7C2AD8-A9A7-3DE4-828D-B0F0F166AAA0> /usr/lib/system/libunwind.dylib
0x7fffada40000 - 0x7fffada69ff7 libxpc.dylib (972.1.5) <2A901937-48E1-3BF2-83F1-2431156D82B7> /usr/lib/system/libxpc.dylib
Every time I try to run the Python demos in
/python/examples/
, they cause a "Segmentation fault: 11" error.I'm using libcaca installed via homebrew with Python 2.7 on MacOS X 10.11.5.
I'm attaching the crash reporter dump: