Message384836
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 |
|
| Date |
User |
Action |
Args |
| 2021-01-11 14:48:27 | amirouche | set | recipients:
+ amirouche |
| 2021-01-11 14:48:27 | amirouche | set | messageid: <1610376507.28.0.240401298439.issue42891@roundup.psfhosted.org> |
| 2021-01-11 14:48:27 | amirouche | link | issue42891 messages |
| 2021-01-11 14:48:27 | amirouche | create | |
|