diff --git a/en_US.ISO8859-1/articles/pr-guidelines/article.sgml b/en_US.ISO8859-1/articles/pr-guidelines/article.sgml
index 0fc92eff42..aa822b7c58 100644
--- a/en_US.ISO8859-1/articles/pr-guidelines/article.sgml
+++ b/en_US.ISO8859-1/articles/pr-guidelines/article.sgml
@@ -1,932 +1,932 @@
%articles.ent;
]>
Problem Report Handling Guidelines$FreeBSD$
&tm-attrib.freebsd;
&tm-attrib.opengroup;
&tm-attrib.general;
These guidelines describe recommended handling practices
for FreeBSD Problem Reports (PRs). Whilst developed for the
FreeBSD PR Database Maintenance Team
freebsd-bugbusters@FreeBSD.org, these
guidelines should be followed by anyone working with FreeBSD
PRs.Dag-ErlingSmørgravHitenPandyaIntroductionGNATS is a defect management (bug reporting) system used by
the FreeBSD Project. As accurate tracking of outstanding
software defects is important to FreeBSD's quality, the
correct use of GNATS is essential to the forward progress of the
Project.Access to GNATS is available to FreeBSD developers, as well as
to the wider community. In order to maintain consistency within
the database and provide a consistent user experience, guidelines
have been established covering common aspects of bug management
such as presenting followup, handling close requests, and so
forth.Problem Report Life-cycleThe Reporter submits a PR with &man.send-pr.1; and
receives a confirmation message.Joe Random Committer takes interest in the PR and
assigns it to himself, or Jane Random BugBuster decides that
Joe is best suited to handle it and assigns it to
him.Joe has a brief exchange with the originator (making
sure it all goes into the audit trail) and determines the
cause of the problem. He then makes sure the cause is
documented in the audit trail, and sets the PRs state to
analyzed.Joe pulls an all-nighter and whips up a patch that he
thinks fixes the problem, and submits it in a follow-up,
asking the originator to test it. He then sets the PRs
state to feedback.A couple of iterations later, both Joe and the
originator are satisfied with the patch, and Joe commits it
to -CURRENT (or directly to
-STABLE if the problem does not exist in
-CURRENT), making sure to reference the
Problem Report in his commit log (and credit the originator
if he submitted all or part of the patch) and, if
appropriate, start an MFC countdown.If the patch does not need MFCing, Joe then closes the
PR.If the patch needs MFCing, Joe leaves the Problem Report
in patched state until the patch has been
MFCed, then closes it.Many PRs are submitted with very little information about
the problem, and some are either very complex to solve, or
just scratch the surface of a larger problem; in these cases, it
is very important to obtain all the necessary information
needed to solve the problem. If the problem contained within
cannot be solved, or has occurred again, it is necessary to
re-open the PR.The email address used on the PR might not
be able to receive mail. In this case, followup to the PR as
usual and ask the originator (in the followup) to provide a
working email address. This is normally the case when
&man.send-pr.1; is used from a system with the mail system
disabled or not installed.Problem Report StateIt is important to update the state of a PR when certain
actions are taken. The state should accurately reflect the
current state of work on the PR.A small example on when to change PR stateWhen a PR has been worked on and the developer(s)
responsible feel comfortable about the fix, they will submit a
followup to the PR and change its state to
feedback. At this point, the originator should
evaluate the fix in their context and respond indicating
whether the defect has indeed been remedied.A Problem Report may be in one of the following
states:openInitial state; the problem has been pointed out and it
needs reviewing.analyzedThe problem has been reviewed and a
solution is being sought.feedbackFurther work requires additional information from the
originator or the community; possibly information
regarding the proposed solution.patchedA patch has been committed, but something (MFC, or
maybe confirmation from originator) is still pending.suspendedThe problem is not being worked on, due to lack of
information or resources. This is a prime candidate for
somebody who is looking for a project to take on. If the
problem cannot be solved at all, it will be closed, rather
than suspended. The documentation project uses
suspended for wish-list
items that entail a significant amount of work which no one
currently has time for.repocopyThe resolution of the problem report is dependent on a
repository copy, or repocopy, operation within the CVS
repository which is awaiting completion.closedA problem report is closed when any changes have been
integrated, documented, and tested, or when fixing the
problem is abandoned.The patched state is directly related to
feedback, so you may go directly to closed state if
the originator cannot test the patch, and it works in your own testing.Types of Problem ReportsWhile handling problem reports, either as a developer who has
direct access to the GNATS database or as a contributor who
browses the database and submits followups with patches, comments,
suggestions or change requests, you will come across several
different types of PRs.PRs not yet assigned to anyone.PRs already assigned to someone.Duplicates of existing PRs.Stale PRsMisfiled PRsThe following sections describe what each different type of
PRs is used for, when a PR belongs to one of these types, and what
treatment each different type receives.Unassigned PRsWhen PRs arrive, they are initially assigned to a generic
(placeholder) assignee. These are always prepended with
freebsd-. The exact value for this default
depends on the category; in most cases, it corresponds to a
specific &os; mailing list. Here is the current list, with
the most common ones listed first:
Default Assignees — most commonTypeCategoriesDefault Assigneebase systembin, conf, gnu, kern, miscfreebsd-bugsarchitecture-specific
- alpha, i386, ia64, powerpc, sparc64
+ alpha, amd64, arm, i386, ia64, powerpc, sparc64freebsd-archports collectionportsfreebsd-ports-bugsdocumentation shipped with the systemdocsfreebsd-doc&os; web pages (not including docs)wwwfreebsd-www
Do not be surprised to find that the submitter of the
PR has assigned it to the wrong category. If you fix the
category, do not forget to fix the assignment as well.
(In particular, our submitters seem to have a hard time
understanding that just because their problem manifested
on an i386 system, that it might be generic to all of &os;,
and thus be more appropriate for kern.
The converse is also true, of course.)Certain PRs may be reassigned away from these generic
assignees by anyone. For assignees which are mailing lists,
please use the long form when making the assignment (e.g.,
freebsd-foo instead of foo);
this will avoid duplicate emails sent to the mailing list.Here is a sample list of such entities; it is probably
not complete. In some cases, entries that have the short form are
aliases, not mailing lists.
Common Assignees — base systemTypeSuggested CategorySuggested Assigneeproblem specific to the &arm; architecturekernfreebsd-armproblem specific to the &mips; architecturekernfreebsd-mipsproblem specific to the &powerpc; architecturekernfreebsd-ppcproblem with Advanced Configuration and Power
Management (&man.acpi.4;)kernfreebsd-acpiproblem with Asynchronous Transfer Mode (ATM)
driverskernfreebsd-atmproblem with embedded or small-footprint &os;
systems (e.g., NanoBSD/PicoBSD/FreeBSD-arm)kernfreebsd-embeddedproblem with &firewire; driverskernfreebsd-firewireproblem with the filesystem codekernfreebsd-fsproblem with the &man.geom.4; subsystemkernfreebsd-geomproblem with the &man.ipfw.4; subsystemkernfreebsd-ipfwproblem with Integrated Services Digital Network
(ISDN) driverskernfreebsd-isdnproblem with &linux; or SVR4 emulationkernfreebsd-emulationproblem with the networking stackkernfreebsd-netproblem with the &man.pf.4; subsystemkernfreebsd-pfproblem with the &man.scsi.4; subsystemkernfreebsd-scsiproblem with the &man.sound.4; subsystemkernfreebsd-multimediaproblem with &man.sysinstall.8;binfreebsd-qaproblem with the system startup scripts
(&man.rc.8;)kernfreebsd-rc
Common Assignees — Ports CollectionTypeSuggested CategorySuggested Assigneeproblem with the ports framework
(not with an individual port!)portsportmgrport which is maintained by apache@FreeBSD.orgportsapacheport which is maintained by eclipse@FreeBSD.orgportsfreebsd-eclipseport which is maintained by gnome@FreeBSD.orgportsgnomeport which is maintained by haskell@FreeBSD.orgportshaskellport which is maintained by java@FreeBSD.orgportsfreebsd-javaport which is maintained by kde@FreeBSD.orgportskdeport which is maintained by
openoffice@FreeBSD.orgportsfreebsd-openofficeport which is maintained by perl@FreeBSD.orgportsperlport which is maintained by python@FreeBSD.orgportsfreebsd-pythonport which is maintained by x11@FreeBSD.orgportsfreebsd-x11
Ports PRs which have a maintainer who is a ports committer
may be reassigned by anyone (but note that not every &os;
committer is necessarily a ports committer, so you cannot
simply go by the email address alone.)
For other PRs, please do not reassign them to individuals
(other than yourself) unless you are certain that the assignee
really wants to track the PR. This will help to avoid the
case where no one looks at fixing a particular problem
because everyone assumes that the assignee is already working
on it.Assigned PRsIf a PR has the responsible field set
to the username of a FreeBSD developer, it means that the PR
has been handed over to that particular person for further
work.Assigned PRs should not be touched by anyone but the
assignee. If you have comments, submit a followup. If for
some reason you think the PR should change state or be
reassigned, send a message to the assignee. If the assignee
does not respond within two weeks, unassign the PR and do as
you please.Duplicate PRsIf you find more than one PR that describe the same issue,
choose the one that contains the largest amount of useful
information and close the others, stating clearly the number
of the superseding PR. If several PRs contain non-overlapping
useful information, submit all the missing information to one
in a followup, including references to the others; then close
the other PRs (which are now completely superseded).Stale PRsA PR is considered stale if it has not been modified in more
than six months. Apply the following procedure to deal with
stale PRs:If the PR contains sufficient detail, try to reproduce
the problem in -CURRENT and
-STABLE. If you succeed, submit a
followup detailing your findings and try to find someone
to assign it to. Set the state to analyzed
if appropriate.If the PR describes an issue which you know is the
result of a usage error (incorrect configuration or
otherwise), submit a followup explaining what the
originator did wrong, then close the PR with the reason
User error or Configuration
error.If the PR describes an error which you know has been
corrected in both -CURRENT and
-STABLE, close it with a message
stating when it was fixed in each branch.If the PR describes an error which you know has been
corrected in -CURRENT, but not in
-STABLE, try to find out when the person
who corrected it is planning to MFC it, or try to find
someone else (maybe yourself?) to do it. Set the state to
patched and assign it to whomever will do
the MFC.In other cases, ask the originator to confirm if
the problem still exists in newer versions. If the
originator does not reply within a month, close the PR
with the notation Feedback timeout.Misfiled PRsGNATS is picky about the format of a submitted bug report.
This is why a lot of PRs end up being misfiled if
the submitter forgets to fill in a field or puts the wrong sort of
data in some of the PR fields. This section aims to provide most
of the necessary details for FreeBSD developers that can help them to
close or refile these PRs.When GNATS cannot deduce what to do with a problem report
that reaches the database, it sets the responsible of the PR to
gnats-admin and files it under the
pending category. This is now a
misfiled PR and will not appear in bug report
listings, unless someone explicitly asks for a list of all the
misfiled PRs. If you have access to the FreeBSD cluster
machines, you can use query-pr to view a
listing of PRs that have been misfiled:&prompt.user; query-pr -x -q -r gnats-admin
52458 gnats-ad open serious medium Re: declaration clash f
52510 gnats-ad open serious medium Re: lots of sockets in
52557 gnats-ad open serious medium
52570 gnats-ad open serious medium Jigdo maintainer updateCommonly PRs like the ones shown above are misfiled for one
of the following reasons:A followup to an existing PR, sent through email, has
the wrong format on its Subject:
header.A submitter sent a Cc: to a mailing list and someone
followed up to that post instead of the email issued by
GNATS after processing. The email to the list will not
have the category/PRnumber tracking tag. (This is why we
discourage submitters from doing this exact thing.)When completing the &man.send-pr.1; template, the submitter
forgot to set the category or class of the PR to a proper
value.When completing the &man.send-pr.1; template, the submitter
set Confidential to yes. (Since we allow
anyone to mirror GNATS via cvsup,
our PRs are public information. Security alerts should
therefore not be sent via GNATS but instead via email to
the Security Team.)It is not a real PR, but some random message sent to
bug-followup@FreeBSD.org or
freebsd-gnats-submit@FreeBSD.org.Followups misfiled as new PRsThe first category of misfiled PRs, the one with the wrong
subject header, is actually the one that requires the greatest
amount of work from developers. These are not real PRs,
describing separate problem reports. When a reply is received
for an existing PR at one of the addresses that GNATS
listens to for incoming messages, the subject
of the reply should always be of the form:Subject: Re: category/number: old synopsis textMost mailers will add the
Re: part when you
reply to the original mail message of a PR. The
category/number: part
is a GNATS-specific convention that you have to manually
insert to the subject of your followup reports.Any FreeBSD developer, who has direct access to the GNATS
database, can periodically check for PRs of this sort and move
interesting bits of the misfiled PR into the audit trail of
the original PR (by posting a proper followup to a bug report
to the address &a.bugfollowup;). Then
the misfiled PR can be closed with a message similar
to:Your problem report was misfiled. Please use the format
"Subject: category/number: original text" when following
up to older, existing PRs. I've added the relevant bits
from the body of this PR to kern/12345Searching with query-pr for the
original PR, of which a misfiled followup is a reply, is as
easy as running:&prompt.user; query-pr -q -y "some text"After you locate the original PR and the misfiled
followups, use the option of
query-pr to save the full text of all the
relevant PRs in a &unix; mailbox file, i.e.:&prompt.user; query-pr -F 52458 52474 > mboxNow you can use any mail user agent to view all the PRs
you saved in mbox. Copy the text of all
the misfiled PRs in a followup to the original PR and make
sure you include the proper Subject:
header. Then close the misfiled PRs. When you close the misfiled
PRs remember that the submitter receives a mail notification that
his PR changed state to closed. Make sure you
provide enough details in the log about the reason of this state
change. Typically something like the following is ok:Followup to ports/45364 misfiled as a new PR.
This was misfiled because the subject did not have the format:
Re: ports/45364: ...This way the submitter of the misfiled PR will know what to
avoid the next time a followup to an existing PR is sent.PRs misfiled because of missing fieldsThe second type of misfiled PRs is usually the result of a
submitter forgetting to fill all the necessary fields when
writing the original PR.Missing or bogus category or
class fields can result in a misfiled report.
Developers can use &man.edit-pr.1; to change the category or
class of these misfiled PRs to a more appropriate value and
save the PR.Another common cause of misfiled PRs because of formatting
issues is quoting, changes or removal of the
send-pr template, either by the user who
edits the template or by mailers which do strange things to
plain text messages. This does not happen a lot of the time,
but it can be fixed with edit-pr too; it
does require a bit of work from the developer who refiles the
PR, but it is relatively easy to do most of the time.Misfiled PRs that are not really problem reportsSometimes a user wants to submit a report for a problem
and sends a simple email message to GNATS. The GNATS scripts
will recognize bug reports that are formatted using the
&man.send-pr.1; template. They cannot parse any sort of email
though. This is why submissions of bug reports that are sent
to freebsd-gnats-submit@FreeBSD.org have to
follow the template of send-pr, but email
reports can be sent to &a.bugs;.Developers that come across PRs that look like they should have
been posted to &a.bugs.name; or some other list should close the
PR, informing the submitter in their state-change log why this
is not really a PR and where the message should be posted.The email addresses that GNATS listens to for incoming PRs
have been published as part of the FreeBSD documentation, have
been announced and listed on the web-site. This means that
spammers found them. Spam messages
that reach GNATS are promptly filed
under the pending category until someone looks
at them. Closing one of these with &man.edit-pr.1; is very
annoying though, because GNATS replies to the submitter and
the sender's address of spam mail is never valid these days.
Bounces will come back for each PR that is closed.Currently, with the installation of some antispam filters
that check all submissions to the GNATS database, the amount
of spam that reaches the pending state is very
small.All developers who have access to the FreeBSD.org cluster
machines are encouraged to check for misfiled PRs and immediately
close those that are spam mail. Whenever you close one of
these PRs, please do the following:Set Category to junk.Set Confidential to no.Set Responsible to yourself (and not, e.g.,
freebsd-bugs, which merely
sends more mail).Set State to closed.Junk PRs are not
backed up, so filing spam mail under this category makes it
obvious that we do not care to keep it around or waste disk
space for it. If you merely close them without changing the
category, they remain both in the master database and in
any copies of the database mirrored through
cvsup.Further ReadingThis is a list of resources relevant to the proper writing
and processing of problem reports. It is by no means complete.How to
Write FreeBSD Problem Reports—guidelines
for PR originators.
diff --git a/en_US.ISO8859-1/articles/problem-reports/article.sgml b/en_US.ISO8859-1/articles/problem-reports/article.sgml
index 5225f50208..4bfc2baff9 100644
--- a/en_US.ISO8859-1/articles/problem-reports/article.sgml
+++ b/en_US.ISO8859-1/articles/problem-reports/article.sgml
@@ -1,1250 +1,1255 @@
%articles.ent;
]>
Writing &os; Problem Reports$FreeBSD$
&tm-attrib.freebsd;
&tm-attrib.cvsup;
&tm-attrib.ibm;
&tm-attrib.intel;
&tm-attrib.sparc;
&tm-attrib.sun;
&tm-attrib.general;
This article describes how to best formulate and submit a
problem report to the &os; Project.Dag-ErlingSmørgravContributed by MarkLinimonproblem reportsIntroductionOne of the most frustrating experiences one can have as a
software user is to submit a problem report only to have it
summarily closed with a terse and unhelpful explanation like
not a bug or bogus PR. Similarly,
one of the most frustrating experiences as a software developer
is to be flooded with problem reports that are not really
problem reports but requests for support, or that contain little
or no information about what the problem is and how to reproduce
it.This document attempts to describe how to write good problem
reports. What, you ask, is a good problem report? Well, to go
straight to the bottom line, a good problem report is one that
can be analyzed and dealt with swiftly, to the mutual
satisfaction of both user and developer.Although the primary focus of this article is on &os;
problem reports, most of it should apply quite well to other
software projects.Note that this article is organized thematically, not
chronologically, so you should read through the entire document
before submitting a problem report, rather than treat it as a
step-by-step tutorial.When to submit a problem reportThere are many types of problems, and not all of them should
engender a problem report. Of course, nobody is perfect, and
there will be times when you are convinced you have found a bug
in a program when in fact you have misunderstood the syntax for
a command or made a typographical error in a configuration file
(though that in
itself may sometimes be indicative of poor documentation or poor
error handling in the application). There are still many cases
where submitting a problem report is clearly
not the right
course of action, and will only serve to frustrate you and the
developers. Conversely, there are cases where it might be
appropriate to submit a problem report about something else than
a bug—an enhancement or a feature request, for
instance.So how do you determine what is a bug and what is not? As a
simple rule of thumb your problem is not a
bug if it can be expressed as a question (usually of the form
How do I do X? or Where can I find
Y?). It is not always quite so black and white, but the
question rule covers a large majority of cases. If you are looking
for an answer, consider posing your question to the
&a.questions;.Some cases where it may be appropriate to submit a problem
report about something that is not a bug are:Requests for feature enhancements. It is generally a
good idea to air these on the mailing lists before
submitting a problem report.Notification of updates to externally maintained
software (mainly ports, but also externally maintained base
system components such as BIND or various GNU
utilities).For unmaintained ports (MAINTAINER contains
ports@FreeBSD.org), such update notifications
might get picked up by an interested
committer, or you might be asked to provide a patch to update
the port; providing it upfront will greatly improve your chances
that the port will get updated in a timely manner.If the port is maintained, PRs announcing new upstream releases
are usually not very useful since they generate supplementary work
for the committers, and the maintainer likely knows already there is
a new version, they have probably worked with the developers on it,
they are probably testing to see there is no regression, etc.In either case, following the process described in Porter's
Handbook will yield the best results. (You might
also wish to read
Contributing to the FreeBSD Ports Collection.)
A bug that can not be reproduced can rarely be
fixed. If the bug only occurred once and you can not reproduce
it, and it does not seem to happen to anybody else, chances are
none of the developers will be able to reproduce it or figure
out what is wrong. That does not mean it did not happen, but it
does mean that the chances of your problem report ever leading
to a bug fix are very slim. To make matters worse, often
these kinds of bugs are actually caused by failing hard drives
or overheating processors — you should always try to rule
out these causes, whenever possible, before submitting a PR.Next, to decide to whom you should file your problem
report, you need to understand that the software that makes
up &os; is composed of several different elements:Code in the base system that is written and maintained
by &os; contributors, such as the kernel, the C library,
and the device drivers (categorized as kern);
the binary utilities (bin); the manual
pages and documentation (docs); and
the web pages (www). All bugs in
these areas should be reported to the &os; developers.Code in the base system that is written and maintained
by others, and imported into &os; and adapted. Examples
include bind, &man.gcc.1;, and
&man.sendmail.8;. Most bugs in these areas should be reported
to the &os; developers; but in some cases they may need to be
reported to the original authors instead if the problems are
not &os;-specific. Usually these bugs will fall under either
the bin or gnu
categories.Individual applications that are not in the base system
but are instead part of the &os; Ports Collection (category
ports). Most of these applications are
not written by &os; developers; what &os; provides is merely
a framework for installing the application. Therefore, you
should only report a problem to the &os; developers when you
believe the problem is &os;-specific; otherwise, you should
report it to the authors of the software.Then you should ascertain whether or not the problem is
timely. There are few things
that will annoy a developer more than receiving a problem report
about a bug she has already fixed.If the problem is in the base system, you should first read
the FAQ section on
&os; versions, if you are not already familiar with
the topic. It is not possible for &os; to fix problems in
anything other than certain recent branches of the base system,
so filing a bug report about an older version will probably
only result in a developer advising you to upgrade to a
supported version to see if the problem still recurs. The
Security Officer team maintains the
list of supported
versions.If the problem is in a port, note that you must first
upgrade to the latest version of the Ports Collection and see
if the problem still applies. Due to the rapid pace of changes
in these applications, it is infeasible for &os; to support
anything other than the absolute latest versions, and problems
with older version of applications simply cannot be fixed.PreparationsA good rule to follow is to always do a background search
before submitting a problem report. Maybe your problem has
already been reported; maybe it is being discussed on the
mailing lists, or recently was; it may even already be fixed in
a newer version than what you are running. You should therefore
check all the obvious places before submitting your problem
report. For &os;, this means:The &os;
Frequently Asked
Questions (FAQ) list.
The FAQ attempts to provide answers for a wide range of questions,
such as those concerning
hardware
compatibility,
user
applications,
and kernel
configuration.The
mailing
lists—if you are not subscribed, use
the
searchable archives on the &os; web site. If your
problem has not been discussed on the lists, you might try
posting a message about it and waiting a few days to see if
someone can spot something you have overlooked.Optionally, the entire web—use your favorite
search engine to locate any references to your problem. You
may even get hits from archived mailing lists or newsgroups
you did not know of or had not thought to search
through.Next, the searchable
&os; PR database (GNATS). Unless your problem
is recent or obscure, there is a fair chance it has already
been reported.Most importantly, you should attempt to see if existing
documentation in the source base addresses your problem.For the base &os; code, you should
carefully study the contents of the
/usr/src/UPDATING file on your system
or its latest version at
.
(This is vital information
if you are upgrading from one version to
another—especially if you are upgrading to the
&os.current; branch).However, if the problem is in something that was installed
as a part of the &os; Ports Collection, you should refer to
/usr/ports/UPDATING (for individual ports)
or /usr/ports/CHANGES (for changes
that affect the entire Ports Collection).
and
are also available via CVSweb.Writing the problem reportNow that you have decided that your issue merits a problem
report, and that it is a &os; problem, it is time to write
the actual problem report. Before we get into the mechanics
of the program used to generate and submit PRs, here are some
tips and tricks to help make sure that your PR will be most
effective.Tips and tricks for writing a good problem reportDo not leave the Synopsis
line empty. The PRs go both onto a mailing list
that goes all over the world (where the Synopsis
is used
for the Subject: line), but also into a
database. Anyone who comes along later and browses the
database by synopsis, and finds a PR with a blank subject
line, tends just to skip over it. Remember that PRs stay
in this database until they are closed by someone; an
anonymous one will usually just disappear in the
noise.Avoid using a weak Synopsis
line. You should not assume that anyone reading
your PR has any context for your submission, so the more
you provide, the better. For instance, what part of the
system does the problem apply to? Do you only see the
problem while installing, or while running? To
illustrate, instead of Synopsis: portupgrade is
broken, see how much more informative this
seems: Synopsis: port ports-mgmt/portupgrade
coredumps on -current. (In the case of ports,
it is especially helpful to have both the category and
portname in the Synopsis line.)If you have a patch, say so.
A PR with a patch included is much more likely to be
looked at than one without. If you are including one,
put the string [patch] at the
beginning of the Synopsis. (Although it is
not mandatory to use that exact string, by convention,
that is the one that is used.)If you are a maintainer, say so.
If you are maintaining a part of the source code (for
instance, a port), you might consider adding the string
[maintainer update] at the beginning of
your synopsis line, and you definitely should set the
Class of
your PR to maintainer-update. This way
any committer that handles your PR will not have to check.Be specific.
The more information you supply about what problem you
are having, the better your chance of getting a response.Include the version of &os; you are running (there
is a place to put that, see below) and on which architecture.
You should include whether you are running from a release
(e.g. from a CDROM or download), or from
a system maintained by &man.cvsup.1; (and, if so, how
recently you updated). If you are tracking the
&os.current; branch, that is the very first thing someone
will ask, because fixes (especially for high-profile
problems) tend to get committed very quickly, and
&os.current; users are expected to keep up.Include which global options you have specified in
your make.conf. Note: specifying
-O2 and above to &man.gcc.1; is
known to be buggy in many situations. While the
&os; developers will accept patches, they are
generally unwilling to investigate such issues due
to simple lack of time and volunteers, and may
instead respond that this just is not supported.If this is a kernel problem, then be prepared to
supply the following information. (You do not
have to include these by default, which only tends to
fill up the database, but you should include excerpts
that you think might be relevant):your kernel configuration (including which
hardware devices you have installed)whether or not you have debugging options enabled
(such as WITNESS), and if so,
whether the problem persists when you change the
sense of that optiona backtrace, if one was generatedthe fact that you have read
src/UPDATING and that your problem
is not listed there (someone is guaranteed to ask)whether or not you can run any other kernel as
a fallback (this is to rule out hardware-related
issues such as failing disks and overheating CPUs,
which can masquerade as kernel problems)If this is a ports problem, then be prepared to
supply the following information. (You do not
have to include these by default, which only tends to
fill up the database, but you should include excerpts
that you think might be relevant):which ports you have installedany environment variables that override the
defaults in bsd.port.mk, such
as PORTSDIRthe fact that you have read
ports/UPDATING and that your problem
is not listed there (someone is guaranteed to ask)Avoid vague requests for features.
PRs of the form someone should really implement something
that does so-and-so are less likely to get results than
very specific requests. Remember, the source is available
to everyone, so if you want a feature, the best way to
ensure it being included is to get to work! Also consider
the fact that many things like this would make a better
topic for discussion on freebsd-questions
than an entry in the PR database, as discussed above.Make sure no one else has already submitted
a similar PR. Although this has already been
mentioned above, it bears repeating here. It only take a
minute or two to use the web-based search engine at
.
(Of course, everyone is guilty of forgetting to do this
now and then.)Avoid controversial requests.
If your PR addresses an area that has been controversial
in the past, you should probably be prepared to not only
offer patches, but also justification for why the patches
are The Right Thing To Do. As noted above,
a careful search of the mailing lists using the archives
at
is always good preparation.Be polite.
Almost anyone who would potentially work on your PR is a
volunteer. No one likes to be told that they have to do
something when they are already doing it for some
motivation other than monetary gain. This is a good thing
to keep in mind at all times on Open Source
projects.Before you beginIf you are using the &man.send-pr.1; program, make sure your
VISUAL (or EDITOR if
VISUAL is not set) environment variable is set
to something sensible.You should also make sure that mail delivery works fine.
&man.send-pr.1; uses mail messages for the submission and
tracking of problem reports. If you cannot post mail messages
from the machine you are running &man.send-pr.1; on, your
problem report will not reach the GNATS database. For details
on the setup of mail on &os;, see the Electronic
Mail chapter of the &os; Handbook at
.Make sure that your mailer will not mangle the message on
its way to GNATS. In particular, if your mailer automatically
breaks lines, changes tabs to spaces, or escapes newline
characters, any patch that you submit will be rendered
unusable. For the text sections, however, we request that
you insert manual linebreaks somewhere around 70 characters,
so that the web display of the PR will be readable.Similar considerations apply if you are using the web-based
PR submittal form instead of &man.send-pr.1;. Note that
cut-and-paste operations can have their own side-effects on
text formatting. In certain cases it may be necessary to use
&man.uuencode.1; to ensure that patches arrive unmodified.Finally, if your submission will be lengthy, you should
to prepare your work offline so that nothing will be lost in
case there is a problem submitting it. This can be an especial
problem with the web form.Attaching patches or filesThe following applies to submitting PRs via email:The &man.send-pr.1; program has provisions for attaching
files to a problem report. You can attach as many files as
you want provided that each has a unique base name (i.e. the
name of the file proper, without the path). Just use the
command-line option to specify the names
of the files you wish to attach:&prompt.user; send-pr -a /var/run/dmesg -a /tmp/errorsDo not worry about binary files, they will be automatically
encoded so as not to upset your mail agent.If you attach a patch, make sure you use the
or option to
&man.diff.1; to create a context or unified diff (unified is
preferred), and make
sure to specify the exact CVS revision numbers of the files
you modified so the developers who read your report will be
able to apply them easily. For problems with the kernel or the
base utilities, a patch against &os.current; (the HEAD
CVS branch) is preferred since all new code should be applied
and tested there first. After appropriate or substantial testing
has been done, the code will be merged/migrated to the &os.stable;
branch.If you attach a patch inline, instead of as an attachment,
note that the most common problem by far is the tendency of some
email programs to render tabs as spaces, which will completely
ruin anything intended to be part of a Makefile.Do not send patches as attachments using
Content-Transfer-Encoding: quoted-printable.
These will perform character escaping and the entire patch
will be useless.Also note that while including small patches in a PR is
generally all right—particularly when they fix the problem
described in the PR—large patches and especially new code
which may require substantial review before committing should
be placed on a web or ftp server, and the URL should be
included in the PR instead of the patch. Patches in email
tend to get mangled, especially when GNATS is involved, and
the larger the patch, the harder it will be for interested
parties to unmangle it. Also, posting a patch on the web
allows you to modify it without having to resubmit the entire
patch in a followup to the original PR. Finally, large
patches simply increase the size of the database, since
closed PRs are not actually deleted but instead kept and
simply marked as closed.You should also take note that unless you explicitly
specify otherwise in your PR or in the patch itself, any
patches you submit will be assumed to be licensed under the
same terms as the original file you modified.Filling out the templateThe next section applies to the email method only:When you run &man.send-pr.1;, you are presented with a
template. The template consists of a list of fields, some of
which are pre-filled, and some of which have comments explaining
their purpose or listing acceptable values. Do not worry
about the comments; they will be removed automatically if you
do not modify them or remove them yourself.At the top of the template, below the
SEND-PR: lines, are the email headers. You
do not normally need to modify these, unless you are sending
the problem report from a machine or account that can send but
not receive mail, in which case you will want to set the
From: and Reply-To: to
your real email address. You may also want to send yourself
(or someone else) a carbon copy of the problem report by
adding one or more email addresses to the
Cc: header.In the email template you will find the following two
single-line fields:Submitter-Id: Do not change this.
The default value of current-users is
correct, even if you run &os.stable;.Confidential: This is prefilled
to no. Changing it makes no sense as
there is no such thing as a confidential &os; problem
report—the PR database is distributed worldwide by
CVSup.The next section describes fields that are common to both
the email interface and the web interface:Originator:
Please specify your real name, optionally followed
by your email address in angle brackets.
In the email interface, this is normally
prefilled with the gecos field of the
currently logged-in
user.The email address you use will become public information
and may become available to spammers. You should either
have spam handling procedures in place, or use a temporary
email account. However, please note that if you do not
use a valid email account at all, we will not be able to
ask you questions about your PR.Organization: Whatever you feel
like. This field is not used for anything
significant.Synopsis: Fill this out with a
short and accurate description of the problem. The
synopsis is used as the subject of the problem report
email, and is used in problem report listings and
summaries; problem reports with obscure synopses tend to
get ignored.As noted above, if your problem report includes a patch,
please have the synopsis start with [patch];
if this is a ports PR and you are the
maintainer, you may consider adding
[maintainer update] and set the
Class of your PR to
maintainer-update.Severity: One of
non-critical,
serious or
critical. Do not overreact; refrain
from labeling your problem critical
unless it really is (e.g. data corruption issues, serious
regression from previous functionality in -CURRENT)
or serious unless
it is something that will affect many users (kernel
panics or freezes; problems with
particular device drivers or system utilities). &os;
developers will not necessarily work on your problem faster
if you inflate its importance since there are so many other
people who have done exactly that — in fact, some
developers pay little attention to this field
because of this.Major security problems should not
be filed in GNATS, because all GNATS information is public
knowledge. Please send such problems in private email to
&a.security-officer;.Priority: One of
low, medium or
high. high should
be reserved for problems that will affect practically
every user of &os; and medium for
something that will affect many users.This field has become so widely abused that it is
almost completely meaningless.Category: Choose an appropriate
category.The first thing you need to do is to decide what part of
the system your problem lies in. Remember, &os; is a
complete operating system, which installs both a kernel, the
standard libraries, many peripheral drivers, and a large number
of utilities (the base system).
However, there are thousands of additional applications in the
Ports Collection. You'll first need to decide if the problem
is in the base system or something installed via the Ports
Collection.Here is a description of the major categories:If a problem is with the kernel, the libraries (such
as standard C library libc), or a
peripheral driver in the base system, in general you will
use the kern category. (There are a few
exceptions; see below). In general these are things that are
described in section 2, 3, or 4 of the manual pages.If a problem is with a binary program such as
&man.sh.1; or &man.mount.8;, you will first need to determine
whether these programs are in the base system or were added
via the Ports Collection. If you are unsure, you can do
whereis programname.
&os;'s convention for the Ports Collection is to install
everything underneath
/usr/local,
although this can be overridden by a system administrator.
For these, you will use the ports
category (yes, even if the port's category is
www; see below). If the location is
/bin,
/usr/bin,
/sbin, or
/usr/sbin,
it is part of the base system, and you should use the
bin category. (A few programs, such as
&man.gcc.1;, actually use the gnu category,
but do not worry about that for now.) These are all things
that are described in section 1 or 8 of the manual pages.If you believe that the error is in the startup
(rc) scripts, or in some kind of other
non-executable configuration file, then the right category is
conf (configuration). These are things
that are described in section 5 of the manual pages.If you have found a problem in the documentation set
(articles, books, man pages), the correct choice is
docs.If you are having a problem with the
FreeBSD web pages,
the proper choice is www.if you are having a problem with something from a
port named
www/someportname,
this nevertheless goes in the ports
category.There are a few more specialized categories.If the problem would otherwise be filed in
kern but has to do with the USB subsystem,
the correct choice is usb.If the problem would otherwise be filed in
kern but has to do with the threading
libraries, the correct choice is
threads.If the problem would otherwise be in the base system,
but has to do with our adherence to standards such as
&posix;, the correct choice is
standards.If the problem has to do with errors internal to a
&java.virtual.machine; (&jvm;), even though &java; was
installed from the Ports Collection, you should select the
java category. More general problems with
&java; ports still go under ports.This leaves everything else.If you are convinced that the problem will only occur
under the processor architecture you are using, select
one of the architecture-specific categories: commonly
i386 for Intel-compatible machines in
32-bit mode; amd64 for AMD machines
running in 64-bit mode (this also includes Intel-compatible
machines running in EMT64 mode); and less commonly
arm, ia64,
powerpc, and sparc64.
These categories are quite often misused for
I do not know problems. Rather than
guessing, please just use misc.Correct use of arch-specific categoryYou have a common PC-based machine, and think
you have encountered a problem specific to a particular
chipset or a particular motherboard: i386
is the right category.Incorrect use of arch-specific categoryYou are having a problem with an add-in
peripheral card on a commonly seen bus, or a problem with
a particular type of hard disk drive: in this case, it
probably applies to more than one architecture, and
kern is the right category.If you really do not know where the problem lies (or
the explanation does not seem to fit into the ones above),
use the misc category. Before you do so,
you may wish to ask for help on the &a.questions; first.
You may be advised that one of the existing categories
really is a better choice.Here is the current list of categories (taken from
):advocacy: problems relating to
&os;'s public image. Obsolete.alpha: problems specific to the
Alpha platform.amd64: problems specific to the
AMD64 platform.
+
+ arm: problems specific to the
+ ARM platform.
+
+
bin: problems with userland
programs in the base system.conf: problems with
configuration files, default values, and so forth.docs: problems with manual pages
or on-line documentation.gnu: problems with imported GNU software
such as &man.gcc.1; or &man.grep.1;.i386: problems specific to the
&i386; platform.ia64: problems specific to the
ia64 platform.java: problems related to the &java;
Virtual Machine.
kern: problems with
the kernel, (non-platform-specific) device drivers,
or the base libraries.misc: anything that does not fit
in any of the other categories. (Note that there is
almost nothing that truly belongs in this category,
except for problems with the release and build
infrastructure. Temporary build failures on
HEAD do not belong here. Also note
that it is
easy for things to get lost in this category).ports: problems relating to the
Ports Collection.powerpc: problems specific to the
&powerpc; platform.sparc64: problems specific to the
&sparc64; platform.standards: Standards conformance
issues.threads: problems related to the
&os; threads implementation (especially on &os.current;).usb: problems related to the
&os; USB implementation.www: Changes or enhancements to
the &os; website.Class: Choose one of the
following:sw-bug: software bugs.doc-bug: errors in
documentation.change-request: requests for
additional features or changes in existing
features.update: updates to ports or
other contributed software.maintainer-update: updates to
ports for which you are the maintainer.Release: The version of &os;
that you are running. This is filled out automatically if
you are using
&man.send-pr.1; and need only be changed if you are
sending a problem report from a different system than the
one that exhibits the problem.Finally, there is a series of multi-line fields:Environment: This should
describe, as accurately as possible, the environment in
which the problem has been observed. This includes the
operating system version, the version of the specific
program or file that contains the problem, and any other
relevant items such as system configuration, other
installed software that influences the problem,
etc.—quite simply everything a developer needs to
know to reconstruct the environment in which the problem
occurs.Description: A complete and
accurate description of the problem you are experiencing.
Try to avoid speculating about the causes of the problem
unless you are certain that you are on the right track, as
it may mislead a developer into making incorrect
assumptions about the problem.How-To-Repeat: A summary of the
actions you need to take to reproduce the problem.Fix: Preferably a patch, or at
least a workaround (which not only helps other people with
the same problem work around it, but may also help a
developer understand the cause for the problem), but if
you do not have any firm ideas for either, it is better to
leave this field blank than to speculate.Sending off the problem reportIf you are using &man.send-pr.1;:Once you are done filling out the template, have saved it,
and exit your editor, &man.send-pr.1; will prompt you with
s)end, e)dit or a)bort?. You can then hit
s to go ahead and submit the problem report,
e to restart the editor and make
further modifications, or a to abort.
If you choose the latter, your problem report will remain on
disk (&man.send-pr.1; will tell you the filename before it
terminates), so you can edit it at your leisure, or maybe
transfer it to a system with better net connectivity, before
sending it with the to
&man.send-pr.1;:&prompt.user; send-pr -f ~/my-problem-reportThis will read the specified file, validate the contents,
strip comments and send it off.If you are using the web form:Before you hit submit, you will need to
fill in a field containing text that is represented in image
form on the page. This unfortunate measure has had to be
adopted due to misuse by automated systems and a few misguided
individuals. It is a necessary evil that no one likes; please
do not ask us to remove it.Note that you are strongly advised to
save your work somewhere before hitting submit.
A common problem for users is to have their web browser displaying
a stale image from its cache. If this happens to you, your
submission will be rejected and you may lose your work.If you are unable to view images for any reason, and are also
unable to use &man.send-pr.1;, please accept our apologies for
the inconvenience and email your problem report to the bugbuster
team at freebsd-bugbusters@FreeBSD.org.Follow-upOnce your problem report has been filed, you will receive a
confirmation by email which will include the tracking number
that was assigned to your problem report and a URL you can use
to check its status. With a little luck, someone will take an
interest in your problem and try to address it, or, as the case
may be, explain why it is not a problem. You will be
automatically notified of any change of status, and you will
receive copies of any comments or patches someone may attach to
your problem report's audit trail.If someone requests additional information from you, or you
remember or discover something you did not mention in the
initial report, please use one of two methods to submit your
followup:The easiest way is to use the followup link on
the individual PR's web page, which you can reach from the
PR search page. Clicking on this link will bring up an
an email window with the correct To: and Subject: lines filled in
(if your browser is configured to do this).Alternatively, you can just mail it to
&a.bugfollowup;, making sure that the
tracking number is included in the subject so the bug tracking
system will know what problem report to attach it to.If you do not include the tracking
number, GNATS will become confused and create an entirely
new PR which it then assigns to the GNATS administrator,
and then your followup will become lost until someone
comes in to clean up the mess, which could be days or
weeks afterwards.Wrong way:Subject: that PR I sentRight way:Subject: Re: ports/12345: compilation problem with foo/barIf the problem report remains open after the problem has
gone away, just send a follow-up (in the manner prescribed
above) saying that the problem report can be closed, and, if
possible, explaining how or when the problem was fixed.If you are having problemsMost PRs go through the system and are accepted quickly;
however, at times GNATS runs behind and you may not get your
email confirmation for 10 minutes or even longer. Please try to
be patient.In addition, because GNATS receives all its input via email,
it is absolutely vital that &os; runs all its submissions through
spam filters. If you do not get a response within an hour or
two, you may have fallen afoul of them; if so, please contact
the GNATS administrators at bugmeister@FreeBSD.org
and ask for help.Among the anti-spam measures is one that weighs against
many common abuses seen HTML-based email (although not necessarily
the mere inclusion of HTML in a PR). We strongly recommend
against the use of HTML-based email when sending PRs: not
only is it more likely to fall afoul of the filters, it also
tends to merely clutter up the database. Plain old email is
strongly preferred.On rare occasions you will encounter a GNATS bug where a
PR is accepted and assigned a tracking number but it does not
show up on the list of PRs on any of the web query pages. What
may have happened is that the database index has gotten out of
synchronization with the database itself. The way that you
can test whether this has happened is to pull up the
view a single PR page and see whether the PR shows up.
If it does, please notify the GNATS administrators at
bugmeister@FreeBSD.org. Note that there is a
cron job that periodically rebuilds the database,
so unless you are in a hurry, no action needs to be taken.Further ReadingThis is a list of resources relevant to the proper writing
and processing of problem reports. It is by no means complete.
How to Report Bugs Effectively—an excellent
essay by Simon G. Tatham on composing useful (non-&os;-specific)
problem reports.Problem
Report Handling Guidelines—valuable insight
into how problem reports are handled by the &os;
developers.