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

allocate_mappings returning a negative pointer offset #19

Open
steinybot opened this issue Feb 15, 2021 · 3 comments
Open

allocate_mappings returning a negative pointer offset #19

steinybot opened this issue Feb 15, 2021 · 3 comments

Comments

@steinybot
Copy link

Just wondering whether you have seen mozilla/source-map#412 by any chance? It looks as though allocate_mappings is returning a negative pointer offset.

@steinybot
Copy link
Author

So it turns out that there was a bug in my code where I was creating multiple consumers. I still feel like there could be an underlying problem here. It certainly isn't obvious from the error what the problem was. It's unclear what would happen if I legitimately needed to create a lot of consumers but perhaps the same problem?

Anyway here is a project that reproduces the issue: https://github.com/steinybot/bug-reports/tree/source-map/bad-ptr

@stahlbauer
Copy link

I am facing the same issue with source-map (creating many SourceMapConsumer). Would love to hear more about possible solutions or fixes.

@guimard
Copy link

guimard commented Jan 31, 2022

I'm also facing the same issue when trying to rebuild source-map/lib/mapping.wasm

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

3 participants