This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amirouche
Recipients amirouche
Date 2021-01-11.14:48:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610376507.28.0.240401298439.issue42891@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-01-11 14:48:27amirouchesetrecipients: + amirouche
2021-01-11 14:48:27amirouchesetmessageid: <1610376507.28.0.240401298439.issue42891@roundup.psfhosted.org>
2021-01-11 14:48:27amirouchelinkissue42891 messages
2021-01-11 14:48:27amirouchecreate
Morty Proxy This is a proxified and sanitized view of the page, visit original site.