This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Segfault while operating on closed sqlite3 cursor.
Type: crash Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ghaering Nosy List: ghaering, nnorwitz, pjdavis, schmir
Priority: release blocker Keywords:

Created on 2008-03-30 16:43 by pjdavis, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
sqlite_segfault.py pjdavis, 2008-03-30 16:43 Script exhibiting the segfault
Messages (5)
msg64753 - (view) Author: Paul Davis (pjdavis) Date: 2008-03-30 16:43
Replicated on:

#Ubuntu 7.0
Python 2.5.1 (r251:54863, Mar  7 2008, 03:39:23) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2

#OS 10.4.11
Python 2.5.1 (r251:54863, Oct 26 2007, 16:52:32) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin

#OS 10.5.2
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
msg64792 - (view) Author: Ralf Schmitt (schmir) Date: 2008-03-31 20:46
this works with python 2.6.
for python 2.5.1 I get the following gdb backtrace:
(gdb) bt
#0  0x00002b0d95118e2d in cursor_iternext (self=0x2b0d93bae870)
    at /root/src/Python-2.5.1/Modules/_sqlite/cursor.c:854
#1  0x00002b0d93dd1769 in wrap_next (self=0x2b0d94085b50,
args=0x2b0d93b5f468, 
    wrapped=0x2b0d95118d90) at Objects/typeobject.c:3897
#2  0x00002b0d93d7e0e3 in PyObject_Call (func=0x2b0d94085b50, 
    arg=0x2b0d93b5f468, kw=0x2b0d95118d90) at Objects/abstract.c:1860
#3  0x00002b0d93df9549 in PyEval_EvalFrameEx (f=0x664430, 
    throwflag=<value optimized out>) at Python/ceval.c:3775
#4  0x00002b0d93dfe308 in PyEval_EvalCodeEx (co=0x2b0d93ba8300, 
    globals=<value optimized out>, locals=<value optimized out>, args=0x0, 
    argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:2831
#5  0x00002b0d93dfe422 in PyEval_EvalCode (co=0x2b0d94085b50, 
    globals=0x2b0d93b5f468, locals=0x2b0d95118d90) at Python/ceval.c:494
#6  0x00002b0d93e20f01 in PyRun_FileExFlags (fp=0x601010, 
    filename=0x7fff16f87a77 "sqlite_segfault.py", start=<value optimized
out>, 
    globals=0x6246d0, locals=0x6246d0, closeit=1, flags=0x7fff16f86600)
    at Python/pythonrun.c:1271
#7  0x00002b0d93e2119b in PyRun_SimpleFileExFlags (fp=0x601010, 
    filename=0x7fff16f87a77 "sqlite_segfault.py", closeit=1, 
    flags=0x7fff16f86600) at Python/pythonrun.c:877
#8  0x00002b0d93e29f2a in Py_Main (argc=<value optimized out>, 
    argv=<value optimized out>) at Modules/main.c:523
msg64958 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2008-04-05 02:58
Gerhard, could you take a look?
msg65030 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2008-04-06 11:06
Thanks for reporting this. It's fixed in r62183 in the 2.5 maintenance
branch.
msg65048 - (view) Author: Paul Davis (pjdavis) Date: 2008-04-06 18:17
No prob.

On Sun, Apr 6, 2008 at 7:06 AM, Gerhard Häring <report@bugs.python.org> wrote:
>
>  Gerhard Häring <gh@ghaering.de> added the comment:
>
>  Thanks for reporting this. It's fixed in r62183 in the 2.5 maintenance
>  branch.
>
>  ----------
>  resolution:  -> fixed
>  status: open -> closed
>
>
>
>  __________________________________
>  Tracker <report@bugs.python.org>
>  <http://bugs.python.org/issue2515>
>  __________________________________
>
History
Date User Action Args
2022-04-11 14:56:32adminsetgithub: 46767
2008-04-06 18:17:36pjdavissetmessages: + msg65048
2008-04-06 11:06:51ghaeringsetstatus: open -> closed
resolution: fixed
messages: + msg65030
2008-04-05 02:59:49nnorwitzsetpriority: release blocker
2008-04-05 02:58:12nnorwitzsetassignee: ghaering
messages: + msg64958
nosy: + ghaering, nnorwitz
2008-03-31 20:46:11schmirsetnosy: + schmir
messages: + msg64792
2008-03-30 16:43:43pjdaviscreate