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

Free and malloc related issues after upgrade #508

Open
ErkoKnoll opened this issue Nov 18, 2024 · 0 comments
Open

Free and malloc related issues after upgrade #508

ErkoKnoll opened this issue Nov 18, 2024 · 0 comments

Comments

@ErkoKnoll
Copy link

ErkoKnoll commented Nov 18, 2024

Hi,

I know it's not much to go on, and cannot be reproduce easily, but I just wanted to flag this. We're running untrusted user code using isolated-vm within AWS Lambdas. We recently upgraded isolated-vm from 4.7.2 to 5.0.1 and from Node 18 to Node 20 Lambda runtime and started noticing occasional errors related to memory cleanup or allocations, which seem to be happening at the tail end of the script execution, in the cleanup phase. They are quite infrequent, couple of times per 100k executions or so, so not a massive issue, but seems to indicate a bug in the C++ side of the business.

We have observed following errors:

  • corrupted double-linked list (not small)
  • malloc(): largebin double linked list corrupted (nextsize)
  • Don't have the exact error at hand, but it was about trying to call free() on an invalid pointer.

Unfortunately these native errors don't come with a stack trace, so it is difficult to say in which part the error is originating from, whether it is Node's, V8's or isolated-vm's native code that is causing these errors.

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

1 participant