-
Notifications
You must be signed in to change notification settings - Fork 182
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
[WIP][RFC] Add a mini-guide for debugging packages and programs, to help with better issue reports #530
base: master
Are you sure you want to change the base?
Conversation
Just use a void-docs.md file directly.
src/contributing/debug.md
Outdated
- `backtrace`, which shows the function calls made until the application got to | ||
that place; | ||
- `info threads`, which shows information about threads in the program; | ||
- `break <function>`, which puts a breakpoint in a function that you may think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think any of this is nessecary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps keep only the backtrace part? Because that's what we want to get if someone says "this segfaults when I launch it".
src/contributing/debug.md
Outdated
for example, to access files that don't exist, and their programmer didn't | ||
implement a proper fallback or error message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be shortened.
src/contributing/debug.md
Outdated
GDB is especially useful when an application crashes with `SIGABRT` or `SIGSEGV` | ||
(see [signal(7)](https://man.voidlinux.org/signal.7), since it will stop | ||
execution at that point and you can print a backtrace showing all the function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this is needed either
src/contributing/debug.md
Outdated
After this is done, check if the issue persists. It should be noted that issues | ||
like this can indicate hardware issues in your storage media or RAM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might, but it also might not. I feel like this would lead to a lot of people going OH NO MY RAM IS DEAD when they actually powered off the computer in the middle of an upgrade or smth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
src/contributing/debug.md
Outdated
|
||
## Look at error messages attentively THIS NEEDS WORK | ||
|
||
Python programs, for example, complain loudly about missing modules and other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a list of different types of programs? I don't like this format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm making a second version.
``` | ||
$ DEBUGINFOD_URLS="https://debugingod.s.voidlinux.org" gdb --args <program> [arguments] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is not an example, its more of a 'syntax' i guess
- I would note the debuginfod server env variable to make it work separately.
src/contributing/index.md
Outdated
If you find an issue with a package and you manage to fix it, you can add your | ||
solution to the official package repository. New packages and updates are also | ||
welcome! To contribute to the Void packages repository, start by reading the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wordy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, but I'm not sure I improved it.
src/contributing/index.md
Outdated
void-packages repository. This makes maintainers aware of the issue, allows | ||
others to fix it, and can work as a place for anyone to share workarounds in the | ||
meantime. Remember to check the existing issues for your problem! There are also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence could be shortened to something like 'This gives the problem visibility to expedite fixing' or something like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it around a bit, not 100% sure yet.
src/contributing/index.md
Outdated
void-packages repository. This makes maintainers aware of the issue, allows | ||
others to fix it, and can work as a place for anyone to share workarounds in the | ||
meantime. Remember to check the existing issues for your problem! There are also | ||
some [things you can do to improve your bug report](./debug.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improve your bug report could be changed to something along the lines of assist us in finding the probelm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@fosslinux thanks for the review! I have updated it. |
Some of this might fit better in void-packages, like Issue templates and such. I'm open to suggestions.