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: Simple segfault
Type: crash Stage: resolved
Components: macOS Versions: Python 3.3
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: Jona.Sassenhagen, hynek, ned.deily, ronaldoussoren, vstinner
Priority: normal Keywords:

Created on 2014-03-25 16:24 by Jona.Sassenhagen, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg214835 - (view) Author: Jona Sassenhagen (Jona.Sassenhagen) Date: 2014-03-25 16:24
Simple OOP segfault CtD using OSX 10.9.2

User@here:~/$ python3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> class Word(object):
...     def __init__(self, name, phon, semantics=None, askglobal=None, ask=None, giveglobal=None, give=None):
		self.name = name
		self.phon = phon
		self.semantics = semantics
		self.askglobal = askglobal
		self.ask = ask
		self.giveglobal = giveglobal
		self.give = give


class V(Word):
	def __init__(self)
		super().__init__(self,name,phon,semantics=None, askglobal=None, ask=None, giveglobal=None, give=None):
		self.askglobal = [nom,acc]

Segmentation fault: 11
msg214836 - (view) Author: Jona Sassenhagen (Jona.Sassenhagen) Date: 2014-03-25 16:30
In fact this minimal example is sufficient to cause a CtD (OSX 10.9.2):

$ python3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class Word(object):
...     def __init__(self):
Segmentation fault: 11
msg214837 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-03-25 16:35
Please upgrade to Python 3.3.5 or even to Python 3.4 (!) which are already fixed.
msg214838 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-03-25 16:44
Yes, upgrade. See Issue18458 for details.
History
Date User Action Args
2022-04-11 14:58:00adminsetgithub: 65263
2014-03-25 16:44:26ned.deilysetstatus: open -> closed
superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update
messages: + msg214838

resolution: duplicate
stage: resolved
2014-03-25 16:35:11vstinnersetnosy: + hynek, vstinner, ned.deily
messages: + msg214837
2014-03-25 16:30:54Jona.Sassenhagensetmessages: + msg214836
2014-03-25 16:24:58Jona.Sassenhagencreate