KeyError address not present while loading dump
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Meliae |
New
|
Undecided
|
Unassigned |
Bug Description
From a dump generated on a win64 machine, there are various objects that reference things that don't exist and generate an error during loading.
This can minimally be reproduced with:
>>> from meliae.loader import load
>>> load(['
loaded line 0, 1 objs, 0.0 / 0.0 MiB read in 0.0s
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Dev\
if not manager.
File "C:\Dev\
(dict_obj,) = obj
File "_loader.pyx", line 501, in meliae.
File "_loader.pyx", line 497, in meliae.
File "_loader.pyx", line 778, in meliae.
KeyError: 'address 55131496 not present'
There's a comment about this problem at the call site, which addressing allows the dump to load at least:
# TODO: What to do if the object isn't present? I think returning a
# 'no-such-object' proxy would be nicer than returning nothing