You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks @mittonk for reporting the error - and sorry that it took this long for me to reply!
I can reproduce the error. It is most likely caused by the process exceeding the maximum number of mmaps, as defined in /proc/sys/vm/max_map_count, which at least on my machine is 65530.
Unfortunately the problem seems to be in realloc() which doesn't return NULL although it should in this situtation, see:
Using Python 2.6 and discodb 0.2 or 0.1:
Smaller collections of DiscoDB objects work as expected.
The text was updated successfully, but these errors were encountered: