classification
Title: Refcount error in pwd module
Type: crash Stage:
Components: Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, caglar10ur (2)
Priority: Keywords patch

Created on 2009-09-08 19:10 by caglar10ur, last changed 2009-09-09 14:20 by benjamin.peterson.

Files
File name Uploaded Description Edit Remove
pwdmodule_refcount_fix.patch caglar10ur, 2009-09-08 19:10 pwdmodule_refcount_fix.patch
Messages (4)
msg92425 - (view) Author: (caglar10ur) Date: 2009-09-08 19:10
Fix refcounting problem which causes a segfault for following test code;

--------------------------------------------------------
#include <python2.5/Python.h>

int main(void)
{
    int i;
    for (i = 0; i < 1000; ++i)
    {
        Py_Initialize();
        PyRun_SimpleString("import pwd\n");
        Py_Finalize();
    }
    return 0;
}
--------------------------------------------------------

Reported-by: Onur Küçük <onur@pardus.org.tr>
Signed-off-by: S.Çağlar Onur <caglar@pardus.org.tr>
msg92437 - (view) Author: Benjamin Peterson (benjamin.peterson) Date: 2009-09-08 23:04
Fixed in r74727.
msg92447 - (view) Author: (caglar10ur) Date: 2009-09-09 10:13
It seems Python 2.6.x also have same problem, will it be merged 
automatically (seems like svn-merge is used for this purpose) or do you 
want me to open a new bug against that version?
msg92452 - (view) Author: Benjamin Peterson (benjamin.peterson) Date: 2009-09-09 14:20
2009/9/9 caglar10ur <report@bugs.python.org>:
>
> caglar10ur <caglar@pardus.org.tr> added the comment:
>
> It seems Python 2.6.x also have same problem, will it be merged
> automatically (seems like svn-merge is used for this purpose) or do you
> want me to open a new bug against that version?

It's now backported.
History
Date User Action Args
2009-09-09 14:20:59benjamin.petersonsetmessages: + msg92452
2009-09-09 10:13:22caglar10ursetmessages: + msg92447
2009-09-08 23:04:39benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg92437

resolution: fixed
2009-09-08 19:10:40caglar10urcreate