Issue 21064: Simple segfault - Python tracker (original) (raw)

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

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