osx mavericks - Python crashing when running two commands (Segmentation Fault: 11) -


python interpreter crashing when run second command. have searched web error , did not found anything. error showed below:

python 2.7.5 (v2.7.5:ab05e7dd2788, may 13 2013, 13:18:45)  [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> print 1 1 >>> print 2 segmentation fault: 11 

why?

i'm using mac os x mavericks. think that's relevant since it's beta version.

edit:

forgot problem details provided osx:

process:         python [11053] path:            /library/frameworks/python.framework/versions/2.7/resources/python.app/contents/macos/python identifier:      python version:         2.7.5 (2.7.5) code type:       x86-64 (native) parent process:  bash [9217] responsible:     terminal [3148] user id:         501  date/time:       2013-08-10 00:29:28.571 -0300 os version:      mac os x 10.9 (13a524d) report version:  11 anonymous uuid:  6af2c70a-1c80-7f45-3a3d-e30d0725cdfc  sleep/wake uuid: 7b2165e8-4b17-4e17-ada7-bf9bcb380e8a  crashed thread:  0  dispatch queue: com.apple.main-thread  exception type:  exc_bad_access (sigsegv) exception codes: kern_invalid_address @ 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                     0x00000001002f2f97 call_readline + 647 1   org.python.python               0x0000000100008e22 pyos_readline + 274 2   org.python.python               0x000000010000a678 tok_nextc + 104 3   org.python.python               0x000000010000ae23 pytokenizer_get + 147 4   org.python.python               0x0000000100005a1a parsetok + 218 5   org.python.python               0x00000001000e8a52 pyparser_astfromfile + 146 6   org.python.python               0x00000001000e9d33 pyrun_interactiveoneflags + 243 7   org.python.python               0x00000001000ea01e pyrun_interactiveloopflags + 78 8   org.python.python               0x00000001000ea831 pyrun_anyfileexflags + 161 9   org.python.python               0x00000001001014ed py_main + 3101 10  org.python.python               0x0000000100000f14 0x100000000 + 3860  thread 0 crashed x86 thread state (64-bit):   rax: 0x0000000000000000  rbx: 0x0000000100335a70  rcx: 0x0000000100300000  rdx: 0x0000000000000a00   rdi: 0x0000000000000000  rsi: 0x00000001002f3254  rbp: 0x00007fff5fbff540  rsp: 0x00007fff5fbff470    r8: 0x0000000100300000   r9: 0x0000000000000208  r10: 0x0002000000000003  r11: 0x0000000000000001   r12: 0x0000000000000001  r13: 0x0000000000000007  r14: 0x00007fff5fbff500  r15: 0x00007fff5fbff480   rip: 0x00000001002f2f97  rfl: 0x0000000000010206  cr2: 0x0000000000000000  logical cpu:     1 error code:      0x00000004 trap number:     14   binary images:        0x100000000 -        0x100000fff +org.python.python (2.7.5 - 2.7.5) <29dab82b-5bc9-56ce-c09d-ae442fb37ef0> /library/frameworks/python.framework/versions/2.7/resources/python.app/contents/macos/python        0x100003000 -        0x10016ffff +org.python.python (2.7.5, [c] 2004-2013 python software foundation. - 2.7.5) <cdfb33ca-71dd-b1c2-5262-545f3fa06153> /library/frameworks/python.framework/versions/2.7/python        0x1002f1000 -        0x1002f3ff7 +readline.so (???) <6ea1fe1f-b78c-23ef-a4c2-9b7e9fb8b643> /library/frameworks/python.framework/versions/2.7/lib/python2.7/lib-dynload/readline.so        0x1004b0000 -        0x1004ceffb  libedit.2.dylib (39) <1b0596db-f336-32e7-bb9f-51bf70db5305> /usr/lib/libedit.2.dylib        0x100600000 -        0x100654fe7 +libncursesw.5.dylib (5) <3f0079c0-01c1-3cb8-19ca-f9b49aa4f4a4> /library/frameworks/python.framework/versions/2.7/lib/libncursesw.5.dylib     0x7fff6424d000 -     0x7fff6428068f  dyld (239) <7bd34028-a0fe-3543-955a-cee43c7ece2e> /usr/lib/dyld     0x7fff8578a000 -     0x7fff8578eff7  libcache.dylib (62) <d991b21e-5f8f-38f1-91b3-5a3d13fa58d5> /usr/lib/system/libcache.dylib     0x7fff8670f000 -     0x7fff86738ff7  libc++abi.dylib (47.1) <7926f072-a0c5-3753-a933-e871f3d26820> /usr/lib/libc++abi.dylib     0x7fff86849000 -     0x7fff8684affb  libremovefile.dylib (33) <f34c9dc5-0f78-3afc-9e93-d56e18666a96> /usr/lib/system/libremovefile.dylib     0x7fff8684b000 -     0x7fff86852ff3  libcopyfile.dylib (103) <20f0240d-10f5-3554-8407-d8f3f77e3402> /usr/lib/system/libcopyfile.dylib     0x7fff86853000 -     0x7fff8686fff7  libsystem_kernel.dylib (2422.1.43) <94ec865e-353c-308c-9c57-92ff7576fcde> /usr/lib/system/libsystem_kernel.dylib     0x7fff86a44000 -     0x7fff86a47ff7  libdyld.dylib (239) <44b9011b-dd63-315d-868c-382d082dee4f> /usr/lib/system/libdyld.dylib     0x7fff87667000 -     0x7fff8768aff7  libxpc.dylib (300.1.9) <306436dd-2569-3978-87ed-4ea0366e8331> /usr/lib/system/libxpc.dylib     0x7fff8768b000 -     0x7fff87695fff  libcommoncrypto.dylib (60049) <977dd9ff-99be-3b0e-9fcd-98ef44db20f8> /usr/lib/system/libcommoncrypto.dylib     0x7fff87696000 -     0x7fff876c5fd2  libsystem_m.dylib (3047.15) <181c338f-3c54-3f0e-a31b-9bdaf8657f5c> /usr/lib/system/libsystem_m.dylib     0x7fff878cc000 -     0x7fff878cdff7  libsystem_blocks.dylib (63) <4e91f9ea-a4e4-3cdd-bc81-d240ba0c29a4> /usr/lib/system/libsystem_blocks.dylib     0x7fff882f1000 -     0x7fff882f3ff7  libquarantine.dylib (71) <77210ebf-21f4-390c-8498-fdc5c90d1b3d> /usr/lib/system/libquarantine.dylib     0x7fff88937000 -     0x7fff88aefff7  libicucore.a.dylib (511.22) <f9f35d66-9773-3d60-b85e-16b507f91d63> /usr/lib/libicucore.a.dylib     0x7fff8a004000 -     0x7fff8a00bff7  libsystem_pthread.dylib (53.1.2) <6ffc74a2-9aa7-3d61-8064-50119d8176e7> /usr/lib/system/libsystem_pthread.dylib     0x7fff8a00d000 -     0x7fff8a00effb  libsystem.b.dylib (1197.1.1) <0f46ad54-e26b-340a-a26d-37086fbf7b57> /usr/lib/libsystem.b.dylib     0x7fff8a328000 -     0x7fff8a329ff7  libdiagnosticmessagesclient.dylib (100) <4cdb0f7b-c0af-3424-bc39-495696f0db1e> /usr/lib/libdiagnosticmessagesclient.dylib     0x7fff8a34c000 -     0x7fff8a366fff  libdispatch.dylib (339.1.5.0.1) <a523c102-8356-30d5-a189-b712a267bf28> /usr/lib/system/libdispatch.dylib     0x7fff8af35000 -     0x7fff8af65fff  libncurses.5.4.dylib (42) <bf763d62-9149-37cb-b1d2-f66a2510e6dd> /usr/lib/libncurses.5.4.dylib     0x7fff8b0a6000 -     0x7fff8b0a7ff7  libsystem_sandbox.dylib (278.5) <dda98eb2-a333-39c4-b7c8-0947bf0619b4> /usr/lib/system/libsystem_sandbox.dylib     0x7fff8b10a000 -     0x7fff8b2eefff  com.apple.corefoundation (6.9 - 847.11) <40c0f570-bbc0-3e9d-a83b-3e4083ea139e> /system/library/frameworks/corefoundation.framework/versions/a/corefoundation     0x7fff8c8b4000 -     0x7fff8c8b9ff7  libunwind.dylib (35.3) <e152afea-2133-3af3-a3b8-bf7cfd3e05f5> /usr/lib/system/libunwind.dylib     0x7fff8c9b2000 -     0x7fff8cb5ff8f  libobjc.a.dylib (551) <ad54b900-1384-3c07-aa2a-f7e6a03f0181> /usr/lib/libobjc.a.dylib     0x7fff8cb68000 -     0x7fff8cb8fffb  libsystem_info.dylib (449.1.2) <b285aaf5-3046-37c2-a1f9-8042ec3f6b2e> /usr/lib/system/libsystem_info.dylib     0x7fff8cfcb000 -     0x7fff8d019fff  libcorecrypto.dylib (161.1) <f3973c28-14b6-3006-bb2b-00dd7f09abc7> /usr/lib/system/libcorecrypto.dylib     0x7fff8d8a1000 -     0x7fff8d8b2ff7  libsystem_asl.dylib (217.1.1) <4b431390-9a03-3e03-9490-b5ca977be1ed> /usr/lib/system/libsystem_asl.dylib     0x7fff8ea2e000 -     0x7fff8ea30ff3  libsystem_configuration.dylib (596.5) <d36bc3fc-78cf-33d4-910b-6bc0fc2061c7> /usr/lib/system/libsystem_configuration.dylib     0x7fff8f21c000 -     0x7fff8f223fff  libcompiler_rt.dylib (35) <fba11d1c-ecd2-3d8e-8260-bf8a6c83e5a1> /usr/lib/system/libcompiler_rt.dylib     0x7fff8f533000 -     0x7fff8f53bfff  libsystem_dnssd.dylib (522.1.9) <7f7b0b2b-8416-3e13-a482-388362ac6ba7> /usr/lib/system/libsystem_dnssd.dylib     0x7fff905a3000 -     0x7fff905caff7  libsystem_network.dylib (241.3) <15fa3ebf-dc43-33d8-affb-b45355e806b5> /usr/lib/system/libsystem_network.dylib     0x7fff9129a000 -     0x7fff9129dff7  libsystem_stats.dylib (93.1.15.1.3) <763d8c3a-d56a-3198-8eb8-5a1f1c93ac45> /usr/lib/system/libsystem_stats.dylib     0x7fff91455000 -     0x7fff91466ff7  libz.1.dylib (53) <42e0c8c6-ca38-3ca4-8619-d24ed5dd492e> /usr/lib/libz.1.dylib     0x7fff914ef000 -     0x7fff914f6ffb  liblaunch.dylib (842.1.1) <b6fb3f53-9f4a-32af-9b11-eeffc6c2b1c4> /usr/lib/system/liblaunch.dylib     0x7fff91529000 -     0x7fff9152afff  libunc.dylib (28) <29f4d08c-f997-3ef6-a487-382925450c4b> /usr/lib/system/libunc.dylib     0x7fff91a4c000 -     0x7fff91a9efff  libc++.1.dylib (120) <0cd61156-dca0-3221-9cb7-a01695de1d39> /usr/lib/libc++.1.dylib     0x7fff92230000 -     0x7fff92272ff7  libauto.dylib (185.5) <4e107c53-8f50-3b87-b7a9-fe60ffa13fe1> /usr/lib/libauto.dylib     0x7fff9227f000 -     0x7fff92288ff3  libsystem_notify.dylib (121) <9d7c2c0e-bc86-3c49-bd3d-e71c916090db> /usr/lib/system/libsystem_notify.dylib     0x7fff929c0000 -     0x7fff929c6ff7  libsystem_platform.dylib (24.1.3) <8c53550a-3b73-3dc9-85d7-92bec13bb637> /usr/lib/system/libsystem_platform.dylib     0x7fff92af7000 -     0x7fff92b80ff7  libsystem_c.dylib (997.1.1) <6a5fe5ff-3eb3-3dac-9259-905142c78408> /usr/lib/system/libsystem_c.dylib     0x7fff92bcd000 -     0x7fff92bd2fff  libmacho.dylib (845) <be27f72f-d217-3116-a1ca-d07ba6ae30f9> /usr/lib/system/libmacho.dylib     0x7fff92d76000 -     0x7fff92d76ff7  libkeymgr.dylib (28) <2f44f81f-0315-35bd-a97b-25743509cec4> /usr/lib/system/libkeymgr.dylib     0x7fff92d77000 -     0x7fff92d92ff7  libsystem_malloc.dylib (23.1.7) <c7493811-cc98-351c-a44a-1ec4c223e2bc> /usr/lib/system/libsystem_malloc.dylib  external modification summary:   calls made other processes targeting process:     task_for_pid: 0     thread_create: 0     thread_set_state: 0   calls made process:     task_for_pid: 0     thread_create: 0     thread_set_state: 0   calls made processes on machine:     task_for_pid: 65487     thread_create: 0     thread_set_state: 0  vm region summary: readonly portion of libraries: total=75.1m resident=40.5m(54%) swapped_out_or_unallocated=34.6m(46%) writable regions: total=27.7m written=2232k(8%) resident=2556k(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                             1408k __linkedit                         64.4m __text                             10.7m __unicode                           544k shared memory                         4k ===========                      ======= total                             160.4m 

running following command on terminal, got working (considering you're using python 3.3. otherwise, change version want):

cd /library/frameworks/python.framework/versions/3.3 cd ./lib/python3.3/lib-dynload  sudo mv readline.so readline.so.disabled 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -