homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Entering integers in python interpreter causes segfault
Type: crash Stage: resolved
Components: Interpreter Core, macOS Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update
View: 18458
Assigned To: ronaldoussoren Nosy List: henrycg@stanford.edu, ned.deily, ronaldoussoren, vstinner
Priority: normal Keywords:

Created on 2013年10月23日 21:45 by henrycg@stanford.edu, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg201072 - (view) Author: Henry Corrigan-Gibbs (henrycg@stanford.edu) Date: 2013年10月23日 21:45
Since upgrading to Mac OS X 10.9 (13A603), the interactive python interpreter crashes after I enter two lines of code, no matter how simple they are. The trace below shows that the shell segfaults after entering the integer "1" followed by the integer "1" (on separate lines).
The computer is a Macbook Pro, but I was able to reproduce the bug on a Macbook Air as well.
#########
### Trace of session
###
$ python
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1
1
>>> 1
Segmentation fault: 11
#########
### Apple crash report data
###
Process: Python [1664]
Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.2 (2.7.2)
Code Type: X86-64 (Native)
Parent Process: bash [1661]
Responsible: Terminal [1658]
User ID: 501
Date/Time: 2013年10月23日 14:38:46.854 -0700
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: 7AFE5583-559F-1AF6-8F53-1AB95063B98E
Sleep/Wake UUID: 0112A8E8-BB6F-4797-A38D-DA6F40F06329
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 	0x00000001002edf97 call_readline + 647
1 org.python.python 	0x0000000100008ad2 PyOS_Readline + 274
2 org.python.python 	0x000000010000a328 tok_nextc + 104
3 org.python.python 	0x000000010000aad3 PyTokenizer_Get + 147
4 org.python.python 	0x00000001000056ca parsetok + 218
5 org.python.python 	0x00000001000e63b2 PyParser_ASTFromFile + 146
6 org.python.python 	0x00000001000e7613 PyRun_InteractiveOneFlags + 243
7 org.python.python 	0x00000001000e78fe PyRun_InteractiveLoopFlags + 78
8 org.python.python 	0x00000001000e80e1 PyRun_AnyFileExFlags + 161
9 org.python.python 	0x00000001000fe77c Py_Main + 2940
10 org.python.python 	0x0000000100000f14 0x100000000 + 3860
Thread 0 crashed with X86 Thread State (64-bit):
 rax: 0x0000000000000000 rbx: 0x000000010035c140 rcx: 0x00000000000fc080 rdx: 0x0000000000087db0
 rdi: 0x0000000000000000 rsi: 0x00000001002ee254 rbp: 0x00007fff5fbff660 rsp: 0x00007fff5fbff590
 r8: 0x000000010035e700 r9: 0x000000010035e750 r10: 0x000000003500e0a1 r11: 0x0000000000000001
 r12: 0x0000000000000001 r13: 0x0000000000000001 r14: 0x00007fff5fbff620 r15: 0x00007fff5fbff5a0
 rip: 0x00000001002edf97 rfl: 0x0000000000010202 cr2: 0x0000000000000000
 
Logical CPU: 1
Error Code: 0x00000004
Trap Number: 14
Binary Images:
 0x100000000 - 0x100000fff +org.python.python (2.7.2 - 2.7.2) <639E72E4-F205-C034-8E34-E59DE9C46369> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 0x100003000 - 0x10016cfef +org.python.python (2.7.2, [c] 2004-2011 Python Software Foundation. - 2.7.2) <49D18B1A-C92D-E32E-A7C1-086D0B14BD76> /Library/Frameworks/Python.framework/Versions/2.7/Python
 0x1002ec000 - 0x1002eefff +readline.so (???) <25AB2CA6-C3CC-9F24-F619-C85D51AD8A38> /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
 0x7fff6cc9f000 - 0x7fff6ccd2817 dyld (239.3) <D1DFCF3F-0B0C-332A-BCC0-87A851B570FF> /usr/lib/dyld
 0x7fff885e1000 - 0x7fff8860aff7 libc++abi.dylib (48) <8C16158F-CBF8-3BD7-BEF4-022704B2A326> /usr/lib/libc++abi.dylib
 0x7fff8860b000 - 0x7fff88659fff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
 0x7fff88d06000 - 0x7fff88d17ff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
 0x7fff88d6e000 - 0x7fff88d77ff3 libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
 0x7fff896da000 - 0x7fff896dbff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
 0x7fff89a9b000 - 0x7fff89a9eff7 libdyld.dylib (239.3) <62F4D752-4089-31A8-8B73-B95A68893B3C> /usr/lib/system/libdyld.dylib
 0x7fff8a059000 - 0x7fff8a05dfff libsystem_stats.dylib (93.1.26) <B9E26A9E-FBBC-3938-B8B7-6CF7CA8C99AD> /usr/lib/system/libsystem_stats.dylib
 0x7fff8a181000 - 0x7fff8a1a5fff libxpc.dylib (300.1.17) <4554927A-9467-365C-91F1-5A116989DD7F> /usr/lib/system/libxpc.dylib
 0x7fff8a291000 - 0x7fff8a2c1fff libncurses.5.4.dylib (42) <BF763D62-9149-37CB-B1D2-F66A2510E6DD> /usr/lib/libncurses.5.4.dylib
 0x7fff8ae52000 - 0x7fff8ae54ff3 libsystem_configuration.dylib (596.12) <C4F633D9-94C8-35D9-BB2D-84C5122533C7> /usr/lib/system/libsystem_configuration.dylib
 0x7fff8aeca000 - 0x7fff8aed0ff7 libsystem_platform.dylib (24.1.4) <331BA4A5-55CE-3B95-99EB-44E0C89D7FB8> /usr/lib/system/libsystem_platform.dylib
 0x7fff8b0a4000 - 0x7fff8b0a4ff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
 0x7fff8b7ee000 - 0x7fff8b7ffff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
 0x7fff8b800000 - 0x7fff8b81cff7 libsystem_kernel.dylib (2422172) <D14913DB-47F1-3591-8DAF-D4B4EF5F8818> /usr/lib/system/libsystem_kernel.dylib
 0x7fff8b81d000 - 0x7fff8b84cfd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
 0x7fff8b852000 - 0x7fff8b853ffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
 0x7fff8bad5000 - 0x7fff8baf0ff7 libsystem_malloc.dylib (23.1.10) <FFE5C472-B23A-318A-85BF-77CDE61900D1> /usr/lib/system/libsystem_malloc.dylib
 0x7fff8bc58000 - 0x7fff8bc59ff7 libsystem_sandbox.dylib (278.10) <A47E7E11-3C76-318E-B67D-98972B86F094> /usr/lib/system/libsystem_sandbox.dylib
 0x7fff8bc8c000 - 0x7fff8bc96fff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
 0x7fff8c2ae000 - 0x7fff8c2afff7 libSystem.B.dylib (1197年1月1日) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
 0x7fff8cf18000 - 0x7fff8cf3fffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
 0x7fff8d07f000 - 0x7fff8d264ff7 com.apple.CoreFoundation (6.9 - 855.11) <E22C6A1F-8996-349C-905E-96C3BBE07C2F> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 0x7fff8df72000 - 0x7fff8df79fff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
 0x7fff8e4fe000 - 0x7fff8e4ffff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
 0x7fff8e530000 - 0x7fff8e535fff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
 0x7fff8ea55000 - 0x7fff8ea5dfff libsystem_dnssd.dylib (522.1.11) <270DCF6C-502D-389A-AA9F-DE4624A36FF7> /usr/lib/system/libsystem_dnssd.dylib
 0x7fff8eaca000 - 0x7fff8ead1ff7 liblaunch.dylib (842.1.4) <FCBF0A02-0B06-3F97-9248-5062A9DEB32C> /usr/lib/system/liblaunch.dylib
 0x7fff8ecc0000 - 0x7fff8ecc7ff3 libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
 0x7fff8f632000 - 0x7fff8f684fff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
 0x7fff8f719000 - 0x7fff8f7a2ff7 libsystem_c.dylib (997.1.1) <61833FAA-7281-3FF9-937F-686B6F20427C> /usr/lib/system/libsystem_c.dylib
 0x7fff90489000 - 0x7fff90636f27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
 0x7fff9063d000 - 0x7fff90642ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
 0x7fff90e17000 - 0x7fff90fcfff3 libicucore.A.dylib (511.25) <3ED7B656-416E-3071-AEC8-E85C90232F78> /usr/lib/libicucore.A.dylib
 0x7fff92bbc000 - 0x7fff92bc0ff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
 0x7fff92e8e000 - 0x7fff92e90ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
 0x7fff93b1f000 - 0x7fff93b20fff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
 0x7fff9406b000 - 0x7fff94072ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
 0x7fff94257000 - 0x7fff9427eff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
 0x7fff944b7000 - 0x7fff944f9ff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
 0x7fff94cd8000 - 0x7fff94cf2fff libdispatch.dylib (339.1.9) <46878A5B-4248-3057-962C-6D4A235EEF31> /usr/lib/system/libdispatch.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: 8241
 thread_create: 0
 thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=76.3M resident=13.9M(18%) swapped_out_or_unallocated=62.4M(82%)
Writable regions: Total=27.7M written=1864K(7%) resident=2436K(9%) swapped_out=0K(0%) unallocated=25.3M(91%)
 
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 19.4M
MALLOC (admin) 16K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 8K
__DATA 1412K
__LINKEDIT 65.9M
__TEXT 10.4M
__UNICODE 544K
shared memory 4K
=========== =======
TOTAL 161.7M
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2.53 GHz, 4 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x802C, 0x31364A53463235363634485A2D3147314631
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: FUJITSU MJA2500BH FFS G1, 500.11 GB
Serial ATA Device: HL-DT-ST DVDRW GS23N
USB Device: Built-in iSight
USB Device: Internal Memory Card Reader
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus:
msg201074 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013年10月23日 21:51
It looks like a duplicate of #19366.
msg201076 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013年10月23日 22:06
This is a duplicate of Issue18458. Until 2.7.6 is available for download, a workaround is to disable readline processing by moving _readline.so as suggested in the other issue.
History
Date User Action Args
2022年04月11日 14:57:52adminsetgithub: 63569
2013年10月23日 22:06:17ned.deilysetstatus: open -> closed

superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

nosy: + ned.deily
messages: + msg201076
resolution: duplicate
stage: resolved
2013年10月23日 21:51:03vstinnersetnosy: + vstinner
messages: + msg201074
2013年10月23日 21:45:49henrycg@stanford.educreate

AltStyle によって変換されたページ (->オリジナル) /