[issue6083] Reference counting bug in setrlimit

2010-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-

[issue6083] Reference counting bug in setrlimit

2009-05-26 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: loewis -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6083] Reference counting bug in setrlimit

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: IMO, any refcounting bug has the potential as a security risk. So I think we should deprecate this with a warning, and eventually remove it, as billm proposes. It's probably debatable whether to backport the warning to 2.6 or earlier; I think we shouldn't, as

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: That is a good point. IMHO we'll be fine with a warning in the docs, and fixing our own two instances. Martin, what do you think? -- assignee: -> loewis nosy: +georg.brandl, loewis ___ Python tracker

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Bill McCloskey
New submission from Bill McCloskey : The code for resource_setrlimit in Modules/resource.c does not handle reference counting properly. The following Python code segfaults for me on Ubuntu 8.10 in Python 2.5.2 and also a custom-built 2.6.1. -- import resource l = [0, 0] class MyNum: def __