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

Provide llvm debug packages for windows and linux gcc 12 #1799

Open
deadlocklogic opened this issue Nov 17, 2023 · 2 comments
Open

Provide llvm debug packages for windows and linux gcc 12 #1799

deadlocklogic opened this issue Nov 17, 2023 · 2 comments

Comments

@deadlocklogic
Copy link
Contributor

deadlocklogic commented Nov 17, 2023

I want to debug the crashes on the C++ side, but currently there is only 1 llvm debug package llvm-791523-linux-x64-gcc-9-Debug.tar.xz.
I am using Windows and linux with gcc 12.
Provided with a debugging pipeline, I can debug/locate the crashes better and maybe assist you with a fix.
Because RelWithDebInfo doesn't apparently gives a crash log on Windows.
Thanks.

@tritao
Copy link
Collaborator

tritao commented Nov 17, 2023

When I need them I usually just compile them myself and upload them to GitHub, but we already have a fully scriptable CI that builds everything. It should be easy to change these workflows so they build debug packages instead, just add -debug to the build command and change the Lua archive name logic so it appends some -debug or something.

https://github.com/mono/CppSharp/blob/main/.github/workflows/llvm.yml
https://github.com/mono/CppSharp/actions/workflows/llvm.yml

https://github.com/mono/CppSharp/blob/main/.github/workflows/llvm-win.yml
https://github.com/mono/CppSharp/actions/workflows/llvm-win.yml

If you have the time to look into that, then that would be great.

Because RelWithDebInfo doesn't apparently gives a crash log on Windows.

The issue with these is all the inlined functions in LLVM/Clang won't have any entries in the call stack, which makes debugging almost impossible.

I'm currently on a time crunch for the following 2 weeks, most probably won't be able to look into anything CppSharp soon, but feel free to ask questions or ping me later and we can fix this.

@deadlocklogic
Copy link
Contributor Author

I tried with ubuntu gcc 9 unsuccessfully.

If you have the time to look into that, then that would be great.

I will take a look at the CI and seen what I can do.

The issue with these is all the inlined functions in LLVM/Clang won't have any entries in the call stack, which makes debugging almost impossible.

Yes I knew something like must be happening under the hood.

I'm currently on a time crunch for the following 2 weeks, most probably won't be able to look into anything CppSharp soon, but feel free to ask questions or ping me later and we can fix this.

No worries, we are not in a rush, I will open a PR which will add bindings generators for other languages and will start committing there slowly while benefiting from the CI.

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

2 participants