A bug report that says only “it crashes” goes nowhere. Ubuntu has a command that gathers the package versions and system details itself.
Point it at a package, or at a running process ID:
ubuntu-bug openssh-server
ubuntu-bug 1234
For kernel problems the name is linux. On a server without a desktop it falls back to apport-cli, which asks its questions in the terminal. You can also keep the report in a file and look at it, or send it from another machine later:
apport-cli --save=report.apport openssh-server
less report.apport
A crash that already happened often left a file behind:
ls /var/crash/
ubuntu-bug /var/crash/_usr_bin_example.1000.crash
Even when I do not plan to file anything, the saved report is a tidy summary to paste from when asking for help.
Read the contents before you share them. Apport collects a lot of local information, and logs can contain host names, user names or paths you would rather keep to yourself. A crash dump can include data that was in the program’s memory. Submitting needs a Launchpad account, and the report is meant for packages from Ubuntu. For software from another source, report to its own project.
Further reading: ubuntu-bug man page