Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upon garbage collection, nested struct property is corrupted #32

Open
hunterlester opened this issue Aug 13, 2018 · 1 comment
Open

Comments

@hunterlester
Copy link

Minimal reproduction of the issue: https://github.com/hunterlester/minimum-ref-struct-corruption

Notice that the 3rd line of the log output is not corrupted whereas the 2nd nested value is corrupted:

Running garbage collection...
authGranted object afte gc:  { name: '�_n9a\u0002', 'ref.buffer': <Buffer@0x00000261396F3910 18 86 6c 39 61 02 00 00> }
Unnested access container entry after gc:  { name: 'apps/net.maidsafe.examples.mailtutorial', 'ref.buffer': <Buffer@0x00000261396F3B10 60 68 6e 39 61 02 00 00> }
Globally assigned values after gc:  apps/net.maidsafe.examples.mailtutorial  _publicNames
@ZFail
Copy link

ZFail commented Jun 9, 2019

Working online reproduction that shows the problem: https://repl.it/repls/FarflungTallInterfacestandard
Workaround: revert optimization changes from this commit: 252ad69#diff-7e303bd4db5b70ed2ea32bff040ca830
Or my pr: #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants