Howto file bugs, a must read for dapper users
发表于 : 2005-12-10 11:51
So you upgraded to dapper and things start to break, water wet, sky blue - news at 11. We know this, however with your help Dapper might rock even harder.... because you can file bugs.
First identify your bug, if it's a crash here is what you do.
step 1:
go to www.launchpad.net/malone to search the bug database to see if this is a known issue. If is you can add comments to the existing bug confirming the issue and providing whatever feedback the developers request. If not then we jump to step 2.
step 2:
Now we need debug symbols, without debug information your bugreport is pretty useless in terms of getting the bug tracked down.
you'll need the deb-src entries in your /etc/apt/sources.list, these are enabled by default so unless you messed with it, you have these setup properly.
first install the build time dependencies
sudo apt-get build-dep <package>
Then build a package with debug symbols
DEB_BUILD_OPTIONS="nostrip noopt" sudo apt-get source -b <package>
Now install your new package:
sudo dpkg --install <package.deb>
Remember it is useful in many cases to compile libraries which your program accesses with debug as well. Step 3 obtaining your stack trace is up next:
step 3:
Now we start the program under the debugger to get a stack trace.
gdb <program>
(gdb) handle SIG33 pass nostop noprint
(gdb) run <append runtime arguments for the program as needed>
Issue crash conditions in your program then obtain the trace with the following command:
(gdb) thread apply all bt
Copy the entire output to a file (I like program.trace but that's just me)
It is also a very good idea to run the program in a terminal to see if it outputs any messages you can add to the bugreport.
Onwards to the moment we've been waiting for, filing our bug.
step 4:
Go to the Malone website (www.launchpad.net/malone and open up a new bug, attach the trace file, remember to fill in the version of Ubuntu you are running and the version of the program you are running.
Step 5:
Bask in the glory as your Launchpad Karma increases and Dapper becomes a more stable platform.
Have you helped GNOME reach 10x10? || Ubuntu Dapper, how many kitten will it kill today?
(If you are offended by the post, please understand I have Tourette's)
First identify your bug, if it's a crash here is what you do.
step 1:
go to www.launchpad.net/malone to search the bug database to see if this is a known issue. If is you can add comments to the existing bug confirming the issue and providing whatever feedback the developers request. If not then we jump to step 2.
step 2:
Now we need debug symbols, without debug information your bugreport is pretty useless in terms of getting the bug tracked down.
you'll need the deb-src entries in your /etc/apt/sources.list, these are enabled by default so unless you messed with it, you have these setup properly.
first install the build time dependencies
sudo apt-get build-dep <package>
Then build a package with debug symbols
DEB_BUILD_OPTIONS="nostrip noopt" sudo apt-get source -b <package>
Now install your new package:
sudo dpkg --install <package.deb>
Remember it is useful in many cases to compile libraries which your program accesses with debug as well. Step 3 obtaining your stack trace is up next:
step 3:
Now we start the program under the debugger to get a stack trace.
gdb <program>
(gdb) handle SIG33 pass nostop noprint
(gdb) run <append runtime arguments for the program as needed>
Issue crash conditions in your program then obtain the trace with the following command:
(gdb) thread apply all bt
Copy the entire output to a file (I like program.trace but that's just me)
It is also a very good idea to run the program in a terminal to see if it outputs any messages you can add to the bugreport.
Onwards to the moment we've been waiting for, filing our bug.
step 4:
Go to the Malone website (www.launchpad.net/malone and open up a new bug, attach the trace file, remember to fill in the version of Ubuntu you are running and the version of the program you are running.
Step 5:
Bask in the glory as your Launchpad Karma increases and Dapper becomes a more stable platform.
Have you helped GNOME reach 10x10? || Ubuntu Dapper, how many kitten will it kill today?
(If you are offended by the post, please understand I have Tourette's)