-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: callback memory error #61147
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
Comments
Can you show us a complete standalone program that demonstrates the problem? |
https://github.com/mainjzb/go1.20.5_error |
#59724 Perhaps it's a related issue It's seem about GC break stack and heap |
|
I finally discovered the problem. The problem was that nf_EventHandler no escape . When the garbage collection (GC) occurred, it was being collected by the GC. Therefore, I redeclared a global variable, and the problem was resolved. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want call C++ dll that has C API , the one API has callback function as parameter.
when I alloc memory in callback funtion , my go program will exit.
What did you expect to see?
The program should not exit.
What did you see instead?
the output :
I see the Task Manager the process memroy increate to 8MB , process will exit in any way .
The text was updated successfully, but these errors were encountered: