Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2004 10:40:48 GMT
From:      Zhao Xin <zhaoxin@staff.sina.com.cn>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/71396: the pysqlite's serious problem
Message-ID:  <200409051040.i85AemQ0081718@www.freebsd.org>
Resent-Message-ID: <200409051050.i85Ao7mq091722@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409051040.i85AemQ0081718>