Penguin
Blame: WritingBugReports
EditPageHistoryDiffInfoLikePages
Annotated edit history of WritingBugReports version 4, including all changes. View license author blame.
Rev Author # Line
3 AristotlePagaltzis 1 <i>PerryLorier originally wrote this as [a mailing list post | http://list.waikato.ac.nz/pipermail/wlug/2005-April/006380.html].</i>
1 CraigBox 2
3 AristotlePagaltzis 3 As a programmer, things I love non-programmers to do:
1 CraigBox 4
3 AristotlePagaltzis 5 !! Write good bug reports
1 CraigBox 6
3 AristotlePagaltzis 7 A bug report means absolutely nothing if I can't reproduce the bug. If I can't reproduce it it means I can't prove that I've fixed it. A bug report I got in the past:
1 CraigBox 8
3 AristotlePagaltzis 9 > <b>Subject: ~[SEVERE BUG] Crash after 10 minutes</b>
10 >
11 > The server crashes after 10 minutes, the server isn't in the process list anymore.
1 CraigBox 12
3 AristotlePagaltzis 13 I mean, what am I supposed to do with this? After 10 minutes it's still working for me...
1 CraigBox 14
15 Things to include:
16
3 AristotlePagaltzis 17 * What OperatingSystem you are running (the output of <tt>uname -a</tt>), what version of the software you are running. What LinuxDistribution you are running (and which version of that distro).
18
1 CraigBox 19 * The config file you are using (remember to remove passwords!)
3 AristotlePagaltzis 20
1 CraigBox 21 * Tell me what was happening at the time (netsplit?)
22
3 AristotlePagaltzis 23 * If it produces any error messages, ''please please please'' tell me what they are! "<tt>assertion failure 0 != cptr at client.c:212</tt>" may not mean much to you, but it means the world to me.
24
25 * Run it with full DeBugging on, and either send the full debug log, or if it's huge, just the last 1mb or so.
1 CraigBox 26
3 AristotlePagaltzis 27 * If it generates a core file, I will want a backtrace. This is easy to get with gdb(1):
1 CraigBox 28
3 AristotlePagaltzis 29 <verbatim>
30 $ gdb ./program-that-crashed ./core
1 CraigBox 31 (gdb) bt full
3 AristotlePagaltzis 32 </verbatim>
1 CraigBox 33
3 AristotlePagaltzis 34 and paste the entire output into the bug report.
35 Please don't just send me the core file, in general it's useless to me, and I don't want a 1gig file emailed to me that I can't use.
1 CraigBox 36
3 AristotlePagaltzis 37 Also, I'm a programmer, I suck at documentation. It's far too easy to think "that's obvious", or just use bad terminology or spelling. What really helps is getting someone who isn't a programmer to give the documentation a once over and send in suggestions. The WlugWiki is a great example of this. If someone asks me something I usually try and get them to wiki it. Why? Because if I have to wiki everything I'm asked, I'm gonna give up answering questions, and people tend to wiki things from their point of view ("I want to do this") as opposed to mine ("this is how the program works"). I always go back and check what people wrote to check it for accuracy and for clarifications.
1 CraigBox 38
3 AristotlePagaltzis 39 If you have a problem and spend time researching it and find the answer, please wiki it, so that others can benefit from your help, or more importantly in 6 months when you're trying to remember how you did whatever you did you have a reference. Writing up HowTo documents in the wiki is surprisingly addictive, as is cleaning up old pages in the wiki. Perhaps you might like to start at WantedWikis...
1 CraigBox 40
41 -----
4 JohnMcPherson 42 CategoryBeginners, CategoryProgrammingBugs

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach()