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

test: Add test to call async callback #433

Merged
merged 6 commits into from
Dec 20, 2024
Merged

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Dec 19, 2024

Adds a test to call an asynchronous callback

  callbackAsyncPromise(callback: () => Promise<number>): Promise<number>

With this change, I can now reproduce the memory corruption bug:

- NitroExample(36309,0x104f4c580) malloc: Heap corruption detected, free list is damaged at 0x281e3f5a0
*** Incorrect guard value: 36979507128897
- NitroExample(36309,0x104f4c580) malloc: *** set a breakpoint in malloc_error_break to debug

I reported this already at the Swift compiler repo: swiftlang/swift#78292

The above crash has finally been fixed in #440!

Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Dec 20, 2024 11:43am

@mrousavy
Copy link
Owner Author

With this new test we now have this bug: swiftlang/swift#78292

@mrousavy mrousavy merged commit d0067b2 into main Dec 20, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

1 participant