Skip to content

Segmentation fault when close connection or cursor. #65

@DmEye

Description

@DmEye

I use python version 3.11.7.

Steps to reproduce:

  1. Create virtual environment and activate it
    python -m venv venv
    source venv/bin/activate
  2. Install firebird-driver:
    pip install firebird-driver
  3. Run the Firebird 5.0.3
    sudo systemctl start firebird.service
  4. Create python file and execute it:
import firebird.driver as fdb

if __name__ == '__main__':
    with fdb.connect('localhost:employee', user='SYSDBA', password='masterkey') as conn:
        with conn.cursor() as cursor:
            with cursor.prepare('SELECT COUNT(*) FROM JOB WHERE 11 < ?') as stmt:
                print(cursor.execute(stmt, (12,)).fetchone())

  1. See output:
(31,)
Ошибка сегментирования (образ памяти сброшен на диск)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions