mac python 2.7 django crash segmentation fault
I installed django and i am able to run import django. However, when I run
print(django.get_version()), it crashes with Segmentation fault: 11
Then I expand the 'report to apple' window prompt. it says the following:
Process: Python [2439]
Path:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.2.5 (2.7.2.5.r64662-trunk)
Code Type: X86-64 (Native)
Parent Process: bash [2362]
Responsible: Terminal [2037]
User ID: 501
Date/Time: 2013-08-17 10:42:08.350 +0800
OS Version: Mac OS X 10.9 (13A497d)
Report Version: 11
Anonymous UUID: 73050B1F-EF33-CB1D-23C8-E2F4C44E6C4A
Sleep/Wake UUID: 4D08D546-B66F-4FAF-8715-7FEFB2993315
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000100000000-0000000100001000 [ 4K]
r-x/rwx SM=COW
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 readline.so 0x00000001004b1d97 call_readline + 647
1 org.activestate.ActivePython27 0x0000000100008412 PyOS_Readline + 274
2 org.activestate.ActivePython27 0x0000000100009c68 tok_nextc + 104
3 org.activestate.ActivePython27 0x000000010000a49a PyTokenizer_Get + 154
4 org.activestate.ActivePython27 0x00000001000051ba parsetok + 218
5 org.activestate.ActivePython27 0x00000001000ebb62
PyParser_ASTFromFile + 146
6 org.activestate.ActivePython27 0x00000001000ecdc3
PyRun_InteractiveOneFlags + 243
7 org.activestate.ActivePython27 0x00000001000ed0ae
PyRun_InteractiveLoopFlags + 78
8 org.activestate.ActivePython27 0x00000001000ed891
PyRun_AnyFileExFlags + 161
9 org.activestate.ActivePython27 0x00000001001041dc Py_Main + 2940
10 org.activestate.ActivePython27.app 0x0000000100000ed4 0x100000000 + 3796
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000100373df0 rcx:
0x0000000100300000 rdx: 0x0000000000002800
rdi: 0x0000000000000000 rsi: 0x00000001004b2054 rbp:
0x00007fff5fbff420 rsp: 0x00007fff5fbff350
r8: 0x0000000100300000 r9: 0x000000000000021c r10:
0x0000000020080003 r11: 0x0000000000000001
r12: 0x0000000000000001 r13: 0x000000000000000c r14:
0x00007fff5fbff3e0 r15: 0x00007fff5fbff360
rip: 0x00000001004b1d97 rfl: 0x0000000000010206 cr2: 0x0000000000000000
Logical CPU: 4
Error Code: 0x00000004
Trap Number: 14
Binary Images:
0x100000000 - 0x100000fff
+org.activestate.ActivePython27.app (2.7.2.5 -
2.7.2.5.r64662-trunk) <4140045F-2FA3-FAAE-03E9-CBD7351FDD7B>
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x100003000 - 0x100171fef +org.activestate.ActivePython27
(2.7.2.5 - 2.7.2.5.r64662-trunk)
<1CA2CB97-0559-3E7E-56DC-00FF6DAE2CE8>
/Library/Frameworks/Python.framework/Versions/2.7/Python
0x1004b0000 - 0x1004b2fff +readline.so (???)
<A64220B5-DE2F-19FB-AB86-74835DACF68F>
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so
0x1004b9000 - 0x1004d7ffb libedit.2.dylib (39)
<24343EDB-E64F-34DC-8632-68C9E44E0FF7> /usr/lib/libedit.2.dylib
0x7fff697bd000 - 0x7fff697f04a7 dyld (237)
<BB7160C2-117E-3369-87F0-866ED454490E> /usr/lib/dyld
0x7fff8b417000 - 0x7fff8b418fff libunc.dylib (28)
<53C7CED6-55F5-3121-B00E-4339C29297C8> /usr/lib/system/libunc.dylib
0x7fff8c8fb000 - 0x7fff8c90cff7 libz.1.dylib (53)
<372E2641-66CA-3B13-8BE6-3A4335F861A6> /usr/lib/libz.1.dylib
0x7fff8d5b5000 - 0x7fff8d5bafff libmacho.dylib (845)
<0038681B-CEC4-348A-A7B8-4236C701F2F8> /usr/lib/system/libmacho.dylib
0x7fff8d5bb000 - 0x7fff8d644fe7 libsystem_c.dylib (997)
<5BAB0B09-A39E-39B9-9552-48B540B3ABD0>
/usr/lib/system/libsystem_c.dylib
0x7fff8d724000 - 0x7fff8d776fff libc++.1.dylib (118)
<5FF54631-AC11-3AD8-B42D-04FAC953CCED> /usr/lib/libc++.1.dylib
0x7fff8d807000 - 0x7fff8d829fff libxpc.dylib (300.1.4)
<4F832032-9709-3E80-91C4-71914C67A32B> /usr/lib/system/libxpc.dylib
0x7fff8ddad000 - 0x7fff8ddb4ff3 libcopyfile.dylib (103)
<54DD5730-3F05-3F18-B55C-24EA9546286F>
/usr/lib/system/libcopyfile.dylib
0x7fff8efcf000 - 0x7fff8f011ff7 libauto.dylib (185.4)
<379FBDA3-DB2A-35A3-A637-3893C0F0E52F> /usr/lib/libauto.dylib
0x7fff8f077000 - 0x7fff8f07effb liblaunch.dylib (842.1.1)
<7055DF9E-52CE-3746-96EB-3718DDBF0BD0> /usr/lib/system/liblaunch.dylib
0x7fff8f0a0000 - 0x7fff8f0c7ff3 libsystem_info.dylib (449)
<B5F10962-3DA2-3557-A0B1-369BB80EA6A5>
/usr/lib/system/libsystem_info.dylib
0x7fff8f19c000 - 0x7fff8f1a6fff libcommonCrypto.dylib (60049)
<FC0D70F5-E485-32E6-BFC2-1E072047282B>
/usr/lib/system/libcommonCrypto.dylib
0x7fff8f1a7000 - 0x7fff8f1c1fff libdispatch.dylib (339.1.2)
<A9C37B4E-B908-3212-BF59-CE336EC30E78>
/usr/lib/system/libdispatch.dylib
0x7fff8f629000 - 0x7fff8f677fff libcorecrypto.dylib (161)
<56048D2C-3668-3E15-AF02-5C5A377320F6>
/usr/lib/system/libcorecrypto.dylib
0x7fff8fade000 - 0x7fff8fb0efff libncurses.5.4.dylib (42)
<DC54026B-27FB-3E1E-8015-0484C92D4970> /usr/lib/libncurses.5.4.dylib
0x7fff90f35000 - 0x7fff90f3cfff libcompiler_rt.dylib (35)
<A0A9D62C-E1A5-39A0-A38E-B0B38762002D>
/usr/lib/system/libcompiler_rt.dylib
0x7fff9132b000 - 0x7fff9132bff7 libkeymgr.dylib (28)
<AB6DE146-DDC4-397B-9182-ECE54FCDF5D7> /usr/lib/system/libkeymgr.dylib
0x7fff91a03000 - 0x7fff91a04ff7 libsystem_blocks.dylib (63)
<7836104E-39B9-31B6-A0C7-C02ACD401ADE>
/usr/lib/system/libsystem_blocks.dylib
0x7fff9289b000 - 0x7fff928a4ff3 libsystem_notify.dylib (121)
<D34E9B17-297F-3C3F-BD16-69D1D9495B79>
/usr/lib/system/libsystem_notify.dylib
0x7fff928a5000 - 0x7fff928a7ff3 libsystem_configuration.dylib
(596.1) <1E0FDEA3-8822-3E80-AA0D-57D0F4E30E2E>
/usr/lib/system/libsystem_configuration.dylib
0x7fff92ced000 - 0x7fff92d16ff7 libc++abi.dylib (43)
<DAF66B4A-AFBE-31AA-9CA3-97A827BC8843> /usr/lib/libc++abi.dylib
0x7fff92fca000 - 0x7fff93177f8f libobjc.A.dylib (551)
<853FA2C9-7BF1-3962-896E-6367F99FD358> /usr/lib/libobjc.A.dylib
0x7fff9322a000 - 0x7fff9322bff7 libDiagnosticMessagesClient.dylib
(100) <B28C426E-E826-3EC3-80AD-E69F2EABE46B>
/usr/lib/libDiagnosticMessagesClient.dylib
0x7fff93376000 - 0x7fff93391ff7 libsystem_kernel.dylib
(2422.1.26.0.1) <5F99677C-C760-3877-AFF7-F60B5ECE365E>
/usr/lib/system/libsystem_kernel.dylib
0x7fff93440000 - 0x7fff93441ffb libremovefile.dylib (33)
<D7EF6E8B-95D8-3D8E-918C-2D3F51D00060>
/usr/lib/system/libremovefile.dylib
0x7fff93825000 - 0x7fff93826ff3 libSystem.B.dylib (1197)
<7589D08E-9338-3E28-AA74-9734F0D51CE0> /usr/lib/libSystem.B.dylib
0x7fff93827000 - 0x7fff9382aff7 libdyld.dylib (237)
<EA2A0414-849F-3976-BA4E-A93D3206ECE5> /usr/lib/system/libdyld.dylib
0x7fff9503d000 - 0x7fff95044ff7 libsystem_pthread.dylib (53)
<2160EC74-26FC-32CE-8161-B1A72D2B09B0>
/usr/lib/system/libsystem_pthread.dylib
0x7fff954f3000 - 0x7fff9550dfff libsystem_malloc.dylib (23.1.1)
<FBCF2C62-AA8D-322E-859E-B5D90C610A3F>
/usr/lib/system/libsystem_malloc.dylib
0x7fff9574b000 - 0x7fff9574cff7 libsystem_sandbox.dylib (278.1)
<F723F1D9-5561-344A-A6F0-B1373D355DBA>
/usr/lib/system/libsystem_sandbox.dylib
0x7fff95f2f000 - 0x7fff96112ff7 com.apple.CoreFoundation (6.9 -
842) <DC8875C4-DC2C-3ADC-B88B-D66722953255>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff96146000 - 0x7fff96149fff libsystem_stats.dylib
(93.1.8.1.1) <CAC30E07-CE62-3536-8CD4-1A3CE44DD973>
/usr/lib/system/libsystem_stats.dylib
0x7fff962b4000 - 0x7fff962dbff7 libsystem_network.dylib (241.3)
<D518703F-4C71-3CC5-99EF-A15C8F41A834>
/usr/lib/system/libsystem_network.dylib
0x7fff96305000 - 0x7fff96334fd2 libsystem_m.dylib (3047.15)
<8A6B4EC2-BB25-342B-B3FE-9585175225B8>
/usr/lib/system/libsystem_m.dylib
0x7fff96339000 - 0x7fff9633dff7 libcache.dylib (61)
<E9CD6B70-0553-3808-87DA-D16A1A6AC3FB> /usr/lib/system/libcache.dylib
0x7fff96607000 - 0x7fff96618fff libsystem_asl.dylib (217)
<F8795719-7E14-3FB2-8F4D-FF814AFFB7F7>
/usr/lib/system/libsystem_asl.dylib
0x7fff96d3d000 - 0x7fff96d3fff7 libquarantine.dylib (69)
<1776AABC-F1D7-3CB0-B698-B0C70D4E535B>
/usr/lib/system/libquarantine.dylib
0x7fff96dce000 - 0x7fff96dd4fef libsystem_platform.dylib (24)
<5D8FE8C3-2A62-3705-AB7D-FBD7C284AFBD>
/usr/lib/system/libsystem_platform.dylib
0x7fff97bad000 - 0x7fff97d65ffb libicucore.A.dylib (511.16)
<D7EFBDCD-B495-3A4C-990F-AC9AF1E210DB> /usr/lib/libicucore.A.dylib
0x7fff97f87000 - 0x7fff97f8ffff libsystem_dnssd.dylib (522.1.3)
<29695A12-75FC-36EE-97AC-179F6E9DA419>
/usr/lib/system/libsystem_dnssd.dylib
0x7fff986ee000 - 0x7fff986f3ff7 libunwind.dylib (35.3)
<838CE69D-44F1-305C-8FA5-5E439D217F78> /usr/lib/system/libunwind.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: 16860
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=74.6M resident=34.8M(47%)
swapped_out_or_unallocated=39.9M(53%)
Writable regions: Total=27.7M written=1912K(7%) resident=2496K(9%)
swapped_out=0K(0%) unallocated=25.2M(91%)
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 19.4M
MALLOC (admin) 16K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 8K
__DATA 1456K
__LINKEDIT 64.2M
__TEXT 10.4M
__UNICODE 544K
shared memory 4K
=========== =======
TOTAL 160.0M
Model: MacBookPro8,2, BootROM MBP81.0047.B27, 4 processors, Intel Core i7,
2.2 GHz, 8 GB, SMC 1.69f4
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x80CE,
0x4D34373142353237334448302D4348392020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x80CE,
0x4D34373142353237334448302D4348392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6),
Broadcom BCM43xx 1.0 (6.30.223.106.1)
Bluetooth: Version 4.2.0b11 12562, 3 services, 21 devices, 3 incoming
serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: Hitachi HTS547550A9E384, 500.11 GB
Serial ATA Device: MATSHITADVD-R UJ-8A8
USB Device: Hub
USB Device: iPod
USB Device: BRCM2070 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: IR Receiver
Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1, 0x100
I am able to use other tools like scrapy runspider xxx.py with no errors.
No comments:
Post a Comment