[New-bugs-announce] [issue42891] segfault with gunicorn and a library made with cython bindings
Amirouche Boubekki
report at bugs.python.org
Mon Jan 11 09:48:27 EST 2021
New submission from Amirouche Boubekki <amirouche.boubekki at gmail.com>:
Here is a simple way to reproduce:
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()
In my real program, if I add 'global db' in the function `app`, it does not segfault.
program: https://git.sr.ht/~amirouche/segfault
trace: https://wyz.fr/0I-MO
----------
messages: 384836
nosy: amirouche
priority: normal
severity: normal
status: open
title: segfault with gunicorn and a library made with cython bindings
type: crash
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42891>
_______________________________________
More information about the New-bugs-announce
mailing list