Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refcount error in pwd module #51114

Closed
caglar10ur mannequin opened this issue Sep 8, 2009 · 4 comments
Closed

Refcount error in pwd module #51114

caglar10ur mannequin opened this issue Sep 8, 2009 · 4 comments
Labels
type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@caglar10ur
Copy link
Mannequin

caglar10ur mannequin commented Sep 8, 2009

BPO 6865
Nosy @benjaminp
Files
  • pwdmodule_refcount_fix.patch: pwdmodule_refcount_fix.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-09-08.23:04:39.565>
    created_at = <Date 2009-09-08.19:10:40.164>
    labels = ['type-crash']
    title = 'Refcount error in pwd module'
    updated_at = <Date 2009-09-09.14:20:59.229>
    user = 'https://bugs.python.org/caglar10ur'

    bugs.python.org fields:

    activity = <Date 2009-09-09.14:20:59.229>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-09-08.23:04:39.565>
    closer = 'benjamin.peterson'
    components = []
    creation = <Date 2009-09-08.19:10:40.164>
    creator = 'caglar10ur'
    dependencies = []
    files = ['14863']
    hgrepos = []
    issue_num = 6865
    keywords = ['patch']
    message_count = 4.0
    messages = ['92425', '92437', '92447', '92452']
    nosy_count = 2.0
    nosy_names = ['benjamin.peterson', 'caglar10ur']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue6865'
    versions = ['Python 2.5']

    @caglar10ur
    Copy link
    Mannequin Author

    caglar10ur mannequin commented Sep 8, 2009

    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>

    @caglar10ur caglar10ur mannequin added the type-crash A hard crash of the interpreter, possibly with a core dump label Sep 8, 2009
    @benjaminp
    Copy link
    Contributor

    Fixed in r74727.

    @caglar10ur
    Copy link
    Mannequin Author

    caglar10ur mannequin commented Sep 9, 2009

    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?

    @benjaminp
    Copy link
    Contributor

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant