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

Debugbuild to crashlog #118

Open
GWRon opened this issue Feb 18, 2023 · 3 comments
Open

Debugbuild to crashlog #118

GWRon opened this issue Feb 18, 2023 · 3 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Feb 18, 2023

Wookie at discord asked for ways to autogenerate a kind of crashlog.
So you can hand out special builds to users experiencing crashes. Once it crashes you could collect certain information regarding source of the crash.

I suggested one way to achieve it: a wrapper binary which executes the debug build of the application of interest. If the debugger there kicks in the wrapper binary would command the debugger to spit out certain information...about current scope, backtrace etc.

While this could work (and the wrapper could be kinda generic..aka provided by bmx ng) it might be also something bmk possibly can provide .../ Build in the binary on request.
So instead of the debugger waiting for input it spits put a defined set of information (similar to the tree maxide spits out in the debug pane).

What do you think? What do you suggest to offer such a thing to your application's users?

@Kerntrick
Copy link

Kerntrick commented Feb 18, 2023

Could it be possible for the user(programmer) to have some access over 'bbOnDebugEnterScope' and 'bbOnDebugEnterStm' ?
It would be handy to at least walk/unwind that stack to a file or something in a end-user build.

@GWRon
Copy link
Contributor Author

GWRon commented Feb 18, 2023 via email

@GWRon
Copy link
Contributor Author

GWRon commented Feb 19, 2023

@Scaremonger linked to these on discord:

libc has backtraces:
https://www.gnu.org/software/libc/manual/html_node/Backtraces.html
There is also this library:
https://github.com/ianlancetaylor/libbacktrace

Some of us might be OK with having a backtrace based on the bcc generated C-code and it is better than having nothing at all.

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