Closed c4943b0c-9b9d-4cb2-897c-cd7c5aa961e8 closed 10 years ago
2 consecutive commands into interactive shell still results in segmentation fault 11, patch 18458 reports skipped as patch not needed for 3.3
Works for me using the python.org 3.3.3 64-/32-bit installer. Are you using that Python 3.3.3? Please show the results of typing the following commamds and substituting for "python3.3" whatever command name you are using that causes the segfault.
python3.3 -c 'import sys;print(sys.version)' python3.3 -c 'import readline;print(readline.__file)' ls -l $(python3.3 -c 'import readline;print(readline.__file)') python3.3 1 2 3 quit()
You should see:
$ python3.3 -c 'import sys;print(sys.version)'
3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
$ python3.3 -c 'import readline;print(readline.__file__)'
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
$ ls -l $(python3.3 -c 'import readline;print(readline.__file__)')
-rwxrwxr-x 1 root admin 66472 Nov 16 23:40 /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
$ python3.3
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1
1
>>> 2
2
>>> 3
3
>>> quit()
$
mysite $ python -c 'import sys;print(sys.version)'
3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
mysite $ python -c 'import readline;print(readline.__file__)'
/System/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
mysite $ ls -l $(python -c 'import readline;print(readline.__file__)')
-rwxrwxr-x 1 root wheel 66400 13 May 2013
/System/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
mysite $ python
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1
1
>>> 2
Segmentation fault: 11
mysite $
I don't get to enter the final 3, the segmentation fault happens after the second input line.
*John Dobson,*
<http://my-rellies.blogspot.com>
On 19/11/2013 14:26, Ned Deily wrote:
> Ned Deily added the comment:
>
> Works for me using the python.org 3.3.3 64-/32-bit installer. Are you using that Python 3.3.3? Please show the results of typing the following commamds and substituting for "python3.3" whatever command name you are using that causes the segfault.
>
> python3.3 -c 'import sys;print(sys.version)'
> python3.3 -c 'import readline;print(readline.__file__)'
> ls -l $(python3.3 -c 'import readline;print(readline.__file__)')
> python3.3
> 1
> 2
> 3
> quit()
>
> You should see:
> $ python3.3 -c 'import sys;print(sys.version)'
> 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
> $ python3.3 -c 'import readline;print(readline.__file__)'
> /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
> $ ls -l $(python3.3 -c 'import readline;print(readline.__file__)')
> -rwxrwxr-x 1 root admin 66472 Nov 16 23:40 /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so
> $ python3.3
> Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> 1
> 1
>>>> 2
> 2
>>>> 3
> 3
>>>> quit()
> $
>
>
Python tracker \report@bugs.python.org\ \http://bugs.python.org/issue19651\
Your Python installation picks up the wrong readline module.
Christian is correct. /System/Library/Frameworks is the location of the Apple supplied system Pythons and further Apple does not ship any version of Python 3. So you should figure out how your /System/Library got altered and restore it to release state.
Many thanks for your prompt assistance
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields: ```python assignee = 'https://github.com/ronaldoussoren' closed_at =
created_at =
labels = ['OS-mac', 'invalid', 'type-crash']
title = 'Mac OSX 10.9 segmentation fault 11 with Python 3.3.3'
updated_at =
user = 'https://bugs.python.org/johndobson'
```
bugs.python.org fields:
```python
activity =
actor = 'johndobson'
assignee = 'ronaldoussoren'
closed = True
closed_date =
closer = 'johndobson'
components = ['macOS']
creation =
creator = 'johndobson'
dependencies = []
files = []
hgrepos = []
issue_num = 19651
keywords = []
message_count = 6.0
messages = ['203347', '203379', '203387', '203388', '203389', '203390']
nosy_count = 5.0
nosy_names = ['ronaldoussoren', 'christian.heimes', 'ned.deily', 'hynek', 'johndobson']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue19651'
versions = ['Python 3.3']
```