[issue9743] __call__.__call__ chain cause crash when long enough

2016-09-08 Thread Christian Heimes

Christian Heimes added the comment:

I can no longer reproduce the crash with:

>>> def func(): pass
... 
>>> call = func.__call__
>>> while True:
... call = call.__call__


Tested with 2.7, 3.5 and 3.6dev.

--
nosy: +christian.heimes
resolution:  -> works for me
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-12 Thread Alex

Alex  added the comment:

I doubt there is a good usecase for it, nevertheless we should attempt to fix 
it, as segfaults are no good.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-12 Thread Éric Araujo

Éric Araujo  added the comment:

“Recursively getting __call__ method from existing __call__”
I wonder what is the use case for this.

--
nosy: +eric.araujo
versions:  -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Eric Smith

Eric Smith  added the comment:

Amaury: Good point. The Windows version is failing, too. A print statement at 
the end doesn't get executed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Alex

Alex  added the comment:

This seems to be another case of "C stack depth not reflected in the stack 
counter".

--
nosy: +alex

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

On Windows, a stack overflow often causes the program to silently exit.
Try to add some print statement at the end and see if it executes.

--
nosy: +amaury.forgeotdarc

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Eric Smith

Eric Smith  added the comment:

I can duplicate this as a segmentation fault under 2.7 on Mac OS, but not under 
Windows 2.6 (ActiveState).

What platform are you using, and what output do you see?

--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-02 Thread Lily

New submission from Lily <2ch.ow...@gmail.com>:

Recursively getting __call__ method from existing __call__ causes interpreter 
infinitely grow in memory and calling resulting 
__call__.__call__...__call__.__call__() chain results in crash.

Platform: Windows 7 (x64)
Version: Python 2.7 (r27:82525) win32

Suggested solution:
* let the obj.__call__.__call__ point to obj.__call__

--
components: Interpreter Core
files: ###crasher.py
messages: 115380
nosy: modchan
priority: normal
severity: normal
status: open
title: __call__.__call__ chain cause crash when long enough
type: crash
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file18711/###crasher.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com