Hi Vamsi - I'm glad that fixed the issue for you. The crash happens because the OOT is being linked to a specific ABI (e.g., MacPorts Python library), while the runtime is trying to use a different API (system Python library). The libraries' ABIs are different enough to confuse Apple's dynamic library loader (DYLD), and Apple's DYLD also isn't smart enough to work through the differences. I think the Python library APIs are the same. A possible solution to this overall issue is to not specifically link OOTs with a Python library, and instead force Python symbols to be loaded at runtime from whatever Python library is chosen. This solution has been claimed to work from HomeBrew users; I've tried to use their patches and failed when using MacPorts, which is why these changes are not in place. I hope this is useful! - MLD
---------- Forwarded message ----------From: vamsi krishna <vamsi765@yahoo.com>Date: Mon, Nov 21, 2016 at 10:04 AMSubject: Re: [Discuss-gnuradio] New Module using gr_modtool ErrorThat fixed the issue! I was trying to figure it out for 10hours!But I'm not sure why the error occurs only for new OOT modules created (either in my computer or other ubuntu computer). The cmake command which I used previously (with only install prefix option) works alright with older OOT modules, is there a particular reason for this?Here is the error:Process: Python [10887]Path: /opt/local/Library/Frameworks/Python.framework/ Versions/2.7/Resources/Python. app/Contents/MacOS/Python Identifier: PythonVersion: 2.7.12 (2.7.12)Code Type: X86-64 (Native)Parent Process: Python [10873]Responsible: Python [10887]User ID: 501Date/Time: 2016-11-20 15:09:10.468 -0800OS Version: Mac OS X 10.12.1 (16B2555)Report Version: 12Anonymous UUID: D8090335-A434-F732-61A3-656D0819D724 Time Awake Since Boot: 10000 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYApplication Specific Information:abort() calledThread 0 Crashed:: Dispatch queue: com.apple.main-thread0 libsystem_kernel.dylib 0x00007fffbb01edda __pthread_kill + 101 libsystem_pthread.dylib 0x00007fffbb10a787 pthread_kill + 902 libsystem_c.dylib 0x00007fffbaf84420 abort + 1293 org.python.python 0x000000010dbfa8ee Py_FatalError + 494 org.python.python 0x000000010dbf9de8 PyThreadState_Get + 285 org.python.python 0x000000010dbf6ce2 Py_InitModule4_64 + 626 _test_swig.so 0x000000010db27750 init_test_swig + 8007 org.python.python 0x000000010d37fd5c _PyImport_LoadDynamicModule + 140Thread 0 crashed with X86 Thread State (64-bit):rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff52959058 rdx: 0x0000000000000000rdi: 0x0000000000000307 rsi: 0x0000000000000006 rbp: 0x00007fff52959080 rsp: 0x00007fff52959058r8: 0x0000000000000040 r9: 0x00007fffc3bf4040 r10: 0x0000000008000000 r11: 0x0000000000000206r12: 0x00007f9854065c00 r13: 0x000000010db3db40 r14: 0x00007fffc3c103c0 r15: 0x000000010d43cbc8rip: 0x00007fffbb01edda rfl: 0x0000000000000206 cr2: 0x00007fffc3bf2128Logical CPU: 0Error Code: 0x02000148Trap Number: 133Binary Images:0x10d2a4000 - 0x10d2a5ff3 +org.python.python (2.7.12 - 2.7.12) <16EBCFCB-E223-3DC8-BD98-C06C340AA66E> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ Resources/Python.app/Contents/ MacOS/Python 0x10d2a9000 - 0x10d3e3fff +org.python.python (2.7.12, [c] 2001-2016 Python Software Foundation. - 2.7.12) <46884AF3-8723-3B6C-9F97-F5EAD025F5E6> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ Python 0x10d669000 - 0x10d66bfff +_locale.so (0) <87303438-30DB-3508-862B-F0E6A79F6446> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ locale.so 0x10d66f000 - 0x10d677ff3 +libintl.8.dylib (0) <34C7A792-8F97-3B47-BE05-892044CF0A65> /opt/local/lib/libintl.8.dylib 0x10d67c000 - 0x10d770ff7 +libiconv.2.dylib (0) <D1DF370F-D618-3944-9662-67D25BDADA0F> /opt/local/lib/libiconv.2. dylib 0x10d7bd000 - 0x10d7bfffb +time.so (0) <001BA328-F9D1-3831-810C-8916DCCA4FE8> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ time.so 0x10d7c5000 - 0x10d7c8ff7 +select.so (0) <BF7C62C8-016B-3FA0-8361-6C3AA942EB32> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ select.so 0x10d7ce000 - 0x10d7cffff +fcntl.so (0) <1B78FFA3-4806-3385-AB55-39609E51BF83> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ fcntl.so 0x10d812000 - 0x10d815ff3 +_struct.so (0) <62217510-38EC-3D1F-96E8-DB78FDE40379> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ struct.so 0x10d81c000 - 0x10d81fff3 +binascii.so (0) <D1B97F16-1A4F-39E5-803D-9D19294901F2> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ binascii.so 0x10d823000 - 0x10d832fff +libz.1.dylib (0) <6D714A00-1700-3CE7-9C1E-17746B562709> /opt/local/lib/libz.1.dylib 0x10d836000 - 0x10d837ff3 +cStringIO.so (0) <16091FFA-D088-3455-838D-B2548B846D6C> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ cStringIO.so 0x10d83c000 - 0x10d83fffb +_collections.so (0) <B43753C0-90EE-3813-A46C-84FA13305388> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ collections.so 0x10d845000 - 0x10d848ff3 +operator.so (0) <9F3F7A4F-2EA8-33B1-92DF-E6E0E3FD7ED9> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ operator.so 0x10d84f000 - 0x10d854ff3 +itertools.so (0) <CD37243A-948A-3FE8-82F0-6D79DC02BC2B> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ itertools.so 0x10d85f000 - 0x10d860ff7 +_heapq.so (0) <B5F8D47E-15CF-32F0-8DB1-AFB2D8F08C97> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ heapq.so 0x10d8a4000 - 0x10d8a9fff +_json.so (0) <A1C52EC7-989C-3EBD-8C23-F88DA180CA51> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ json.so 0x10d8ae000 - 0x10d8b2ffb +math.so (0) <030D8F3F-D8B6-3AD4-BB35-C19F053AD4C4> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/ math.so 0x10d8b9000 - 0x10d8bbffb +_hashlib.so (0) <C8508C90-8F7C-3F14-85B5-6EC5937AD6E3> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ hashlib.so 0x10d8c0000 - 0x10d907ff7 +libssl.1.0.0.dylib (0) <BCEBF488-03B6-3DE0-ABB5-C06428F1D772> /opt/local/lib/libssl.1.0.0. dylib 0x10d924000 - 0x10daa9877 +libcrypto.1.0.0.dylib (0) <C2B33484-A2D9-3DBA-B387-29662B7D6A69> /opt/local/lib/libcrypto.1.0. 0.dylib 0x10db1f000 - 0x10db20fff +_random.so (0) <9FE5A9E0-82DF-33C3-A19C-D52FEFFF1776> /opt/local/Library/Frameworks/ Python.framework/Versions/2.7/ lib/python2.7/lib-dynload/_ random.so 0x10db24000 - 0x10db43ff7 +_test_swig.so (0) <38A9F267-D15F-37AD-A746-D05F1243C65A> /opt/local/lib/*/_test_swig.so 0x10db59000 - 0x10dc4afff org.python.python (2.7.10 - 2.7.10) <9A7B981D-B190-38FF-A861-770007B7FCD9> /System/Library/Frameworks/ Python.framework/Versions/2.7/ Python 0x10dcb2000 - 0x10dcb8ff3 +libgnuradio-test.1.0.0git.dylib (0) <A4351946-0AFB-3E06-81D5- 0B4C6FE96B77> /opt/local/lib/libgnuradio- test.1.0.0git.dylib 0x10dcc1000 - 0x10dccfff7 +libboost_filesystem-mt.dylib (0) <85C65F2C-FCB4-38F0-9CD4-431BF243B211> /opt/local/lib/libboost_ filesystem-mt.dylib 0x10dce1000 - 0x10dce3fff +libboost_system-mt.dylib (0) <ED86ABC8-84C1-3508-9362-6E2AB9295F0D> /opt/local/lib/libboost_ system-mt.dylib 0x10dce8000 - 0x10dd56ff7 +libgnuradio-runtime.3.7.10.1.dylib (0) <6EF29378-AC7C-3F20-BE56- 99B1D71A2EDB> /opt/local/lib/libgnuradio- runtime.3.7.10.1.dylib 0x10ddb0000 - 0x10dde1ffb +libgnuradio-pmt.3.7.10.1.dylib (0) <033E8687-C0A3-3FC1-93C1- 3B6D6A374F45> /opt/local/lib/libgnuradio- pmt.3.7.10.1.dylib 0x10de07000 - 0x10de97ff7 +libvolk.1.3.dylib (0) <4A05A971-7F81-328C-8CCB-6AA056327105> /opt/local/lib/libvolk.1.3. dylib 0x10df45000 - 0x10df49fff +libboost_date_time-mt.dylib (0) <BD287B22-EE37-3A1D-9249-8BB46389ECF9> /opt/local/lib/libboost_date_ time-mt.dylib 0x10df58000 - 0x10df8cfff +libboost_program_options-mt.dylib (0) <2E935CBA-E26F-3563-82DD- 55B36E9A5A9A> /opt/local/lib/libboost_ program_options-mt.dylib
No comments:
Post a Comment