Web Storage Maybe leaks SQLite connections when database initialization fails
オープン
まだ誰も着手していません。
sqlite
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
latest main branch
Platform
Subsystem
No response
What steps will reproduce the bug?
use broken db or many of condition
How often does it reproduce? Is there a required condition?
Every failed init
What is the expected behavior? Why is that the expected behavior?
A connection created by sqlite3_open() should be closed whenever database initialization fails. Repeated failed Web Storage operations should not increase the number of open file descriptors.
What do you see instead?
The number of open descriptors increases with every failed initialization attempt.
Additional information
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、失敗する Web Storage データベースの初期化を再現し、失敗時のパスにおける sqlite3_open() 接続のライフサイクルを追跡します。完了条件は、失敗した初期化がすべて接続をクローズし、失敗する Web Storage 操作を繰り返しても、オープン中のファイルディスクリプタ数が増加しなくなることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sqlite
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100