Bugs item #1086555, was opened at 2004-12-16 11:36 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1086555&group_id=5470
Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: DSM (dsm001) Assigned to: Nobody/Anonymous (nobody) Summary: refcount problem in syslog Initial Comment: Refcount problem in syslog.openlog, dating back awhile: Python 2.5a0 (#10, Dec 15 2004, 19:53:33) [GCC 3.3.3 (Debian 20040401)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import syslog [25538 refs] >>> syslog.openlog('a') [25539 refs] >>> syslog.openlog(0) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: ident string [, logoption [, facility]] [25575 refs] >>> syslog.openlog(0) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: ident string [, logoption [, facility]] [25574 refs] >>> syslog.openlog(0) Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: ident string [, logoption [, facility]] [25573 refs] [etc..] >>> syslog.openlog(0) Fatal Python error: /home/doug/cvsroot/python/dist/src/Modules/syslogmodule.c:62 object at 0x402d75d8 has negative ref count -4 Aborted ISTM there's a misplaced Py_XDECREF in syslog_openlog. It's fine as long as no log is open, but after that each failed PyArg_ParseTuple costs you a ref. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1086555&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com