home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / BUGS < prev    next >
Text File  |  1995-01-12  |  15KB  |  367 lines

  1. This file documents known bugs in Octave and describes where and how to
  2. report any bugs that you may find.
  3.  
  4.    Copyright (C) 1993, 1994, 1995 John W. Eaton.  You may copy,
  5. distribute, and modify it freely as long as you preserve this copyright
  6. notice and permission notice.
  7.  
  8. Known Causes of Trouble with Octave
  9. ***********************************
  10.  
  11.    This section describes known problems that affect users of Octave.
  12. Most of these are not Octave bugs per se--if they were, we would fix
  13. them.  But the result for a user may be like the result of a bug.
  14.  
  15.    Some of these problems are due to bugs in other software, some are
  16. missing features that are too much work to add, and some are places
  17. where people's opinions differ as to what is best.
  18.  
  19. Actual Bugs We Haven't Fixed Yet
  20. ================================
  21.  
  22.    * Output that comes directly from Fortran functions is not sent
  23.      through the pager and may appear out of sequence with other output
  24.      that is sent through the pager.  One way to avoid this is to force
  25.      pending output to be flushed before calling a function that will
  26.      produce output from within Fortran functions.  To do this, use the
  27.      command
  28.  
  29.           fflush (stdout)
  30.  
  31.      Another possible workaround is to use the command
  32.  
  33.           page_screen_output = "false"
  34.  
  35.      to turn the pager off.
  36.  
  37.    * Control-C doesn't work properly in the pager on DEC Alpha systems
  38.      running OSF/1 3.0.
  39.  
  40.      This appears to be a bug in the OSF/1 3.0 Bourne shell.  The
  41.      problem doesn't appear on systems running OSF/1 1.3.
  42.  
  43.    * If you get messages like
  44.  
  45.           Input line too long
  46.  
  47.      when trying to plot many lines on one graph, you have probably
  48.      generated a plot command that is too larger for `gnuplot''s
  49.      fixed-length buffer for commands.  Splitting up the plot command
  50.      doesn't help because replot is implemented in gnuplot by simply
  51.      appending the new plotting commands to the old command line and
  52.      then evaluating it again.
  53.  
  54.      You can demonstrate this `feature' by running gnuplot and doing
  55.      something like
  56.  
  57.             plot sin (x), sin (x), sin (x), ... lots more ..., sin (x)
  58.  
  59.      and then
  60.  
  61.             replot sin (x), sin (x), sin (x), ... lots more ..., sin (x)
  62.  
  63.      after repeating the replot command a few times, gnuplot will give
  64.      you an error.
  65.  
  66.      Also, it doesn't help to use backslashes to enter a plot command
  67.      over several lines, because the limit is on the overall command
  68.      line length, once the backslashed lines are all pasted together.
  69.  
  70.      Because of this, Octave tries to use as little of the command-line
  71.      length as possible by using the shortest possible abbreviations for
  72.      all the plot commands and options.  Unfortunately, the length of
  73.      the temporary file names is probably what is taking up the most
  74.      space on the command line.
  75.  
  76.      You can buy a little bit of command line space by setting the
  77.      environment variable `TMPDIR' to be "." before starting Octave, or
  78.      you can increase the maximum command line length in gnuplot by
  79.      changing the following limits in the file plot.h in the gnuplot
  80.      distribution and recompiling gnuplot.
  81.  
  82.           #define MAX_LINE_LEN 32768  /* originally 1024 */
  83.           #define MAX_TOKENS 8192     /* originally 400 */
  84.  
  85.      Of course, this doesn't really fix the problem, but it does make it
  86.      much less likely that you will run into trouble unless you are
  87.      putting a very large number of lines on a given plot.
  88.  
  89.    * String handling could use some work.
  90.  
  91.    A list of ideas for future enhancements is distributed with Octave.
  92. See the file `PROJECTS' in the top level directory in the source
  93. distribution.
  94.  
  95. Reporting Bugs
  96. ==============
  97.  
  98.    Your bug reports play an essential role in making Octave reliable.
  99.  
  100.    When you encounter a problem, the first thing to do is to see if it
  101. is already known.  *Note Trouble::.  If it isn't known, then you should
  102. report the problem.
  103.  
  104.    Reporting a bug may help you by bringing a solution to your problem,
  105. or it may not.  In any case, the principal function of a bug report is
  106. to help the entire community by making the next version of Octave work
  107. better.  Bug reports are your contribution to the maintenance of Octave.
  108.  
  109.    In order for a bug report to serve its purpose, you must include the
  110. information that makes it possible to fix the bug.
  111.  
  112.    If you have Octave working at all, the easiest way to prepare a
  113. complete bug report is to use the Octave function `bug_report'.  When
  114. you execute this function, Octave will prompt you for a subject and then
  115. invoke the editor on a file that already contains all the configuration
  116. information.  When you exit the editor, Octave will mail the bug report
  117. for you.
  118.  
  119. Have You Found a Bug?
  120. =====================
  121.  
  122.    If you are not sure whether you have found a bug, here are some
  123. guidelines:
  124.  
  125.    * If Octave gets a fatal signal, for any input whatever, that is a
  126.      bug.  Reliable interpreters never crash.
  127.  
  128.    * If Octave produces incorrect results, for any input whatever, that
  129.      is a bug.
  130.  
  131.    * Some output may appear to be incorrect when it is in fact due to a
  132.      program whose behavior is undefined, which happened by chance to
  133.      give the desired results on another system.  For example, the
  134.      range operator may produce different results because of
  135.      differences in the way floating point arithmetic is handled on
  136.      various systems.
  137.  
  138.    * If Octave produces an error message for valid input, that is a bug.
  139.  
  140.    * If Octave does not produce an error message for invalid input,
  141.      that is a bug.  However, you should note that your idea of
  142.      "invalid input" might be my idea of "an extension" or "support for
  143.      traditional practice".
  144.  
  145.    * If you are an experienced user of programs like Octave, your
  146.      suggestions for improvement are welcome in any case.
  147.  
  148. Where to Report Bugs
  149. ====================
  150.  
  151.    If you have Octave working at all, the easiest way to prepare a
  152. complete bug report is to use the Octave function `bug_report'.  When
  153. you execute this function, Octave will prompt you for a subject and then
  154. invoke the editor on a file that already contains all the configuration
  155. information.  When you exit the editor, Octave will mail the bug report
  156. for you.
  157.  
  158.    If for some reason you cannot use Octave's `bug_report' function,
  159. send bug reports for Octave to:
  160.  
  161.      bug-octave@che.utexas.edu
  162.  
  163.    *Do not send bug reports to `help-octave'*.  Most users of Octave do
  164. not want to receive bug reports.  Those that do have asked to be on
  165. `bug-octave'.
  166.  
  167.    As a last resort, send bug reports on paper to:
  168.  
  169.      Octave Bugs c/o John W. Eaton
  170.      Department of Chemical Engineering
  171.      The University of Texas at Austin
  172.      Austin, Texas 78712
  173.  
  174. How to Report Bugs
  175. ==================
  176.  
  177.    The fundamental principle of reporting bugs usefully is this:
  178. *report all the facts*.  If you are not sure whether to state a fact or
  179. leave it out, state it!
  180.  
  181.    Often people omit facts because they think they know what causes the
  182. problem and they conclude that some details don't matter.  Thus, you
  183. might assume that the name of the variable you use in an example does
  184. not matter.  Well, probably it doesn't, but one cannot be sure.
  185. Perhaps the bug is a stray memory reference which happens to fetch from
  186. the location where that name is stored in memory; perhaps, if the name
  187. were different, the contents of that location would fool the
  188. interpreter into doing the right thing despite the bug.  Play it safe
  189. and give a specific, complete example.
  190.  
  191.    Keep in mind that the purpose of a bug report is to enable someone to
  192. fix the bug if it is not known. Always write your bug reports on the
  193. assumption that the bug is not known.
  194.  
  195.    Sometimes people give a few sketchy facts and ask, "Does this ring a
  196. bell?"  This cannot help us fix a bug.  It is better to send a complete
  197. bug report to begin with.
  198.  
  199.    Try to make your bug report self-contained.  If we have to ask you
  200. for more information, it is best if you include all the previous
  201. information in your response, as well as the information that was
  202. missing.
  203.  
  204.    To enable someone to investigate the bug, you should include all
  205. these things:
  206.  
  207.    * The version of Octave.  You can get this by noting the version
  208.      number that is printed when Octave starts, or running it with the
  209.      `-v' option.
  210.  
  211.    * A complete input file that will reproduce the bug.
  212.  
  213.      A single statement may not be enough of an example--the bug might
  214.      depend on other details that are missing from the single statement
  215.      where the error finally occurs.
  216.  
  217.    * The command arguments you gave Octave to execute that example and
  218.      observe the bug.  To guarantee you won't omit something important,
  219.      list all the options.
  220.  
  221.      If we were to try to guess the arguments, we would probably guess
  222.      wrong and then we would not encounter the bug.
  223.  
  224.    * The type of machine you are using, and the operating system name
  225.      and version number.
  226.  
  227.    * The command-line arguments you gave to the `configure' command when
  228.      you installed the interpreter.
  229.  
  230.    * A complete list of any modifications you have made to the
  231.      interpreter source.
  232.  
  233.      Be precise about these changes--show a context diff for them.
  234.  
  235.    * Details of any other deviations from the standard procedure for
  236.      installing Octave.
  237.  
  238.    * A description of what behavior you observe that you believe is
  239.      incorrect.  For example, "The interpreter gets a fatal signal,"
  240.      or, "The output produced at line 208 is incorrect."
  241.  
  242.      Of course, if the bug is that the interpreter gets a fatal signal,
  243.      then one can't miss it.  But if the bug is incorrect output, we
  244.      might not notice unless it is glaringly wrong.
  245.  
  246.      Even if the problem you experience is a fatal signal, you should
  247.      still say so explicitly.  Suppose something strange is going on,
  248.      such as, your copy of the interpreter is out of synch, or you have
  249.      encountered a bug in the C library on your system.  Your copy
  250.      might crash and the copy here would not.  If you said to expect a
  251.      crash, then when the interpreter here fails to crash, we would
  252.      know that the bug was not happening.  If you don't say to expect a
  253.      crash, then we would not know whether the bug was happening.  We
  254.      would not be able to draw any conclusion from our observations.
  255.  
  256.      Often the observed symptom is incorrect output when your program
  257.      is run.  Unfortunately, this is not enough information unless the
  258.      program is short and simple.  It is very helpful if you can
  259.      include an explanation of the expected output, and why the actual
  260.      output is incorrect.
  261.  
  262.    * If you wish to suggest changes to the Octave source, send them as
  263.      context diffs.  If you even discuss something in the Octave source,
  264.      refer to it by context, not by line number, because the line
  265.      numbers in the development sources probalby won't match those in
  266.      your sources.
  267.  
  268.    Here are some things that are not necessary:
  269.  
  270.    * A description of the envelope of the bug.
  271.  
  272.      Often people who encounter a bug spend a lot of time investigating
  273.      which changes to the input file will make the bug go away and
  274.      which changes will not affect it.  Such information is usually not
  275.      necessary to enable us to fix bugs in Octave, but if you can find
  276.      a simpler example to report *instead* of the original one, that is
  277.      a convenience.  Errors in the output will be easier to spot,
  278.      running under the debugger will take less time, etc. Most Octave
  279.      bugs involve just one function, so the most straightforward way to
  280.      simplify an example is to delete all the function definitions
  281.      except the one in which the bug occurs.
  282.  
  283.      However, simplification is not vital; if you don't want to do
  284.      this, report the bug anyway and send the entire test case you used.
  285.  
  286.    * A patch for the bug.  Patches can be helpful, but if you find a
  287.      bug, you should report it, even if you cannot send a fix for the
  288.      problem.
  289.  
  290. Sending Patches for Octave
  291. ==========================
  292.  
  293.    If you would like to write bug fixes or improvements for Octave,
  294. that is very helpful.  When you send your changes, please follow these
  295. guidelines to avoid causing extra work for us in studying the patches.
  296.  
  297.    If you don't follow these guidelines, your information might still be
  298. useful, but using it will take extra work.  Maintaining Octave is a lot
  299. of work in the best of circumstances, and we can't keep up unless you do
  300. your best to help.
  301.  
  302.    * Send an explanation with your changes of what problem they fix or
  303.      what improvement they bring about.  For a bug fix, just include a
  304.      copy of the bug report, and explain why the change fixes the bug.
  305.  
  306.    * Always include a proper bug report for the problem you think you
  307.      have fixed.  We need to convince ourselves that the change is
  308.      right before installing it.  Even if it is right, we might have
  309.      trouble judging it if we don't have a way to reproduce the problem.
  310.  
  311.    * Include all the comments that are appropriate to help people
  312.      reading the source in the future understand why this change was
  313.      needed.
  314.  
  315.    * Don't mix together changes made for different reasons.  Send them
  316.      *individually*.
  317.  
  318.      If you make two changes for separate reasons, then we might not
  319.      want to install them both.  We might want to install just one.
  320.  
  321.    * Use `diff -c' to make your diffs.  Diffs without context are hard
  322.      for us to install reliably.  More than that, they make it hard for
  323.      us to study the diffs to decide whether we want to install them.
  324.      Unidiff format is better than contextless diffs, but not as easy
  325.      to read as `-c' format.
  326.  
  327.      If you have GNU diff, use `diff -cp', which shows the name of the
  328.      function that each change occurs in.
  329.  
  330.    * Write the change log entries for your changes.
  331.  
  332.      Read the `ChangeLog' file to see what sorts of information to put
  333.      in, and to learn the style that we use.  The purpose of the change
  334.      log is to show people where to find what was changed.  So you need
  335.      to be specific about what functions you changed; in large
  336.      functions, it's often helpful to indicate where within the
  337.      function the change was made.
  338.  
  339.      On the other hand, once you have shown people where to find the
  340.      change, you need not explain its purpose. Thus, if you add a new
  341.      function, all you need to say about it is that it is new.  If you
  342.      feel that the purpose needs explaining, it probably does--but the
  343.      explanation will be much more useful if you put it in comments in
  344.      the code.
  345.  
  346.      If you would like your name to appear in the header line for who
  347.      made the change, send us the header line.
  348.  
  349. How To Get Help with Octave
  350. ===========================
  351.  
  352.    If you need help installing, using or changing Octave, the mailing
  353. list
  354.  
  355.      help-octave@che.utexas.edu
  356.  
  357.    exists for the discussion of Octave matters related to using,
  358. installing, and porting Octave.  If you would like to join the
  359. discussion, please send a short note to
  360.  
  361.      help-octave-request@che.utexas.edu
  362.                  ^^^^^^^
  363.  
  364.    *Please do not* send requests to be added or removed from the the
  365. mailing list, or other administrative trivia to the list itself.
  366.  
  367.