Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v9 / man / man1 / perlbug.1
.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sh \" Subsection heading
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. | will give a
.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
.\" expand to `' in nroff, nothing in troff, for use with C<>.
.tr \(*W-|\(bv\*(Tr
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
'br\}
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. nr % 0
. rr F
.\}
.\"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.hy 0
.if n .na
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff
.if n \{\
. ds #H 0
. ds #V .8m
. ds #F .3m
. ds #[ \f1
. ds #] \fP
.\}
.if t \{\
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
. ds #V .6m
. ds #F 0
. ds #[ \&
. ds #] \&
.\}
. \" simple accents for nroff and troff
.if n \{\
. ds ' \&
. ds ` \&
. ds ^ \&
. ds , \&
. ds ~ ~
. ds /
.\}
.if t \{\
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
.\}
. \" troff and (daisy-wheel) nroff accents
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
.ds ae a\h'-(\w'a'u*4/10)'e
.ds Ae A\h'-(\w'A'u*4/10)'E
. \" corrections for vroff
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
. \" for low resolution devices (crt and lpr)
.if \n(.H>23 .if \n(.V>19 \
\{\
. ds : e
. ds 8 ss
. ds o a
. ds d- d\h'-1'\(ga
. ds D- D\h'-1'\(hy
. ds th \o'bp'
. ds Th \o'LP'
. ds ae ae
. ds Ae AE
.\}
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
.IX Title "PERLBUG 1"
.TH PERLBUG 1 "2007-06-19" "perl v5.8.8" "Perl Programmers Reference Guide"
.SH "NAME"
perlbug \- how to submit bug reports on Perl
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
\&\fBperlbug\fR [\ \fB\-v\fR\ ] [\ \fB\-a\fR\ \fIaddress\fR\ ] [\ \fB\-s\fR\ \fIsubject\fR\ ]
[\ \fB\-b\fR\ \fIbody\fR\ |\ \fB\-f\fR\ \fIinputfile\fR\ ] [\ \fB\-F\fR\ \fIoutputfile\fR\ ]
[\ \fB\-r\fR\ \fIreturnaddress\fR\ ]
[\ \fB\-e\fR\ \fIeditor\fR\ ] [\ \fB\-c\fR\ \fIadminaddress\fR\ |\ \fB\-C\fR\ ]
[\ \fB\-S\fR\ ] [\ \fB\-t\fR\ ] [\ \fB\-d\fR\ ] [\ \fB\-A\fR\ ] [\ \fB\-h\fR\ ]
.PP
\&\fBperlbug\fR [\ \fB\-v\fR\ ] [\ \fB\-r\fR\ \fIreturnaddress\fR\ ]
[\ \fB\-A\fR\ ] [\ \fB\-ok\fR\ |\ \fB\-okay\fR\ |\ \fB\-nok\fR\ |\ \fB\-nokay\fR\ ]
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
A program to help generate bug reports about perl or the modules that
come with it, and mail them.
.PP
If you have found a bug with a non-standard port (one that was not part
of the \fIstandard distribution\fR), a binary distribution, or a
non-standard module (such as Tk, \s-1CGI\s0, etc), then please see the
documentation that came with that distribution to determine the correct
place to report bugs.
.PP
\&\f(CW\*(C`perlbug\*(C'\fR is designed to be used interactively. Normally no arguments
will be needed. Simply run it, and follow the prompts.
.PP
If you are unable to run \fBperlbug\fR (most likely because you don't have
a working setup to send mail that perlbug recognizes), you may have to
compose your own report, and email it to \fBperlbug@perl.org\fR. You might
find the \fB\-d\fR option useful to get summary information in that case.
.PP
In any case, when reporting a bug, please make sure you have run through
this checklist:
.IP "What version of Perl you are running?" 4
.IX Item "What version of Perl you are running?"
Type \f(CW\*(C`perl \-v\*(C'\fR at the command line to find out.
.IP "Are you running the latest released version of perl?" 4
.IX Item "Are you running the latest released version of perl?"
Look at http://www.perl.com/ to find out. If it is not the latest
released version, get that one and see whether your bug has been
fixed. Note that bug reports about old versions of Perl, especially
those prior to the 5.0 release, are likely to fall upon deaf ears.
You are on your own if you continue to use perl1 .. perl4.
.IP "Are you sure what you have is a bug?" 4
.IX Item "Are you sure what you have is a bug?"
A significant number of the bug reports we get turn out to be documented
features in Perl. Make sure the behavior you are witnessing doesn't fall
under that category, by glancing through the documentation that comes
with Perl (we'll admit this is no mean task, given the sheer volume of
it all, but at least have a look at the sections that \fIseem\fR relevant).
.Sp
Be aware of the familiar traps that perl programmers of various hues
fall into. See perltrap.
.Sp
Check in perldiag to see what any Perl error message(s) mean.
If message isn't in perldiag, it probably isn't generated by Perl.
Consult your operating system documentation instead.
.Sp
If you are on a non-UNIX platform check also perlport, as some
features may be unimplemented or work differently.
.Sp
Try to study the problem under the Perl debugger, if necessary.
See perldebug.
.IP "Do you have a proper test case?" 4
.IX Item "Do you have a proper test case?"
The easier it is to reproduce your bug, the more likely it will be
fixed, because if no one can duplicate the problem, no one can fix it.
A good test case has most of these attributes: fewest possible number
of lines; few dependencies on external commands, modules, or
libraries; runs on most platforms unimpeded; and is self\-documenting.
.Sp
A good test case is almost always a good candidate to be on the perl
test suite. If you have the time, consider making your test case so
that it will readily fit into the standard test suite.
.Sp
Remember also to include the \fBexact\fR error messages, if any.
\&\*(L"Perl complained something\*(R" is not an exact error message.
.Sp
If you get a core dump (or equivalent), you may use a debugger
(\fBdbx\fR, \fBgdb\fR, etc) to produce a stack trace to include in the bug
report. \s-1NOTE:\s0 unless your Perl has been compiled with debug info
(often \fB\-g\fR), the stack trace is likely to be somewhat hard to use
because it will most probably contain only the function names and not
their arguments. If possible, recompile your Perl with debug info and
reproduce the dump and the stack trace.
.IP "Can you describe the bug in plain English?" 4
.IX Item "Can you describe the bug in plain English?"
The easier it is to understand a reproducible bug, the more likely it
will be fixed. Anything you can provide by way of insight into the
problem helps a great deal. In other words, try to analyze the
problem (to the extent you can) and report your discoveries.
.IP "Can you fix the bug yourself?" 4
.IX Item "Can you fix the bug yourself?"
A bug report which \fIincludes a patch to fix it\fR will almost
definitely be fixed. Use the \f(CW\*(C`diff\*(C'\fR program to generate your patches
(\f(CW\*(C`diff\*(C'\fR is being maintained by the \s-1GNU\s0 folks as part of the \fBdiffutils\fR
package, so you should be able to get it from any of the \s-1GNU\s0 software
repositories). If you do submit a patch, the cool-dude counter at
perlbug@perl.org will register you as a savior of the world. Your
patch may be returned with requests for changes, or requests for more
detailed explanations about your fix.
.Sp
Here are some clues for creating quality patches: Use the \fB\-c\fR or
\&\fB\-u\fR switches to the diff program (to create a so-called context or
unified diff). Make sure the patch is not reversed (the first
argument to diff is typically the original file, the second argument
your changed file). Make sure you test your patch by applying it with
the \f(CW\*(C`patch\*(C'\fR program before you send it on its way. Try to follow the
same style as the code you are trying to patch. Make sure your patch
really does work (\f(CW\*(C`make test\*(C'\fR, if the thing you're patching supports
it).
.ie n .IP "Can you use ""perlbug"" to submit the report?" 4
.el .IP "Can you use \f(CWperlbug\fR to submit the report?" 4
.IX Item "Can you use perlbug to submit the report?"
\&\fBperlbug\fR will, amongst other things, ensure your report includes
crucial information about your version of perl. If \f(CW\*(C`perlbug\*(C'\fR is unable
to mail your report after you have typed it in, you may have to compose
the message yourself, add the output produced by \f(CW\*(C`perlbug \-d\*(C'\fR and email
it to \fBperlbug@perl.org\fR. If, for some reason, you cannot run
\&\f(CW\*(C`perlbug\*(C'\fR at all on your system, be sure to include the entire output
produced by running \f(CW\*(C`perl \-V\*(C'\fR (note the uppercase V).
.Sp
Whether you use \f(CW\*(C`perlbug\*(C'\fR or send the email manually, please make
your Subject line informative. \*(L"a bug\*(R" not informative. Neither is
\&\*(L"perl crashes\*(R" nor \*(L"\s-1HELP\s0!!!\*(R". These don't help.
A compact description of what's wrong is fine.
.PP
Having done your bit, please be prepared to wait, to be told the bug
is in your code, or even to get no reply at all. The Perl maintainers
are busy folks, so if your problem is a small one or if it is difficult
to understand or already known, they may not respond with a personal reply.
If it is important to you that your bug be fixed, do monitor the
\&\f(CW\*(C`Changes\*(C'\fR file in any development releases since the time you submitted
the bug, and encourage the maintainers with kind words (but never any
flames!). Feel free to resend your bug report if the next released
version of perl comes out and your bug is still present.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-a\fR" 8
.IX Item "-a"
Address to send the report to. Defaults to \fBperlbug@perl.org\fR.
.IP "\fB\-A\fR" 8
.IX Item "-A"
Don't send a bug received acknowledgement to the reply address.
Generally it is only a sensible to use this option if you are a
perl maintainer actively watching perl porters for your message to
arrive.
.IP "\fB\-b\fR" 8
.IX Item "-b"
Body of the report. If not included on the command line, or
in a file with \fB\-f\fR, you will get a chance to edit the message.
.IP "\fB\-C\fR" 8
.IX Item "-C"
Don't send copy to administrator.
.IP "\fB\-c\fR" 8
.IX Item "-c"
Address to send copy of report to. Defaults to the address of the
local perl administrator (recorded when perl was built).
.IP "\fB\-d\fR" 8
.IX Item "-d"
Data mode (the default if you redirect or pipe output). This prints out
your configuration data, without mailing anything. You can use this
with \fB\-v\fR to get more complete data.
.IP "\fB\-e\fR" 8
.IX Item "-e"
Editor to use.
.IP "\fB\-f\fR" 8
.IX Item "-f"
File containing the body of the report. Use this to quickly send a
prepared message.
.IP "\fB\-F\fR" 8
.IX Item "-F"
File to output the results to instead of sending as an email. Useful
particularly when running perlbug on a machine with no direct internet
connection.
.IP "\fB\-h\fR" 8
.IX Item "-h"
Prints a brief summary of the options.
.IP "\fB\-ok\fR" 8
.IX Item "-ok"
Report successful build on this system to perl porters. Forces \fB\-S\fR
and \fB\-C\fR. Forces and supplies values for \fB\-s\fR and \fB\-b\fR. Only
prompts for a return address if it cannot guess it (for use with
\&\fBmake\fR). Honors return address specified with \fB\-r\fR. You can use this
with \fB\-v\fR to get more complete data. Only makes a report if this
system is less than 60 days old.
.IP "\fB\-okay\fR" 8
.IX Item "-okay"
As \fB\-ok\fR except it will report on older systems.
.IP "\fB\-nok\fR" 8
.IX Item "-nok"
Report unsuccessful build on this system. Forces \fB\-C\fR. Forces and
supplies a value for \fB\-s\fR, then requires you to edit the report
and say what went wrong. Alternatively, a prepared report may be
supplied using \fB\-f\fR. Only prompts for a return address if it
cannot guess it (for use with \fBmake\fR). Honors return address
specified with \fB\-r\fR. You can use this with \fB\-v\fR to get more
complete data. Only makes a report if this system is less than 60
days old.
.IP "\fB\-nokay\fR" 8
.IX Item "-nokay"
As \fB\-nok\fR except it will report on older systems.
.IP "\fB\-r\fR" 8
.IX Item "-r"
Your return address. The program will ask you to confirm its default
if you don't use this option.
.IP "\fB\-S\fR" 8
.IX Item "-S"
Send without asking for confirmation.
.IP "\fB\-s\fR" 8
.IX Item "-s"
Subject to include with the message. You will be prompted if you don't
supply one on the command line.
.IP "\fB\-t\fR" 8
.IX Item "-t"
Test mode. The target address defaults to \fBperlbug\-test@perl.org\fR.
.IP "\fB\-v\fR" 8
.IX Item "-v"
Include verbose configuration data in the report.
.SH "AUTHORS"
.IX Header "AUTHORS"
Kenneth Albanowski (<kjahds@kjahds.com>), subsequently \fIdoc\fRtored
by Gurusamy Sarathy (<gsar@activestate.com>), Tom Christiansen
(<tchrist@perl.com>), Nathan Torkington (<gnat@frii.com>),
Charles F. Randall (<cfr@pobox.com>), Mike Guy
(<mjtg@cam.a.uk>), Dominic Dunlop (<domo@computer.org>),
Hugo van der Sanden (<hv@crypt.org<gt>),
Jarkko Hietaniemi (<jhi@iki.fi>), Chris Nandor
(<pudge@pobox.com>), Jon Orwant (<orwant@media.mit.edu>,
and Richard Foley (<richard@rfi.net>).
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fIperl\fR\|(1), \fIperldebug\fR\|(1), \fIperldiag\fR\|(1), \fIperlport\fR\|(1), \fIperltrap\fR\|(1),
\&\fIdiff\fR\|(1), \fIpatch\fR\|(1), \fIdbx\fR\|(1), \fIgdb\fR\|(1)
.SH "BUGS"
.IX Header "BUGS"
None known (guess what must have been used to report them?)