Skip to content

Malloc assertion failure when 65k DiscoDB objects go out of scope #1

@mittonk

Description

@mittonk

Using Python 2.6 and discodb 0.2 or 0.1:

import discodb

data = {'foo': 'bar'}
arr = []
for x in xrange(65537):
    print x
    data_disco = discodb.DiscoDB(data)
    arr.append(data_disco)
print "Got to the end safely."
1
...
65535
65536
Got to the end safely.
python: malloc.c:3551: munmap_chunk: Assertion `ret == 0' failed.
Aborted

Smaller collections of DiscoDB objects work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions