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

Crash during destruction when using meta_function::new_index and coroutines #1594

Open
Maddimax opened this issue Apr 4, 2024 · 0 comments

Comments

@Maddimax
Copy link

Maddimax commented Apr 4, 2024

I attached a reproduction example to the ticket: main.cpp.txt

The example crashes during the m_entries.clear(); in the ~MyDynamic() destructor.

The crash only occurs if the test() function is started as a coroutine.

I sadly don't know enough about lua to see if this is a problem with lua itself, or something in sol2. Any help/hints would be greatly appreciated.

Build and reproduced on macOS 14,

clang++ --version                                                                                                                                              e0bb8f0 ✭ ✱ ◼
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
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