comparison bugs.md @ 92:7609e2a6faef

maint: revert changeset 40 (2ff331fce678) .gitignore -> .hgignore.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 01 Nov 2016 00:28:55 +0100
parents a1cb50997055
children e8fc61e077fc
comparison
equal deleted inserted replaced
45:33f406425440 92:7609e2a6faef
1 --- 1 ---
2 layout: page 2 layout: page
3 title: Bugs 3 title: Bugs
4 permalink: /bugs/ 4 permalink: /bugs/
5 --- 5 ---
6
6 7
7 8
8 <ul class="button-group"> 9 <ul class="button-group">
9 <li><a href="http://savannah.gnu.org/bugs/?func=additem&group=octave" class="button">Report</a></li> 10 <li><a href="http://savannah.gnu.org/bugs/?func=additem&group=octave" class="button">Report</a></li>
10 <li><a href="http://savannah.gnu.org/bugs/?func=search&group=octave" class="button">Search</a></li> 11 <li><a href="http://savannah.gnu.org/bugs/?func=search&group=octave" class="button">Search</a></li>
13 14
14 Your bug reports play an essential role in making Octave reliable. You can make fixing problems easier by following the guidelines below. 15 Your bug reports play an essential role in making Octave reliable. You can make fixing problems easier by following the guidelines below.
15 16
16 ### Where and How to Send Bug Reports 17 ### Where and How to Send Bug Reports
17 18
18 To report a bug in Octave, 19 To report a bug in Octave, [submit](http://savannah.gnu.org/bugs/?func=additem&group=octave) a bug report using the [bug tracker](http://savannah.gnu.org/bugs/?group=octave).
19 [submit](http://savannah.gnu.org/bugs/?func=additem&group=octave)
20 a bug report using the
21 [bug tracker](http://savannah.gnu.org/bugs/?group=octave).
22 20
23 <div class="panel"> 21 <div class="panel">
24 Please do not send bug reports to the help-octave mailing list. 22 Please do not send bug reports to the help-octave mailing list. Most users of Octave do not want to receive bug reports.
25 Most users of Octave do not want to receive bug reports.
26 </div> 23 </div>
27 24
28 When you encounter a problem, 25 When you encounter a problem, the first thing to do is to see if it is already known. The best place to look for reported problems is the Octave [bug tracker](http://savannah.gnu.org/bugs/?group=octave).
29 the first thing to do is to see if it is already known.
30 The best place to look for reported problems is the Octave
31 [bug tracker](http://savannah.gnu.org/bugs/?group=octave).
32 26
33 The Octave reference manual also contains a list of 27 The Octave reference manual also contains a list of [known causes of trouble](http://www.gnu.org/software/octave/doc/interpreter/Trouble.html#Trouble).
34 [known causes of trouble](http://www.gnu.org/software/octave/doc/interpreter/Trouble.html#Trouble).
35 28
36 If you your problem does not appear to be known, 29 If you your problem does not appear to be known, then you should report the problem.
37 then you should report the problem.
38 30
39 Reporting a bug may help you by bringing a solution to your problem, 31 Reporting a bug may help you by bringing a solution to your problem, or it may not. In any case, the principal function of a bug report is to help the entire community by making the next version of Octave work better, so you can contribute to the maintenance of Octave.
40 or it may not.
41 In any case,
42 the principal function of a bug report is to help the entire community
43 by making the next version of Octave work better,
44 so you can contribute to the maintenance of Octave.
45
46 32
47 ### Have You Found a Bug? 33 ### Have You Found a Bug?
48 34
49 If you are not sure whether you have found a bug, here are some guidelines: 35 If you are not sure whether you have found a bug, here are some guidelines:
50 36
51 - If Octave gets a fatal signal, for any input whatever, that is a bug. 37 - If Octave gets a fatal signal, for any input whatever, that is a bug. Reliable interpreters never crash.
52 Reliable interpreters never crash.
53 - If Octave produces incorrect results, for any input whatever, that is a bug. 38 - If Octave produces incorrect results, for any input whatever, that is a bug.
54 - Some output may appear to be incorrect when it is in fact due to a program 39 - Some output may appear to be incorrect when it is in fact due to a program whose behavior is undefined, which happened by chance to give the desired results on another system. For example, trigonometric functions may produce different results because of differences in the math library or the way floating point arithmetic is handled on various systems.
55 whose behavior is undefined,
56 which happened by chance to give the desired results on another system.
57 For example, trigonometric functions may produce different results
58 because of differences in the math library
59 or the way floating point arithmetic is handled on various systems.
60 - If Octave produces an error message for valid input, that is a bug. 40 - If Octave produces an error message for valid input, that is a bug.
61 - If Octave does not produce an error message for invalid input, that is a bug. 41 - If Octave does not produce an error message for invalid input, that is a bug. However, you should note that your idea of "invalid input" might be my idea of "an extension" or "support for traditional practice".
62 However, you should note that your idea of "invalid input" might be my idea 42 - If you are an experienced user of programs like Octave, your suggestions for improvement are welcome in any case.
63 of "an extension" or "support for traditional practice".
64 - If you are an experienced user of programs like Octave,
65 your suggestions for improvement are welcome in any case.
66 43
67 ### Making Your Bug Report Count 44 ### Making Your Bug Report Count
68 45
69 In order for a bug report to serve its purpose, 46 In order for a bug report to serve its purpose, you must include the information that makes it possible to fix the bug.
70 you must include the information that makes it possible to fix the bug.
71 47
72 The fundamental principle of reporting bugs usefully is this: 48 The fundamental principle of reporting bugs usefully is this: **report all the facts**. If you are not sure whether to state a fact or leave it out, state it.
73 **report all the facts**.
74 If you are not sure whether to state a fact or leave it out, state it.
75 49
76 Often people omit facts because they think they know what causes the problem 50 Often people omit facts because they think they know what causes the problem and they conclude that some details don't matter. Thus, you might assume that the name of the variable you use in an example does not matter. Well, probably it doesn't, but one cannot be sure. Perhaps the bug is a stray memory reference which happens to fetch from the location where that name is stored in memory; perhaps, if the name were different, the contents of that location would fool the interpreter into doing the right thing despite the bug. Play it safe and give a specific, complete example.
77 and they conclude that some details don't matter.
78 Thus, you might assume that the name of the variable
79 you use in an example does not matter.
80 Well, probably it doesn't, but one cannot be sure.
81 Perhaps the bug is a stray memory reference
82 which happens to fetch from the location where that name is stored in memory;
83 perhaps, if the name were different,
84 the contents of that location would fool the interpreter
85 into doing the right thing despite the bug.
86 Play it safe and give a specific, complete example.
87 51
88 Keep in mind that the purpose of a bug report is 52 Keep in mind that the purpose of a bug report is to enable someone to fix the bug if it is not known. Always write your bug reports on the assumption that the bug is not known.
89 to enable someone to fix the bug if it is not known.
90 Always write your bug reports on the assumption that the bug is not known.
91 53
92 Sometimes people give a few sketchy facts and ask, 54 Sometimes people give a few sketchy facts and ask, "Does this ring a bell?" This cannot help us fix a bug. It is better to send a complete bug report to begin with.
93 "Does this ring a bell?"
94 This cannot help us fix a bug.
95 It is better to send a complete bug report to begin with.
96 55
97 Try to make your bug report self-contained. 56 Try to make your bug report self-contained. If we have to ask you for more information, it is best if you include all the previous information in your response, as well as the information that was missing.
98 If we have to ask you for more information,
99 it is best if you include all the previous information in your response,
100 as well as the information that was missing.
101 57
102 The bug tracker will prompt you for some basic information like 58 The bug tracker will prompt you for some basic information like the version of Octave and the operating system you are using. You also need to include the following to enable someone to investigate the bug:
103 the version of Octave and the operating system you are using.
104 You also need to include the following to enable someone to investigate the bug:
105 59
106 - A complete input file that will reproduce the bug. 60 - A complete input file that will reproduce the bug. A single statement may not be enough of an example--the bug might depend on other details that are missing from the single statement where the error finally occurs.
107 A single statement may not be enough of an example--the bug might depend 61 - The command arguments you gave Octave to execute that example and observe the bug. To guarantee you won't omit something important, list all the options. If we were to try to guess the arguments, we would probably guess wrong and then we would not encounter the bug.
108 on other details that are missing from the single statement 62 - A description of what behavior you observe that you believe is incorrect. For example, "The interpreter gets a fatal signal," or, "The output produced at line 208 is incorrect."
109 where the error finally occurs. 63 - The output you expected to see. Although it might seem obvious to you, someone examining the problem might not know what result you consider correct.
110 - The command arguments you gave Octave to execute that example and observe the bug. 64 - If you wish to suggest changes to the Octave source, send them as context diffs. If you discuss something in the Octave source, refer to it by context, not by line number, because the line numbers in the development sources probably won't match those in your sources.
111 To guarantee you won't omit something important, list all the options.
112 If we were to try to guess the arguments,
113 we would probably guess wrong and then we would not encounter the bug.
114 - A description of what behavior you observe that you believe is incorrect.
115 For example, "The interpreter gets a fatal signal," or,
116 "The output produced at line 208 is incorrect."
117 - The output you expected to see. Although it might seem obvious to you,
118 someone examining the problem might not know what result you consider correct.
119 - If you wish to suggest changes to the Octave source, send them as context diffs.
120 If you discuss something in the Octave source, refer to it by context,
121 not by line number, because the line numbers in the development sources
122 probably won't match those in your sources.
123
124 65
125 ### Sending Patches for Octave 66 ### Sending Patches for Octave
126 67
127 If you have a suggested fix for a bug, 68 If you have a suggested fix for a bug, please attach it to your report in the tracker. Your patch is more likely to be reviewed if you follow the guidelines in the Octave manual about to [generate a changeset](http://www.gnu.org/software/octave/doc/interpreter/Basics-of-Generating-a-Changeset.html#Basics-of-Generating-a-Changeset) and submit patches for Octave.
128 please attach it to your report in the tracker. 69
129 Your patch is more likely to be reviewed
130 if you follow the guidelines in the Octave manual about to
131 [generate a changeset](http://www.gnu.org/software/octave/doc/interpreter/Basics-of-Generating-a-Changeset.html#Basics-of-Generating-a-Changeset)
132 and submit patches for Octave.