Wednesday, March 2, 2016

launchpad - How to report a system bug


I'm dealing with this issue: Ubuntu won't shutdown (stuck on "Stopping VirtualBox kernel modules")


and I almost lost my nerves when I wanted to report a bug. I'm studying this "How to report a bug" topic for two hours now and I still feel like a total newby.


First I go here https://bugs.launchpad.net/ubuntu/ and try to click on "Report a bug" link which takes me here: https://help.ubuntu.com/community/ReportingBugs and I actually read that article but I'm still lost. When I came to the "System crash" there's just one sentence:


If your system lockups up, freezes, logs you out, etc.,
then this is not an application crash, but a system crash.
Please see below, and consult the following article for
these types of problems
https://help.ubuntu.com/community/DebuggingSystemCrash.

So does it say that you cannot report a system crash bug? Because on that "DebuggingSystemCrash" article there's nothing about reporting a bug.


Then I came here on askubuntu and found questions like this: How do I report a bug? ...but again none of them helped me. They all had a bug about some application. So they just ran "ubuntu-bug PID, but I can't do that because I don't know the PID neither the package where the bug is. It just happens during shutdown process.


Where are the good old fashion days when you just went to launchpad and clicked on "Report a bug" and that was it. Maybe that caused a lot of bad reports, but the new way people just won't report bugs if they don't find out how...



Determining Where Failure Occurs


If your system fails to shut down, and the last text you see tells you that it is trying to unload a particular kernel module (or perform any other particular task), and there is no indication to the right of it, on the same line, that it succeeded or failed, then the problem is almost certainly with that specific action, and not with whatever comes next. In this situation, you can report a bug documenting the failure of the kernel module to unload.


Reporting a Bug Affecting a Kernel Module


If you have a bug that is due kernel modules provided by a particular, non-kernel package, you can report the bug against that package. If there is actually a kernel service running (ps ax shows kernel threads as well as normal processes) for the module, which you believe is causing the problem, then you can run ubuntu-bug with its PID if you can run ubuntu-bug at all.


Since you likely cannot run any commands in this situation, and since there is often no running process that is clearly responsible, after rebooting, you should instead run:


ubuntu-bug packagename

Here, that's somewhat difficult--the VirtualBox userspace program is provided by virtualbox. VirtualBox kernel modules for virtualization hosts are typically built from source, which is provided by virtualbox-dkms.


I would report this bug against virtualbox-dkms (assuming VirtualBox compiled and installed kernel modules on your machine). The technical details of the bug would likely indicate what package is best, and it is not always practical to determine what package a bug is best considered to affect, before reporting the bug. So you do your best. It can always be changed later on Launchpad, either by you or by someone else (usually a triager or developer).


If you wanted to report a bug against a kernel module that ships with the kernel, you could report it against linux:


ubuntu-bug linux

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...