-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Make backtrace code read the dSYM data #17395
Labels
Comments
pro.mathias.lang (@Geod24) commented on 2020-04-19T08:30:00ZFor reference, more informations about the scheme can be found here: http://wiki.dwarfstd.org/index.php?title=Apple%27s_%22Lazy%22_DWARF_Scheme
The same person has written a SO answer here: https://stackoverflow.com/a/12827463 |
pro.mathias.lang (@Geod24) commented on 2021-09-28T00:10:43ZI have a WIP locally so anyone interested, feel free to contact me.
As a reference, this is how LLVM looks up UUID: https://lldb.llvm.org/use/symbols.html |
jbc.engelen (@JohanEngelen) commented on 2021-12-30T14:54:55ZHi Matthias,
Have you considered letting druntime call an external symbolizer like llvm-symbolizer?
https://llvm.org/docs/CommandGuide/llvm-symbolizer.html
llvm-symbolizer will do all the heavy lifting of interpreting dSYM. llvm-symbolizer does not even require the generation of dSYM folder by dsymutil; it's what Address Sanitizer uses, and it works fine for me on macOS.
-Johan |
johanengelen commented on 2022-12-17T16:43:46ZLDC druntime implementation using `atos`: https://github.com/ldc-developers/ldc/pull/4291 |
sludwig (@s-ludwig) commented on 2024-03-02T11:43:43ZJust a comment regarding the practicality of the atos approach, which is now also being adopted by DMD - we've had quite bad experiences with this in most situations:
- On some development machines, the call stack terminates after two frames, without any useful information
- In production, it is not possible at all to get useful stack traces from user installations
- Utmost care must be taken to not throw exceptions frequently, because an atos run can easily block the thread for 100ms (or rather not to log the associated stack traces frequently)
All in all, while the earlier situation without line numbers was pretty bad, it has become almost as bad as it can get in our case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mathias LANG (@Geod24) reported this on 2020-01-16T08:30:19Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=20510
CC List
Description
The text was updated successfully, but these errors were encountered: