Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-274

Crash in garbage collector

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.8
    • 1.1.9
    • DBAPI 2.0
    • None
    • OS: Windows 11
    • 3.8+

    Description

      When running a script without closing connection and cursor python sometimes crashes when closing these objects via garbage collector (Only reproducable on Windows).

      Instead of if tp_dealloc method, objects should be cleared in tp_finalize.

      import mariadb
       
      c=mariadb.connect(user="root", db="test")
      cursor=c.cursor()
      cursor.execute("select * from t1")
      

      $ python test.py
      Windows fatal exception: access violation
       
      Current thread 0x00004c88 (most recent call first):
        <no Python frame>
      

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.