~amirouche/segfault

17ecb5246d62738b88cdc5d4134dac6dcd5c1512 — Amirouche 1 year, 7 months ago
reproduction
4 files changed, 67 insertions(+), 0 deletions(-)

A foobar.py
A poetry.lock
A pyproject.toml
A run.sh
A  => foobar.py +15 -0
@@ 1,15 @@
from lsm import LSM


db = LSM('db.sqlite')

def app(environ, start_response):
    """Simplest possible application object"""

    for (index, (key, value)) in enumerate(db[b'\x00':b'\xFF']):
        pass

    start_response(b'200', {})
    return b''

db.close()

A  => poetry.lock +35 -0
@@ 1,35 @@
[[package]]
name = "gunicorn"
version = "20.0.4"
description = "WSGI HTTP Server for UNIX"
category = "main"
optional = false
python-versions = ">=3.4"

[package.extras]
eventlet = ["eventlet (>=0.9.7)"]
gevent = ["gevent (>=0.13)"]
setproctitle = ["setproctitle"]
tornado = ["tornado (>=0.2)"]

[[package]]
name = "lsm-db"
version = "0.6.4"
description = "Python bindings for the SQLite4 LSM database."
category = "main"
optional = false
python-versions = "*"

[metadata]
lock-version = "1.1"
python-versions = "^3.8"
content-hash = "d3afd01cb6ccc04d80f4e60878e70033dc4e94194f87905dd956311507555881"

[metadata.files]
gunicorn = [
    {file = "gunicorn-20.0.4-py2.py3-none-any.whl", hash = "sha256:cd4a810dd51bf497552cf3f863b575dabd73d6ad6a91075b65936b151cbf4f9c"},
    {file = "gunicorn-20.0.4.tar.gz", hash = "sha256:1904bb2b8a43658807108d59c3f3d56c2b6121a701161de0ddf9ad140073c626"},
]
lsm-db = [
    {file = "lsm-db-0.6.4.tar.gz", hash = "sha256:1a5c76dec2fd2dcc6f34b442bc0495bd0bf09534467f48e90544acd62d9c38bf"},
]

A  => pyproject.toml +16 -0
@@ 1,16 @@
[tool.poetry]
name = "lsmdb"
version = "0.1.0"
description = ""
authors = ["Amirouche <amirouche@hyper.dev>"]

[tool.poetry.dependencies]
python = "^3.8"
lsm-db = "^0.6.4"
gunicorn = "^20.0.4"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

A  => run.sh +1 -0
@@ 1,1 @@
python -X dev -c "from gunicorn.app.wsgiapp import run; run()" --workers=1 foobar:app