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: Mac OSX 10.9 segmentation fault 11 with Python 3.3.3
Type: crash Stage:
Components: macOS Versions: Python 3.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: christian.heimes, hynek, johndobson, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2013-11-19 10:05 by johndobson, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg203347 - (view) Author: John Dobson (johndobson) Date: 2013-11-19 10:05
2 consecutive commands into interactive shell still results in segmentation fault 11, patch 18458 reports skipped as patch not needed for 3.3
msg203379 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-11-19 14:26
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()
$
msg203387 - (view) Author: John Dobson (johndobson) Date: 2013-11-19 14:47
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>
> _______________________________________
msg203388 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-11-19 15:07
Your Python installation picks up the wrong readline module.
msg203389 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-11-19 15:17
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.
msg203390 - (view) Author: John Dobson (johndobson) Date: 2013-11-19 15:31
Many thanks for your prompt assistance
History
Date User Action Args
2022-04-11 14:57:53adminsetgithub: 63850
2013-11-19 15:31:37johndobsonsetstatus: open -> closed
resolution: not a bug
messages: + msg203390
2013-11-19 15:17:13ned.deilysetmessages: + msg203389
2013-11-19 15:07:03christian.heimessetnosy: + christian.heimes
messages: + msg203388
2013-11-19 14:47:07johndobsonsetmessages: + msg203387
2013-11-19 14:26:30ned.deilysetmessages: + msg203379
2013-11-19 10:06:19vstinnersetnosy: + ned.deily, hynek
2013-11-19 10:05:20johndobsoncreate