ports/71396: the pysqlite's serious problem
Zhao Xin
zhaoxin at staff.sina.com.cn
Sun Sep 5 10:50:07 UTC 2004
>Number: 71396
>Category: ports
>Synopsis: the pysqlite's serious problem
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 05 10:50:07 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Zhao Xin
>Release: FreeBSD 4.10-Stable
>Organization:
woodpecker.org.cn
>Environment:
FreeBSD zxtest.sina.com.cn 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Aug 20 06:32:54 CST 2004 root at hdtest.sina.com.cn:/usr/src
/sys/compile/HDTEST i386
>Description:
the pysqlite has a well-known bug when access sqlite database many times. It can cause python core dump
with "fatal python error: deallocating None" message.
>How-To-Repeat:
access sqlite database exceeds about 200 times, maybe 400-1000 times with one process, then python will core dump
>Fix:
add these patch to /usr/ports/databases/py-PySQLite/files
--- patch-_sqlite.c begins here ---
--- _sqlite.c
+++ _sqlite.c
@@ -755,7 +755,7 @@
if (logfile == Py_None)
{
- Py_DECREF(logfile);
+ /* Py_DECREF(logfile); */
Py_INCREF(Py_None);
return Py_None;
--- patch-_sqlite.c ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list