home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / docs / BUGS.txt < prev    next >
Text File  |  1998-05-12  |  6KB  |  139 lines

  1. !==
  2. !== BUGS.txt for Samba release 1.9.18p7 13 May 1998
  3. !==
  4. Contributor:    Samba Team
  5. Updated:    June 27, 1997
  6.  
  7. Subject: This file describes how to report Samba bugs. 
  8. ============================================================================
  9.  
  10. >> The email address for bug reports is samba-bugs@samba.anu.edu.au <<
  11.  
  12. Please take the time to read this file before you submit a bug
  13. report. Also, please see if it has changed between releases, as we
  14. may be changing the bug reporting mechanism at some time.
  15.  
  16. Please also do as much as you can yourself to help track down the
  17. bug. Samba is maintained by a dedicated group of people who volunteer
  18. their time, skills and efforts. We receive far more mail about it than
  19. we can possibly answer, so you have a much higher chance of an answer
  20. and a fix if you send us a "developer friendly" bug report that lets
  21. us fix it fast. 
  22.  
  23. Do not assume that if you post the bug to the comp.protocols.smb
  24. newsgroup or the mailing list that we will read it. If you suspect that your 
  25. problem is not a bug but a configuration problem then it is better to send 
  26. it to the Samba mailing list, as there are (at last count) 5000 other users on
  27. that list that may be able to help you.
  28.  
  29. You may also like to look though the recent mailing list archives,
  30. which are conveniently accessible on the Samba web pages
  31. at http://samba.anu.edu.au/samba/ 
  32.  
  33.  
  34. GENERAL INFO
  35. ------------
  36.  
  37. Before submitting a bug report check your config for silly
  38. errors. Look in your log files for obvious messages that tell you that
  39. you've misconfigured something and run testparm to test your config
  40. file for correct syntax.
  41.  
  42. Have you run through DIAGNOSIS.txt? This is very important.
  43.  
  44. If you include part of a log file with your bug report then be sure to
  45. annotate it with exactly what you were doing on the client at the
  46. time, and exactly what the results were.
  47.  
  48.  
  49. DEBUG LEVELS
  50. ------------
  51.  
  52. If the bug has anything to do with Samba behaving incorrectly as a
  53. server (like refusing to open a file) then the log files will probably
  54. be very useful. Depending on the problem a log level of between 3 and
  55. 10 showing the problem may be appropriate. A higher level givesmore
  56. detail, but may use too much disk space.
  57.  
  58. To set the debug level use "log level =" in your smb.conf. You may
  59. also find it useful to set the log level higher for just one machine
  60. and keep separate logs for each machine. To do this use:
  61.  
  62. log level = 10
  63. log file = /usr/local/samba/lib/log.%m
  64. include = /usr/local/samba/lib/smb.conf.%m
  65.  
  66. then create a file "/usr/local/samba/lib/smb.conf.machine" where
  67. "machine" is the name of the client you wish to debug. In that file
  68. put any smb.conf commands you want, for example "log level=" may be
  69. useful. This also allows you to experiment with different security
  70. systems, protocol levels etc on just one machine.
  71.  
  72. The smb.conf entry "log level =" is synonymous with the entry
  73. "debuglevel =" that has been used in older versions of Samba and
  74. is being retained for backwards compatibility of smb.conf files.
  75.  
  76. As the "log level =" value is increased you will record a significantly
  77. increasing level of debugging information. For most debugging operations
  78. you may not need a setting higher than 3. Nearly all bugs can be tracked
  79. at a setting of 10, but be prepared for a VERY large volume of log data.
  80.  
  81.  
  82. INTERNAL ERRORs
  83. ---------------
  84.  
  85. If you get a "INTERNAL ERROR" message in your log files it means that
  86. Samba got an unexpected signal while running. It is probably a
  87. segmentation fault and almost certainly means a bug in Samba (unless
  88. you have faulty hardware or system software)
  89.  
  90. If the message came from smbd then it will probably be accompanied by
  91. a message which details the last SMB message received by smbd. This
  92. info is often very useful in tracking down the problem so please
  93. include it in your bug report.
  94.  
  95. You should also detail how to reproduce the problem, if
  96. possible. Please make this reasonably detailed.
  97.  
  98. You may also find that a core file appeared in a "corefiles"
  99. subdirectory of the directory where you keep your samba log
  100. files. This file is the most useful tool for tracking down the bug. To
  101. use it you do this:
  102.  
  103. gdb smbd core
  104.  
  105. adding appropriate paths to smbd and core so gdb can find them. If you
  106. don't have gdb then try "dbx". Then within the debugger use the
  107. command "where" to give a stack trace of where the problem
  108. occurred. Include this in your mail.
  109.  
  110. If you known any assembly language then do a "disass" of the routine
  111. where the problem occurred (if its in a library routine then
  112. disassemble the routine that called it) and try to work out exactly
  113. where the problem is by looking at the surrounding code. Even if you
  114. don't know assembly then incuding this info in the bug report can be
  115. useful. 
  116.  
  117.  
  118. ATTACHING TO A RUNNING PROCESS
  119. ------------------------------
  120.  
  121. Unfortunately some unixes (in particular some recent linux kernels)
  122. refuse to dump a core file if the task has changed uid (which smbd
  123. does often). To debug with this sort of system you could try to attach
  124. to the running process using "gdb smbd PID" where you get PID from
  125. smbstatus. Then use "c" to continue and try to cause the core dump
  126. using the client. The debugger should catch the fault and tell you
  127. where it occurred.
  128.  
  129.  
  130. PATCHES
  131. -------
  132.  
  133. The best sort of bug report is one that includes a fix! If you send us
  134. patches please use "diff -u" format if your version of diff supports
  135. it, otherwise use "diff -c4". Make sure your do the diff against a
  136. clean version of the source and let me know exactly what version you
  137. used. 
  138.  
  139.