How:Efficient Bug Reporting
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Thi document is created by Semen Cirit in order to standardize the efficient bug reporting . For suggestion and contribution please send an e-mail:'''scirit{{at}}pardus.org.tr''' | Thi document is created by Semen Cirit in order to standardize the efficient bug reporting . For suggestion and contribution please send an e-mail:'''scirit{{at}}pardus.org.tr''' | ||
| Line 12: | Line 4: | ||
= Before reporting a bug = | = Before reporting a bug = | ||
| − | Before reporting a bug, you should be sure that the problem that you have observed is a bug.For example, before reporting a bug like | + | Before reporting a bug, you should be sure that the problem that you have observed is a bug.For example, before reporting a bug like "my monitor is not working", you should be sure that monitor is on and its cable is plugged in. Try to find a way from e-mail lists and forums. After being sure that this is not a simple problem like mentioned, please control that an update is released about this problem. If an update exist, please update your system and try to reproduce your bug. |
::* Bugzilla is not an help desk. Please write your questions to [http://liste.pardus.org.tr/mailman/listinfo/pardus-kullanicilari mailling lists] or forums. | ::* Bugzilla is not an help desk. Please write your questions to [http://liste.pardus.org.tr/mailman/listinfo/pardus-kullanicilari mailling lists] or forums. | ||
| Line 23: | Line 15: | ||
::* A smooth bug report is very important for the developper or maintainer. Therefore, first you have to read [http://bugs.pardus.org.tr/page.cgi?id=bug-writing.html#why bug reporting guide] very carefully !!! | ::* A smooth bug report is very important for the developper or maintainer. Therefore, first you have to read [http://bugs.pardus.org.tr/page.cgi?id=bug-writing.html#why bug reporting guide] very carefully !!! | ||
| − | ::* The bug title will be explanatory. Please give a general explanation of the bug like | + | ::* The bug title will be explanatory. Please give a general explanation of the bug like "ATI driver does not work with X", but not give titles like "Problem", "Help", "Attention". |
::* A template is created in order to report bugs efficiently. This template is prepared for every Pardus user and Pardus test team. | ::* A template is created in order to report bugs efficiently. This template is prepared for every Pardus user and Pardus test team. | ||
| Line 55: | Line 47: | ||
::* If you can't figure out to which product you have to assign the bug but know the name of the application, you can find it with the following command: | ::* If you can't figure out to which product you have to assign the bug but know the name of the application, you can find it with the following command: | ||
| − | + | <pre> | |
| − | pisi sf `which | + | pisi sf `which <filename>` |
| − | + | </pre> | |
The filename is the name of the file(a configuration file, a library, an executable application, etc.) which seems problematic to you. | The filename is the name of the file(a configuration file, a library, an executable application, etc.) which seems problematic to you. | ||
| Line 63: | Line 55: | ||
Let's assume that the systemsettings application crashes when trying to switch the color scheme but you don't know which package actually ships systemsettings. Just type the command below to find it out: | Let's assume that the systemsettings application crashes when trying to switch the color scheme but you don't know which package actually ships systemsettings. Just type the command below to find it out: | ||
| − | + | <pre> | |
pisi sf `which systemsettings` | pisi sf `which systemsettings` | ||
Searching for /usr/kde/4/bin/systemsettings | Searching for /usr/kde/4/bin/systemsettings | ||
Package kdebase-workspace has file usr/kde/4/bin/systemsettings | Package kdebase-workspace has file usr/kde/4/bin/systemsettings | ||
| − | + | </pre> | |
So this means that, the bug should be assigned to the kdebase-workspace package. | So this means that, the bug should be assigned to the kdebase-workspace package. | ||
| Line 76: | Line 68: | ||
Type the following command and enter your root password: | Type the following command and enter your root password: | ||
| − | + | <pre> | |
su - | su - | ||
| − | + | </pre> | |
== For installation bugs: == | == For installation bugs: == | ||
::*Please add: | ::*Please add: | ||
| − | /var/log/yaliInstall.log file and output of fdisk - l | + | /var/log/yaliInstall.log file and output of fdisk - l > fdisk.txt |
to bug report. | to bug report. | ||
| Line 94: | Line 86: | ||
==For X server bugs:== | ==For X server bugs:== | ||
::* Please add these outputs to the bug report: | ::* Please add these outputs to the bug report: | ||
| − | + | <pre> | |
| − | lspci -nn | + | lspci -nn > lspci.txt |
| − | dmesg | + | dmesg > dmesg.txt |
| − | lsmod | + | lsmod > lsmod.txt |
| − | + | </pre> | |
::* If keyboard and the computer work, the X server logs are also very important. | ::* If keyboard and the computer work, the X server logs are also very important. | ||
| − | + | <pre> | |
| − | cat /var/log/Xorg.0.log | + | cat /var/log/Xorg.0.log > xserver.txt |
| − | + | </pre> | |
::* If keyboard and the computer do not work, please follow these steps: | ::* If keyboard and the computer do not work, please follow these steps: | ||
Restart your computer, open in vesa mode and take the log. | Restart your computer, open in vesa mode and take the log. | ||
| − | + | <pre> | |
cat /var/log/Xorg.0.log.old | cat /var/log/Xorg.0.log.old | ||
| − | + | </pre> | |
If X crashed you can take all outputs using this way: | If X crashed you can take all outputs using this way: | ||
| Line 116: | Line 108: | ||
::* Plug a usb stick to your computer. | ::* Plug a usb stick to your computer. | ||
::* Please mount it using this command. | ::* Please mount it using this command. | ||
| − | + | <pre> | |
| − | mount /dev/ | + | mount /dev/<your_usb_stick_partition> /mnt/flash |
| − | + | </pre> | |
::* Copy the outputs to usb stick. | ::* Copy the outputs to usb stick. | ||
| − | + | <pre> | |
| − | cp | + | cp <output> /mnt/flash |
| − | + | </pre> | |
::* unmount the usb stick. | ::* unmount the usb stick. | ||
| − | + | <pre> | |
| − | umount /dev/ | + | umount /dev/<your_usb_stick_partition> |
| − | + | </pre> | |
==For pardus specific applications bugs:== | ==For pardus specific applications bugs:== | ||
For many situation COMAr log file can be useful: | For many situation COMAr log file can be useful: | ||
| − | + | <pre> | |
| − | cat /var/log/comar3/trace.log | + | cat /var/log/comar3/trace.log > comar.txt |
| − | + | </pre> | |
=== For network-manager:=== | === For network-manager:=== | ||
To learn network device: | To learn network device: | ||
| − | + | <pre> | |
| − | lspci -nn | + | lspci -nn > lspci.txt |
| − | + | </pre> | |
Ethernet related bug: | Ethernet related bug: | ||
| − | + | <pre> | |
| − | ifconfig -a | + | ifconfig -a > ifconfig.txt |
| − | + | </pre> | |
Wireless related bugs : | Wireless related bugs : | ||
| − | + | <pre> | |
| − | iwconfig | + | iwconfig > iwconfig.txt |
| − | + | </pre> | |
===For disk-manager:=== | ===For disk-manager:=== | ||
| − | + | <pre> | |
| − | fdisk -l | + | fdisk -l > fdisk.txt |
| − | cat /etc/fstab | + | cat /etc/fstab > fstab.txt |
| − | + | </pre> | |
===For service-manager:=== | ===For service-manager:=== | ||
| − | + | <pre> | |
| − | service -N | + | service -N > service.txt |
| − | + | </pre> | |
===For boot-manager:=== | ===For boot-manager:=== | ||
| − | + | <pre> | |
| − | cat /boot/grub/grub.conf | + | cat /boot/grub/grub.conf > grub.txt |
| − | + | </pre> | |
===For firewall-manager:=== | ===For firewall-manager:=== | ||
| − | + | <pre> | |
| − | service -N | + | service -N > service.txt |
| − | iptables | + | iptables > iptables.txt |
| − | + | </pre> | |
==For Kamera/video devices bugs:== | ==For Kamera/video devices bugs:== | ||
Please close all camera and video related applications before executing this command. | Please close all camera and video related applications before executing this command. | ||
| − | + | <pre> | |
| − | dmesg | + | dmesg > dmesg.txt |
| − | cat /var/log/syslog | + | cat /var/log/syslog > syslog.txt |
| − | lsusb | + | lsusb > lsusb.txt |
| − | test-webcam | + | test-webcam > webcam.txt |
| − | + | </pre> | |
==For adio device related bugs:== | ==For adio device related bugs:== | ||
Execute below command with root and keep note WWW link: | Execute below command with root and keep note WWW link: | ||
| − | + | <pre> | |
alsa-info | alsa-info | ||
| − | + | </pre> | |
| + | [http://onlinehomeworkhelper.org/ homework help] | ||
Latest revision as of 21:30, 2 April 2012
Thi document is created by Semen Cirit in order to standardize the efficient bug reporting . For suggestion and contribution please send an e-mail:scirit
pardus.org.tr
This documentation explain and; what should we look for when reporting bugs, how we can report a bug efficiently, how bug tracking system can not be used incorrectly.
Contents
|
Before reporting a bug
Before reporting a bug, you should be sure that the problem that you have observed is a bug.For example, before reporting a bug like "my monitor is not working", you should be sure that monitor is on and its cable is plugged in. Try to find a way from e-mail lists and forums. After being sure that this is not a simple problem like mentioned, please control that an update is released about this problem. If an update exist, please update your system and try to reproduce your bug.
- Bugzilla is not an help desk. Please write your questions to mailling lists or forums.
- Please never report a bug that an other person encountered or a bug of about a hardware that you do not have. Because the developers can demand some details about the bug.
- Before reporting the bug please update your system and try to reproduce the bug and keep reproducing steps.
- You are ready for reporting bug, after controlling that the bug has not already been reported. If a similar bug exist, you should follow this bug. You can use this link find a specigfic bug: http://bugs.pardus.org.tr/query.cgi
Efficient Bug Reporting
- A smooth bug report is very important for the developper or maintainer. Therefore, first you have to read bug reporting guide very carefully !!!
- The bug title will be explanatory. Please give a general explanation of the bug like "ATI driver does not work with X", but not give titles like "Problem", "Help", "Attention".
- A template is created in order to report bugs efficiently. This template is prepared for every Pardus user and Pardus test team.
A short explanation of the bug here
Reproducible: (Always, Arbitrarily, For some systems)
Steps to reproduce:
- First step.
- Second step.
- Third step.
- ...
Actual Results:
You can add your actual results and command outputs here.
Expected Results:
You can add expected results accroding to your hardware and devices, and can list necessary device according to bug.
Fixing the bug:
If you think that you fix the bug, you can add your solution or patches.
- An example of efficient bug reporting: http://bugs.pardus.org.tr/show_bug.cgi?id=10043
- If you can't figure out to which product you have to assign the bug but know the name of the application, you can find it with the following command:
pisi sf `which <filename>`
The filename is the name of the file(a configuration file, a library, an executable application, etc.) which seems problematic to you.
Let's assume that the systemsettings application crashes when trying to switch the color scheme but you don't know which package actually ships systemsettings. Just type the command below to find it out:
pisi sf `which systemsettings` Searching for /usr/kde/4/bin/systemsettings Package kdebase-workspace has file usr/kde/4/bin/systemsettings
So this means that, the bug should be assigned to the kdebase-workspace package.
The attachments are also important for developers in order to completely understand the problem
Attention: You have to switch to the root user in order to correctly execute some of the commands below. Type the following command and enter your root password:
su -
For installation bugs:
- Please add:
/var/log/yaliInstall.log file and output of fdisk - l > fdisk.txt to bug report.
For start system bugs:
- If the system can not start, you can keep notes from the screen or take a photo of the screen and report them.
For applicatin bugs:
- Execute the application from console and attach the output of the bug.
For X server bugs:
- Please add these outputs to the bug report:
lspci -nn > lspci.txt dmesg > dmesg.txt lsmod > lsmod.txt
- If keyboard and the computer work, the X server logs are also very important.
cat /var/log/Xorg.0.log > xserver.txt
- If keyboard and the computer do not work, please follow these steps:
Restart your computer, open in vesa mode and take the log.
cat /var/log/Xorg.0.log.old
If X crashed you can take all outputs using this way:
- Press CTRL+ALT+F1 at the same time.(With this command you will pass the system console.)
- Plug a usb stick to your computer.
- Please mount it using this command.
mount /dev/<your_usb_stick_partition> /mnt/flash
- Copy the outputs to usb stick.
cp <output> /mnt/flash
- unmount the usb stick.
umount /dev/<your_usb_stick_partition>
For pardus specific applications bugs:
For many situation COMAr log file can be useful:
cat /var/log/comar3/trace.log > comar.txt
For network-manager:
To learn network device:
lspci -nn > lspci.txt
Ethernet related bug:
ifconfig -a > ifconfig.txt
Wireless related bugs :
iwconfig > iwconfig.txt
For disk-manager:
fdisk -l > fdisk.txt cat /etc/fstab > fstab.txt
For service-manager:
service -N > service.txt
For boot-manager:
cat /boot/grub/grub.conf > grub.txt
For firewall-manager:
service -N > service.txt iptables > iptables.txt
For Kamera/video devices bugs:
Please close all camera and video related applications before executing this command.
dmesg > dmesg.txt cat /var/log/syslog > syslog.txt lsusb > lsusb.txt test-webcam > webcam.txt
Execute below command with root and keep note WWW link:
alsa-info