Skip to content

Segfault while operating on closed sqlite3 cursor. #46767

Closed

Description

@pjdavis
mannequin
BPO 2515
Files
  • sqlite_segfault.py: Script exhibiting the segfault
  • 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 2008-04-06.11:06:51.476>
    created_at = <Date 2008-03-30.16:43:43.782>
    labels = ['library', 'type-crash', 'release-blocker']
    title = 'Segfault while operating on closed sqlite3 cursor.'
    updated_at = <Date 2008-04-06.18:17:36.471>
    user = 'https://bugs.python.org/pjdavis'

    bugs.python.org fields:

    activity = <Date 2008-04-06.18:17:36.471>
    actor = 'pjdavis'
    assignee = 'ghaering'
    closed = True
    closed_date = <Date 2008-04-06.11:06:51.476>
    closer = 'ghaering'
    components = ['Library (Lib)']
    creation = <Date 2008-03-30.16:43:43.782>
    creator = 'pjdavis'
    dependencies = []
    files = ['9903']
    hgrepos = []
    issue_num = 2515
    keywords = []
    message_count = 5.0
    messages = ['64753', '64792', '64958', '65030', '65048']
    nosy_count = 4.0
    nosy_names = ['nnorwitz', 'ghaering', 'schmir', 'pjdavis']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue2515'
    versions = ['Python 2.5']

    Activity

    1. pjdavis commented on Mar 30, 2008

      pjdavismannequin
      MannequinAuthor

      Replicated on:

      #Ubuntu 7.0
      Python 2.5.1 (r251:54863, Mar 7 2008, 03:39:23)
      [GCC 4.1.3 2007092 (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

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Mar 30, 2008
    3. schmir commented on Mar 31, 2008

      schmirmannequin
      Mannequin

      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

    4. nnorwitz commented on Apr 5, 2008

      nnorwitzmannequin
      Mannequin

      Gerhard, could you take a look?

    5. ghaering commented on Apr 6, 2008

      ghaeringmannequin
      Mannequin

      Thanks for reporting this. It's fixed in r62183 in the 2.5 maintenance
      branch.

    6. pjdavis commented on Apr 6, 2008

      pjdavismannequin
      MannequinAuthor

      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\>


    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      release-blockerstdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions