Skip to content
Discussion options

You must be logged in to vote

@GitHubsSilverBullet Thanks, you found a weird memory leak bug! Due to a dangling pointer in the compile stage, there was a memory address which would never be garbage collected when compiling and running Python code on the fly.

This is why the weird 336/337 thing happens, and also why the bug only triggers with random quantities of code in between the two steps (calling a particular gc function didn't make a difference, I was able to reproduce calling print!)

If the first ab buffer ends up at this particular address then this will happen, and that address depended on what else is allocated in the Python heap when the code ran (hence changing buffer size helped, and also having different …

Replies: 3 comments 19 replies

Comment options

You must be logged in to vote
7 replies
@stinos
Comment options

@GitHubsSilverBullet
Comment options

@stinos
Comment options

@GitHubsSilverBullet
Comment options

@stinos
Comment options

Comment options

You must be logged in to vote
8 replies
@GitHubsSilverBullet
Comment options

@stinos
Comment options

@dhalbert
Comment options

@GitHubsSilverBullet
Comment options

@Josverl
Comment options

Comment options

You must be logged in to vote
4 replies
@projectgus
Comment options

@GitHubsSilverBullet
Comment options

@projectgus
Comment options

Answer selected by GitHubsSilverBullet
@GitHubsSilverBullet
Comment options

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