[ python-Bugs-1430436 ] recursive __getattr__ in thread crashes BSDs
SourceForge.net
noreply at sourceforge.net
Mon Feb 13 05:44:00 CET 2006
Bugs item #1430436, was opened at 2006-02-12 22:35
Message generated for change (Comment added) made by aaronsw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1430436&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Aaron Swartz (aaronsw)
Assigned to: Nobody/Anonymous (nobody)
Summary: recursive __getattr__ in thread crashes BSDs
Initial Comment:
The following code consistently crashes Python 2.4 on Mac OS X:
import threading
class foo:
def __getattr__(self, x): self.foo
def j(): foo().bar
t = threading.Thread(target=j, args=())
t.start()
----------------------------------------------------------------------
>Comment By: Aaron Swartz (aaronsw)
Date: 2006-02-12 22:44
Message:
Logged In: YES
user_id=122141
Since the indenting was off above, I've attached the code.
----------------------------------------------------------------------
Comment By: Aaron Swartz (aaronsw)
Date: 2006-02-12 22:41
Message:
Logged In: YES
user_id=122141
I've also tested it on FreeBSD and it has the same problem (Segmentation fault
(core dumped)).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1430436&group_id=5470
More information about the Python-bugs-list
mailing list